ChessboardDistance

Chebyshev distance (WMA)


ChessboardDistance[u, v]

returns the chessboard distance (also known as Chebyshev distance) between u and v, which is the number of moves a king on a chessboard needs to get from square u to square v.

CanberraDistance
CosineDistance