Answer:
Given,
P = (22, 1, 42, 10)
Q = (20, 0, 36, 8)
a. Formula for Euclidean Distance :
distance = ((p1-q1)^2 + (p2-q2)^2 + ... + (pn-qn)^2)^(1/2)
Now,
distance = ( (22-20)^2 + (1-0)^2 + (42 - 36)^2 + (10-8)^2) ) ^(1/2)
=( (2)^2 + (1)^2 + (6)^2 + (2)^2 ) ) ^(1/2)
=(4+1+36+4)^(1/2)
=45^(1/2)
Distance = 6.7082
b.Manhattan distance :
d = |x1 - x2| + |y1 - y2|
d = |22- 20| + |1 - 0|
d = |2| + |1|
Explanation:
The default constraint gives a value to an attribute when a new row is added to a table.
<h3>Is default a kind of constraint?</h3>
This is known to be a type of constraint that often apply a value to a column if an INSERT statement does not really give the value for the column.
Therefore, one can say that the default constraint gives a value to an attribute when a new row is added to a table.
Learn more about default constraint from
brainly.com/question/19130806
#SPJ12
Because it ‘computes’ certain tasks, get it. It’s like saying ‘the puncher’ for someone who punches stuff.