Knight's graph

Graph that represents all legal moves of the knight on a chessboard
Knight's graph
8 × 8 {\displaystyle 8\times 8} knight's graph
Vertices m n {\displaystyle mn}
Edges 4 m n 6 ( m + n ) + 8 {\displaystyle 4mn-6(m+n)+8} (if n 2 {\displaystyle n\geq 2} and m 2 {\displaystyle m\geq 2} )
Girth4 (if n 3 {\displaystyle n\geq 3} and m 5 {\displaystyle m\geq 5} )
Propertiesbipartite
Table of graphs and parameters

In graph theory, a knight's graph, or a knight's tour graph, is a graph that represents all legal moves of the knight chess piece on a chessboard. Each vertex of this graph represents a square of the chessboard, and each edge connects two squares that are a knight's move apart from each other. More specifically, an m × n {\displaystyle m\times n} knight's graph is a knight's graph of an m × n {\displaystyle m\times n} chessboard.[1] Its vertices can be represented as the points of the Euclidean plane whose Cartesian coordinates ( x , y ) {\displaystyle (x,y)} are integers with 1 x m {\displaystyle 1\leq x\leq m} and 1 y n {\displaystyle 1\leq y\leq n} (the points at the centers of the chessboard squares), and with two vertices connected by an edge when their Euclidean distance is 5 {\displaystyle {\sqrt {5}}} .

For an m × n {\displaystyle m\times n} knight's graph, the number of vertices is n m {\displaystyle nm} . If m > 1 {\displaystyle m>1} and n > 1 {\displaystyle n>1} then the number of edges is 4 m n 6 ( m + n ) + 8 {\displaystyle 4mn-6(m+n)+8} (otherwise there are no edges). For an n × n {\displaystyle n\times n} knight's graph, these simplify so that the number of vertices is n 2 {\displaystyle n^{2}} and the number of edges is 4 ( n 2 ) ( n 1 ) {\displaystyle 4(n-2)(n-1)} .[2]

A Hamiltonian cycle on the knight's graph is a (closed) knight's tour.[1] A chessboard with an odd number of squares has no tour, because the knight's graph is a bipartite graph (each color of squares can be used as one of two independent sets, and knight moves always change square color) and only bipartite graphs with an even number of vertices can have Hamiltonian cycles. Most chessboards with an even number of squares have a knight's tour; Schwenk's theorem provides an exact listing of which ones do and which do not.[3]

When it is modified to have toroidal boundary conditions (meaning that a knight is not blocked by the edge of the board, but instead continues onto the opposite edge) the 4 × 4 {\displaystyle 4\times 4} knight's graph is the same as the four-dimensional hypercube graph.[3]

See also

  • King's graph
  • Queen's graph
  • Rook's graph
  • Bishop's graph
  • icon Chess portal

References

  1. ^ a b Averbach, Bonnie; Chein, Orin (1980), Problem Solving Through Recreational Mathematics, Dover, p. 195, ISBN 9780486131740.
  2. ^ Sloane, N. J. A. (ed.). "Sequence A033996". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
  3. ^ a b Watkins, John J. (2004), Across the Board: The Mathematics of Chessboard Problems. Paradoxes, perplexities, and mathematical conundrums for the serious head scratcher, Princeton University Press, pp. 44, 68, ISBN 978-0-691-15498-5.

External links