Manhattan distance

Definition from Wiktionary, the free dictionary
Jump to navigation Jump to search


Red: Manhattan distance. Green: diagonal, straight-line distance. Blue, yellow: equivalent Manhattan distances.


Based on the well-known gridlike street geography of the New York borough of Manhattan.


Manhattan distance (plural Manhattan distances)

  1. The distance between two points in a grid based on a strictly horizontal and/or vertical path (that is, along the grid lines), as opposed to the diagonal or "as the crow flies" distance. The Manhattan distance is the simple sum of the horizontal and vertical components, whereas the diagonal distance might be computed by applying the Pythagorean theorem.

See also[edit]