Misplaced Pages

Chebyshev distance

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Chebyshev metric) Mathematical metric This article is about the distance in finite-dimensional spaces. For the function space norm and metric, see uniform norm.
abcdefgh
8a8 fiveb8 fourc8 threed8 twoe8 twof8 twog8 twoh8 twoa7 fiveb7 fourc7 threed7 twoe7 onef7 oneg7 oneh7 twoa6 fiveb6 fourc6 threed6 twoe6 onef6 white kingg6 oneh6 twoa5 fiveb5 fourc5 threed5 twoe5 onef5 oneg5 oneh5 twoa4 fiveb4 fourc4 threed4 twoe4 twof4 twog4 twoh4 twoa3 fiveb3 fourc3 threed3 threee3 threef3 threeg3 threeh3 threea2 fiveb2 fourc2 fourd2 foure2 fourf2 fourg2 fourh2 foura1 fiveb1 fivec1 fived1 fivee1 fivef1 fiveg1 fiveh1 five8
77
66
55
44
33
22
11
abcdefgh
The discrete Chebyshev distance between two spaces on a chessboard gives the minimum number of moves a king requires to move between them. This is because a king can move diagonally, so that the jumps to cover the smaller distance parallel to a row or column is effectively absorbed into the jumps covering the larger. Above are the Chebyshev distances of each square from the square f6.

In mathematics, Chebyshev distance (or Tchebychev distance), maximum metric, or L metric is a metric defined on a real coordinate space where the distance between two points is the greatest of their differences along any coordinate dimension. It is named after Pafnuty Chebyshev.

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 x and y, with standard coordinates x i {\displaystyle x_{i}} and y i {\displaystyle y_{i}} , respectively, is

D ( x , y ) = max i ( | x i y i | ) .   {\displaystyle D(x,y)=\max _{i}(|x_{i}-y_{i}|).\ }

This equals the limit of the Lp metrics:

D ( x , y ) = lim p ( i = 1 n | x i y i | p ) 1 / p , {\displaystyle D(x,y)=\lim _{p\to \infty }{\bigg (}\sum _{i=1}^{n}\left|x_{i}-y_{i}\right|^{p}{\bigg )}^{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 p and q have Cartesian coordinates ( x 1 , y 1 ) {\displaystyle (x_{1},y_{1})} and ( x 2 , y 2 ) {\displaystyle (x_{2},y_{2})} , their Chebyshev distance is

D C h e b y s h e v = max ( | x 2 x 1 | , | y 2 y 1 | ) . {\displaystyle D_{\rm {Chebyshev}}=\max \left(\left|x_{2}-x_{1}\right|,\left|y_{2}-y_{1}\right|\right).}

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.

Properties

Comparison of Chebyshev, Euclidean and Manhattan distances for the hypotenuse of a 3-4-5 triangle on a chessboard

In one dimension, all Lp metrics are equal – they are just the absolute value of the difference.

The two dimensional Manhattan distance has "circles" i.e. level sets in the form of squares, with sides of length √2r, oriented at an angle of π/4 (45°) to the coordinate axes, so the planar Chebyshev distance can be viewed as equivalent by rotation and scaling to (i.e. a linear transformation of) the planar Manhattan distance.

However, this geometric equivalence between L1 and L metrics does not generalize to higher dimensions. A sphere formed using the Chebyshev distance as a metric is a cube with each face perpendicular to one of the coordinate axes, but a sphere formed using Manhattan distance is an octahedron: these are dual polyhedra, but among cubes, only the square (and 1-dimensional line segment) are self-dual polytopes. Nevertheless, it is true that in all finite-dimensional spaces the L1 and L metrics are mathematically dual to each other.

On a grid (such as a chessboard), the points at a Chebyshev distance of 1 of a point are the Moore neighborhood of that point.

The Chebyshev distance is the limiting case of the order- p {\displaystyle p} Minkowski distance, when p {\displaystyle p} reaches infinity.

Applications

The Chebyshev distance is sometimes used in warehouse logistics, as it effectively measures the time an overhead crane takes to move an object (as the crane can move on the x and y axes at the same time but at the same speed along each axis).

It is also widely used in electronic Computer-Aided Manufacturing (CAM) applications, in particular, in optimization algorithms for these. Many tools, such as plotting or drilling machines, photoplotter, etc. operating in the plane, are usually controlled by two motors in x and y directions, similar to the overhead cranes.

Generalizations

For the sequence space of infinite-length sequences of real or complex numbers, the Chebyshev distance generalizes to the {\displaystyle \ell ^{\infty }} -norm; this norm is sometimes called the Chebyshev norm. For the space of (real or complex-valued) functions, the Chebyshev distance generalizes to the uniform norm.

See also

References

  1. Cyrus. D. Cantrell (2000). Modern Mathematical Methods for Physicists and Engineers. Cambridge University Press. ISBN 0-521-59827-3.
  2. Abello, James M.; Pardalos, Panos M.; Resende, Mauricio G. C., eds. (2002). Handbook of Massive Data Sets. Springer. ISBN 1-4020-0489-3.
  3. David M. J. Tax; Robert Duin; Dick De Ridder (2004). Classification, Parameter Estimation and State Estimation: An Engineering Approach Using MATLAB. John Wiley and Sons. ISBN 0-470-09013-8.
  4. André Langevin; Diane Riopel (2005). Logistics Systems. Springer. ISBN 0-387-24971-0.
  5. Seitz, Charles L. (1989). Advanced Research in VLSI: Proceedings of the Decennial Caltech Conference on VLSI, March 1989. ISBN 9780262192828.
Lp spaces
Basic concepts
L spaces
L spaces
L {\displaystyle L^{\infty }} spaces
Maps
Inequalities
Results
For Lebesgue measure
Applications & related
Categories: