Chebyshev Distance
Published date: 2023-08-19
Last edited date: 2023-08-19
Aliases:
- Tchebychev distance
- maximum metric
- metric
- chessbard distance
Definition
The Chebyshev distance between two vectors or points and , with standard coordinates and , respectively, is
This equals the limit of the metrics:
hence it is also known as the metric.
Example
Let's say we have two points in a 2-dimensional space: Point with coordinates and Point with coordinates . The Chebyshev distance between these two points can be computed as follows:
- Calculate Absolute Differences: compute the absolute differences between corresponding coordinates of the two points.
- Absolute difference in -coordinates:
- Absolute difference in -coordinates:
- Find Maximum Absolute Difference: compare the absolute differences calculated in step 1 and choose the larger of the two values. The maximum absolute difference is the Chebyshev distance between the two points.
Suppose we have Point with coordinates and Point with coordinates .
- Calculate Absolute Differences:
- absolute difference in -coordinates:
- absolute difference in -coordinates:
- Find Maximum Absolute Difference: the Chebyshev distance between points and is because it's the larger of the two absolute differences computed above.
References: