1 / 22

The Knight’s Tour

Explore the history, rules, and methods behind the Knight's Tour, a classic chess problem dating back over 1000 years.

freemand
Télécharger la présentation

The Knight’s Tour

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The Knight’s Tour Presented By: David Miller

  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.  

  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.

  4. What is The Knight’s Tour Problem? Problem:  From an arbitrary starting position, move a  knight chess  piece around a chess board visiting all other squares on the board exactly once. 

  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.

  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.

  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).

  8. Examples Not Re-entrant Re-entrant Re-entrant Re-entrant Re-entrant Re-entrant

  9. Re-entrant Rule • For any mx 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.

  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.

  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).

  12. DeMoivre Example The tour only crosses inside the green boundary if it has no other choice.

  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.

  14. Euler Example 55 57 58 54 29 29 40 27 44 19 22 52 60 39 56 56 43 30 21 26 45 57 55 54 58 53 59 59 28 41 18 23 20 38 51 51 51 42 31 8 25 46 17 59 53 32 32 37 a 47 16 9 24 50 3 52 52 52 60 33 36 7 12 15 1 34 5 48 b 14 c 10 4 49 2 2 35 6 11 d 13

  15. Euler Example 57 6 54 3 38 29 49 40 27 36 53 44 28 19 22 31 1 52 48 39 5 56 52 43 30 39 30 21 35 26 54 45 4 55 7 58 53 2 53 28 37 41 41 50 18 27 23 32 29 20 38 47 51 51 60 51 42 31 40 17 8 34 25 25 46 55 26 17 59 8 32 41 46 37 61 a 56 47 25 16 18 9 24 33 50 59 12 3 3 60 9 42 33 36 45 16 7 7 21 12 24 15 10 1 34 43 14 5 5 48 57 62 b b 14 23 c 10 19 4 13 49 58 11 2 35 44 15 6 20 11 63 d 22 13

  16. Euler Example 6 3 50 38 49 39 52 36 53 35 60 28 31 57 1 40 48 5 36 52 49 39 30 58 53 35 34 54 4 7 2 37 51 50 38 61 27 32 56 29 59 47 41 60 28 51 37 48 40 17 54 34 55 33 62 26 8 41 47 46 42 61 27 56 32 25 63 25 25 18 33 33 55 29 59 12 9 42 46 43 45 45 16 16 21 24 24 24 10 43 45 14 31 57 62 62 26 23 64 c 19 13 58 30 11 44 44 15 15 20 25 63 22

  17. Euler Example 22 6 25 3 50 50 39 52 35 60 57 1 27 40 23 5 36 49 58 53 34 24 4 21 7 26 2 2 51 38 61 56 59 41 28 28 37 48 11 17 3 54 33 62 8 20 47 42 13 27 27 1 32 63 10 18 4 55 29 16 12 19 9 46 43 16 12 2 21 7 7 24 10 4 18 10 45 14 14 14 31 12 26 2 23 9 5 64 19 5 9 15 13 30 17 11 44 13 13 15 1 20 8 6 11 25 3 22 6 8

  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. http://web.telia.com/~u85905224/knight/eWarnsd.htm

  19. Many Existing Knight’s Tours • It has been discovered, that the number of knight’s tours on an 8 x 8 board is 13267364410532. • 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.

  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.

  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?

  22. Solution 3 5 4 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.

More Related