Mathwords logoMathwords

Schwenk's Theorem — Definition & Example

Schwenk's Theorem is a complete rule for deciding whether a knight can visit every square of a rectangular chessboard exactly once and finish one move away from where it started. Only three kinds of boards make this impossible; every other board allows such a closed tour.

Let 1≤m≤n1 \le m \le n. The m×nm \times n knight's graph has a Hamiltonian cycle (a closed knight's tour) if and only if none of the following holds: (1) mm and nn are both odd; (2) m∈{1,2,4}m \in \{1, 2, 4\}; (3) m=3m = 3 and n∈{4,6,8}n \in \{4, 6, 8\}. Allen Schwenk proved this in 1991.

Worked Example

Problem: Use Schwenk's Theorem to decide which of these boards have a closed knight's tour: a 5 × 7 board, a 4 × 9 board, and a 3 × 10 board.
Step 1: Test the 5 × 7 board against condition (1). Both dimensions are odd, so the board has an odd number of squares. A knight always moves between squares of opposite color, so the knight's graph is bipartite. Every cycle in a bipartite graph has even length, so a cycle through all 35 squares cannot exist.
5×7=35(odd)5 \times 7 = 35 \quad (\text{odd})
Step 2: Test the 4 × 9 board. Here the smaller dimension is m=4m = 4, which triggers condition (2). The board fails even though it has an even number of squares.
m=4∈{1,2,4}m = 4 \in \{1, 2, 4\}
Step 3: Test the 3 × 10 board. The dimensions are not both odd, and m=3m = 3 is not in {1,2,4}\{1, 2, 4\}. Since m=3m = 3, check condition (3): n=10n = 10 is not in {4,6,8}\{4, 6, 8\}. No exception applies.
m=3,  n=10∉{4,6,8}m = 3,\; n = 10 \notin \{4, 6, 8\}
Answer: Only the 3 × 10 board has a closed knight's tour. The 5 × 7 board fails by condition (1), and the 4 × 9 board fails by condition (2).

Why It Matters

Deciding whether a general graph has a Hamiltonian cycle is NP-complete, so no fast method is known. Schwenk's Theorem settles the question completely for one infinite family of graphs. In a college discrete math or graph theory course, the 5 × 7 case shows how a simple bipartite parity argument can rule out a structure without searching for it.

Common Mistakes

Mistake: Applying the theorem to open knight's tours, which do not have to end next to the starting square.
Correction: Schwenk's Theorem covers closed tours only. A 5 × 5 board has no closed tour, yet open tours on it do exist. Check which kind of tour the problem asks for.

Related Terms

  • Bipartite Graph — Knight's graph is bipartite, which rules out odd-by-odd boards
  • Hamiltonian Graph — Graphs with a Hamiltonian cycle; Schwenk classifies the knight's graphs that are
  • Graph Theory — Field that studies knight's graphs and their cycles
  • Knight's Tour — The puzzle whose closed version this theorem settles
  • Hamiltonian Cycle — A closed tour is a Hamiltonian cycle