Definition · applies to points · also called Manhattan distance, $\ell^1$ distance, $d_1(p, q)$

High school

Consider two points $p = (p_1, \dots, p_n)$ and $q = (q_1, \dots, q_n)$ in $\reals^n$. The taxicab distance between $p$ and $q$ is the distance traveled from $p$ to $q$ when moving parallel to one axis at a time, as along the streets of a grid:

\[d_1(p, q) = \abs{p_1 - q_1} + \dots + \abs{p_n - q_n}.\]
Undergraduate

Consider two points $p = (p_1, \dots, p_n)$ and $q = (q_1, \dots, q_n)$ in $\reals^n$. The taxicab distance between $p$ and $q$ is defined as

\[d_1(p, q) = \sum_{i=1}^n \abs{p_i - q_i}.\]

Examples

Worked examples

Properties

  • The taxicab distance is $\norm{p - q}_1$, the 1-norm of the difference.

Distinctions involving this term

All definitions · All distinctions · All examples