ManhattanAbstand
ManhattanAbstand, commonly known as the Manhattan distance or L1 distance, is a metric used to measure the separation between two points in grid-like spaces. For points x = (x1, ..., xn) and y = (y1, ..., yn) in R^n, the ManhattanAbstand is defined as d1(x,y) = Σ_i |xi - yi|. It is the L1 norm of the difference x - y, written ||x - y||1. The name originates from the grid-like street pattern of Manhattan, New York, where travel is often along axis-aligned blocks.
In two dimensions, the distance equals the number of axis-aligned steps required to move from x to
ManhattanAbstand satisfies all the properties of a metric: non-negativity, zero distance only when the points coincide,
Geometrically, the unit ball of the L1 norm in two dimensions is a diamond (a square rotated
Applications include path planning on grid graphs, clustering methods such as k-medians, nearest-neighbor search in high-dimensional