Lably
Skip to content

Chebyshev distance

Mathematical metric

  • 3 min read
  • 4 chapters

Related on Lably

Through Mathematics, Distance and Point (geometry)

It is also known as chessboard distance, since in the game of chess the minimum number of moves needed by a king to go from one square on a chessboard to another equals the Chebyshev distance between the centers of the squares, if the squares have side length one, as represented in 2-D spatial coordinates with axes aligned to the edges of the board. For example, the Chebyshev distance between f6 and e2 equals 4.

Definition

The Chebyshev distance between two vectors or points a and b, with standard coordinates ai and bi, respectively, is

D(a,b)=maxi(|ai−bi|). This equals the limit of the Lp metrics: D(a,b)=limp→∞(∑i=1n|ai−bi|p)1/p, hence it is also known as the L∞ metric.

Mathematically, the Chebyshev distance is a metric induced by the supremum norm or uniform norm. It is an example of an injective metric.

In two dimensions, i.e. plane geometry, if the points a and b have Cartesian coordinates (x1,y1) and (x2,y2), their Chebyshev distance is

DChebyshev=max(|x2−x1|,|y2−y1|).

Under this metric, a circle of radius r, which is the set of points with Chebyshev distance r from a center point, is a square whose sides have the length 2r and are parallel to the coordinate axes.

On a chessboard, where one is using a discrete Chebyshev distance, rather than a continuous one, the circle of radius r is a square of side lengths 2r, measuring from the centers of squares, and thus each side contains 2r+1 squares; for example, the circle of radius 1 on a chess board is a 3×3 square.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Topics in mathematics