Download presentation
Presentation is loading. Please wait.
1
Presented By: David Miller
The Knight’s Tour Presented By: David Miller 2/23/2019
2
History The Knight's Tour is a classic chess problem which was studied (and probably solved) over 1000 years ago. The famous mathematician, Euler, published the first rigorous mathematical analysis of the problem in 1759. 2/23/2019
3
How Does a Knight Move? A knight can move in an “L shape” moving two squares in one direction and one square in a perpendicular direction. In this position, the black knight can move to any of the squares marked with green dots. 2/23/2019
4
What is The Knight’s Tour Problem?
From an arbitrary starting position, move a knight chess piece around a chess board visiting all other squares on the board exactly once. 2/23/2019
5
Definition If, while constructing a knight’s tour, a knight visits a space that has no move choices left and there are still spaces on the board that have not been visited, the constructor has run into a dead end. 2/23/2019
6
One Possible Path There are lots of paths a knight can take to form a knight’s tour. This simple path is constructed by starting in a corner and moving in the same direction around the board choosing the outermost possible squares first. 2/23/2019
7
Re-entrant Knight’s Tours
If we identify the squares in a chess board with vertices and a knights’ moves with edges in a graph, a knight’s tour forms a Hamilton Path in this graph. A re-entrant knight’s tour is a knight’s tour that forms a Hamilton Circuit (there is a valid knight move from the final square in the tour to the starting square). 2/23/2019
8
Examples Not Re-entrant Re-entrant Re-entrant Re-entrant Re-entrant
2/23/2019
9
Re-entrant Rule For any m x n chess board, the number of squares must be even in order for a re-entrant knight’s tour to exist. This rule makes sense because… Every time a knight makes a move on a checker board, they move to a different color square. The final move in a re-entrant knight’s tour with an odd number of squares would have to go from one square to another, each of which have the same color. 2/23/2019
10
Rule Explanation Lets say we make a bipartite graph of this chess board with vertices for the squares and edges for a knight’s tour in progress. A re-entrant knight’s tour cannot exist because the edge needed to complete a Hamilton Circuit would be an illegal move for the knight (red square to red square). This conclusion can be supported by the fact that if a bipartite graph has an odd number of vertices, it cannot have a Hamilton Circuit. 2/23/2019
11
DeMoivre’s Method Dividing the chessboard into an inner section and an outer section as shown, start in a cell in the outer section. Move around the outside of the board in one direction only entering the inner section if you are forced. Once the outer section is completed, enter into the inner section and complete the tour (this step can be done fairly easily with minimal backtracking). 2/23/2019
12
DeMoivre Example The tour only crosses inside the green boundary if it has no other choice. 2/23/2019
13
Euler’s Method Start at some space on a board and try to randomly make a knight’s tour until you run out of possible spaces to visit. Label the unvisited spaces a, b, c, … Use the technique in the following example to construct a knight’s tour from what you have already constructed. 2/23/2019
14
Euler Example 57 55 54 58 29 29 40 27 44 19 22 60 52 39 56 56 43 30 21 26 45 55 57 54 58 53 59 59 28 41 18 23 20 38 51 51 51 42 31 8 25 46 17 53 59 32 32 37 a 47 16 9 24 50 3 52 52 60 52 33 36 7 12 15 1 34 5 48 b 14 c 10 4 49 2 2 35 6 11 d 13 2/23/2019
15
Euler Example 6 57 54 3 38 29 49 40 36 27 53 44 19 28 22 31 1 52 48 39 56 5 52 43 39 30 30 21 26 35 45 54 55 4 58 7 2 53 53 37 28 50 41 41 27 18 32 23 20 29 47 38 51 60 51 42 51 31 40 17 8 25 25 34 46 55 26 17 8 59 41 32 37 46 61 a 56 47 16 25 18 9 24 33 50 59 3 12 3 60 9 42 33 45 36 16 7 7 21 12 15 24 10 1 43 34 5 14 5 57 48 62 b b 23 14 c 19 10 4 13 49 58 2 11 44 35 15 6 11 20 63 d 13 22 2/23/2019
16
Euler Example 6 3 38 50 49 39 52 36 53 35 28 60 31 57 1 48 40 5 52 36 39 49 30 58 35 53 34 54 4 7 2 51 37 50 38 61 27 56 32 59 29 47 41 60 28 37 51 48 40 17 34 54 33 55 26 62 8 41 47 46 42 27 61 32 56 25 63 25 25 18 55 33 33 59 29 12 9 46 42 43 45 45 16 16 21 24 24 24 10 43 45 14 57 31 26 62 62 23 64 c 19 13 30 58 11 44 44 15 15 20 25 63 22 2/23/2019
17
Euler Example 6 22 25 3 50 50 39 52 35 60 57 1 27 40 23 5 36 49 58 53 34 4 24 21 7 26 2 2 51 38 61 56 59 41 28 28 37 48 17 11 3 54 33 62 8 20 47 42 27 1 13 27 32 63 18 10 4 55 29 12 16 19 9 46 43 16 12 2 21 7 7 24 10 4 10 18 45 14 14 14 31 26 12 2 23 9 5 64 19 9 5 15 13 30 11 17 44 15 1 13 13 20 8 6 11 25 3 22 6 8 2/23/2019
18
Warnsdorff's Rule A great way to minimize dead-ends in constructing Knight’s Tours. Rule: To avoid dead ends, count the number of free new move choices each possible move has, and then move to the square with the lowest number of new choices. 2/23/2019
19
Many Existing Knight’s Tours
It has been discovered, that the number of knight’s tours on an 8 x 8 board is Over 13 trillion knight’s tours takes a long time to count even with computer technology. At a fast rate of 1,000 tours per second, a single computer would take about 420 years to find all of the tours on an 8 x 8 chess board. 2/23/2019
20
Other Tour Problems We can extend our study of knight’s tours to problems other chess pieces. For instance, one other chess piece problem is the queen’s problem. In this problem we try to maximize the number of queens that can be placed on a chess board such that no queen is in a position to attack another. 2/23/2019
21
Class Exercise Use Warnsdorff’s Rule to find a knight’s tour in this 5x4 board starting in the upper left corner. Is there more than one possibility for a knight’s tour starting in this corner? How do you know? 2/23/2019
22
Solution 3 4 5 4 2 3 2 Yes there is more than one solution. We know this because sometimes when we look at the number of move choices for each possible “next space”, the lowest number occurs in more than one space. In fact, when using Warnsdorff’s Rule, a single wrong choice usually doesn’t affect the discovery of a knight’s tour anyway. 2/23/2019
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.