Chebyshevdistans
Chebyshev distance, also known as chessboard distance or L∞ distance, is a metric defined for a vector space where the distance between two points is the maximum of their absolute coordinate differences. Imagine a king on a chessboard; the Chebyshev distance is the minimum number of moves the king needs to go from one square to another. Unlike Euclidean distance, which measures the straight-line distance, Chebyshev distance considers movement along any axis independently.
Formally, for two points p = (p1, p2, ..., pn) and q = (q1, q2, ..., qn) in an n-dimensional