Chebyshevdistansen
Chebyshev distance, also known as the chessboard distance, is a metric used in mathematics to measure the distance between two points in a grid-based system, such as a chessboard. It is named after the Russian mathematician Pafnuty Chebyshev. This distance metric is particularly useful in scenarios where movement is restricted to horizontal and vertical directions, like the movement of a rook in chess or the Manhattan distance's cousin in a two-dimensional grid.
The Chebyshev distance between two points, (x1, y1) and (x2, y2), is defined as the maximum of
One of the key properties of Chebyshev distance is that it does not satisfy the triangle inequality,
Chebyshev distance is widely used in various fields, including computer science, particularly in image processing and