Find Manhattan distance ( L1-norm) and Euclidian distance(L2-norm) for X = (1, 2, 2) and Y = (2, 5, 3)

 


1) Manhattan Distance (L1) is given as , 


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



2) Euclidean distance (L2) is given as,
 

                  ______________________
Here, =   (1 - 2)2 +  (2 - 5)2 +  (2 - 3)2  
                       __________
             =  √  1 + 9 + 1
                 ____
          =  √11  

      = 3.316