Manhattan distance

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

English[edit]

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

Etymology[edit]

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

Noun[edit]

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]