Knight's Tour — Definition & Example
A knight's tour is a path in which a chess knight lands on every square of a board exactly once. If the knight's final square is one move away from its starting square, so the path can loop back, the tour is called closed. Otherwise it is open.
On an board, form the knight's graph: each square is a vertex, and two squares are joined by an edge when their coordinates differ by or . An open knight's tour is a Hamiltonian path in this graph. A closed knight's tour is a Hamiltonian cycle.
Worked Example
Problem: Show that a 5 × 5 board has no closed knight's tour.
Step 1: Color the board like a checkerboard. A knight move changes one coordinate by 1 and the other by 2, so the sum of the coordinates changes by an odd amount. That means every move lands on the opposite color.
Step 2: Count each color. The board has 25 squares. All four corners share a color, and that color appears one more time than the other.
Step 3: A closed tour is a loop whose colors alternate, so it must contain equally many squares of each color. The counts 13 and 12 are not equal, so no such loop can exist.
Answer: No closed knight's tour exists on a 5 × 5 board. The same argument rules out closed tours on every board with an odd number of squares. Open tours on the 5 × 5 board do exist.
Why It Matters
Leonhard Euler analyzed knight's tours in 1759, and the problem is now a standard example of Hamiltonian paths in a college graph theory or discrete math course. Finding a Hamiltonian path is hard for general graphs. Knight's tours, however, can usually be found quickly with Warnsdorff's rule, a heuristic: always move to the square that has the fewest onward moves. This makes the problem a classic exercise in backtracking and heuristic search in computer science. The standard 8 × 8 board has more than 13 trillion closed tours, counting each loop only once.
Common Mistakes
Mistake: Calling a tour closed because it ends close to the starting square, such as two squares away.
Correction: A tour is closed only if the last square is exactly one knight move from the first square, so the knight could jump back and complete a loop. Check the final move against the or pattern. On a board with an odd number of squares, the coloring argument shows that a closed tour is impossible.
