0
2.0kviews
Find Manhattan distance (L1 norms) and Euclidean distance (L2 norms) for the following point X1=(1,2,2) and X2=(2,5,3).
1 Answer
written 2.9 years ago by |
Given,
X1=(1,2,2)
X2=(2,5,3)
To find -
(i) Manhattan distance
(ii) Euclidean distance
(i) Manhattan distance -
As we know,
d=∑ni=1|xi−yi|
Here, = | 1 - 2 | + | 2 - 5 | + | 2 - 3 |
= 1 + 3 + 1
= 5.
(ii) Euclidean distance -
As we know,
d=√∑ni=1|xi−yi|2
Here, √(1−2)2+(2−5)2+(2−3)2
= √1+9+1
= √11
= 3.316. Ans.