Chebyshev Distance (Maximum norm)
Calculator to compute the L∞-norm with formulas and examples
Chebyshev Distance Calculator
What is calculated?
The Chebyshev distance (also called the maximum norm or L∞-norm) is the maximum of the absolute differences of all components between two vectors.
Chebyshev Info
Properties
Chebyshev distance:
- Also called the L∞-norm
- Maximum of component-wise differences
- Limit case of Minkowski distance (p→∞)
- Defines the "chessboard distance"
Chessboard: Equals the minimum number of king moves from one square to another on a chessboard.
Special cases
Chessboard distance between squares
Distance from center to corners
Determines the entire distance
Formulas for Chebyshev distance
Definition
As a limit
Vector norm
Matrix norm
2D chessboard
Symmetry
Detailed calculation example
Example: compute Chebyshev([0,3,4,5], [7,6,3,-1])
Given:
- x = [0, 3, 4, 5]
- y = [7, 6, 3, -1]
Step 1 - Differences:
- |0 - 7| = 7
- |3 - 6| = 3
- |4 - 3| = 1
- |5 - (-1)| = 6
Step 2 - Determine maximum:
Interpretation: The largest difference in any single component determines the full distance.
Chessboard example
Example: king moves on the chessboard
Problem:
A king stands on square (1,1) and needs to move to (4,3). How many moves does it need at minimum?
Solution with Chebyshev:
One possible move sequence:
Result: The king needs at least 3 moves.
Comparison of Lₚ norms
For vectors [1,2,3] and [4,1,1]
L₁ (Manhattan)
|3|+|1|+|2| = 6
L₂ (Euclidean)
√(9+1+4) = √14
L₅ (Minkowski)
(3⁵+1⁵+2⁵)^(1/5)
L∞ (Chebyshev)
max(3,1,2) = 3
Observation: As p increases the Lₚ-norm approaches the Chebyshev distance.
Practical applications
Game theory
- Chessboard navigation
- Grid-based games
- Pathfinding algorithms
- Strategic movement
Robotics
- Motion planning
- Collision avoidance
- Grid navigation
- Control systems
Numerics
- Error analysis
- Convergence criteria
- Algorithm stability
- Optimization
Mathematical properties
Norm properties
- Positivity: ‖x‖∞ ≥ 0, ‖x‖∞ = 0 ⟺ x = 0
- Homogeneity: ‖αx‖∞ = |α|‖x‖∞
- Triangle inequality: ‖x+y‖∞ ≤ ‖x‖∞ + ‖y‖∞
- Equivalence: Equivalent to other norms on finite-dimensional spaces
Geometric properties
- Unit ball: Hypercube (cube in nD)
- Convex: Unit ball is convex
- Polytopal: Unit ball is a polytope
- Facets: 2ⁿ facets in n dimensions
Important relations
With other norms:
‖x‖∞ ≤ ‖x‖₂ ≤ √n ‖x‖∞
‖x‖∞ ≤ ‖x‖₁ ≤ n ‖x‖∞
Duality:
The Chebyshev norm (L∞) is dual to the L₁ norm (Manhattan)
Geometric interpretation
2D unit balls of different norms
L₁ (Manhattan)
L₂ (Euclidean)
L₅ (Minkowski)
L∞ (Chebyshev)
Interpretation: The Chebyshev norm produces a square in 2D and a hypercube in nD as its unit ball.