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
0
103views


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|xiyi|

Here, = | 1 - 2 | + | 2 - 5 | + | 2 - 3 |

= 1 + 3 + 1

= 5.



(ii) Euclidean distance -

As we know,

d=ni=1|xiyi|2

Here, (12)2+(25)2+(23)2

= 1+9+1

= 11

= 3.316. Ans.

Please log in to add an answer.