How to calculate manhattan distance between two points?
Answers
Answered by
2
Take the sum of the absolute values of the differences of the coordinates.
For example, if x=(a,b)x=(a,b) and y=(c,d)y=(c,d), the Manhattan distance between xx and yy is
|a−c|+|b−d||a−c|+|b−d|.
Similar questions