Concept

Manhattan Distance

The Manhattan distance between two points is the sum of the absolute differences of their corresponding Cartesian coordinates. For two points xx and yy in a kk-dimensional space, the distance is calculated as: d(x,y)=i=1kxiyid(x, y) = \sum_{i=1}^k |x_i - y_i|

0

2

Updated 2026-06-15

Tags

Data Science