1 / 20

The Knight’s Tour

The Knight’s Tour. By Colleen Raimondi. The Knight’s Tour. The Knight’s Tour is a geometrical problem played on a chessboard. It consists of moving a knight on a chessboard in such a way that will hit every cell once and only once.

Mercy
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 By Colleen Raimondi

  2. The Knight’s Tour • The Knight’s Tour is a geometrical problem played on a chessboard. • It consists of moving a knight on a chessboard in such a way that will hit every cell once and only once. • There are many, many different solutions for this problem.

  3. Knight’s Tour Terms • Re-entrant: the last cell that the knight lands on to finish the problem is also a cell that the first cell, that the knight started from, commands . • Cell: each square on a chessboard.

  4. Re-entrance • On a board containing an even number of cells the solution may or may not be re-entrant. • You cannot have a solution be re-entrant on a board that contains an odd number of cells. • Reason: If a knight begins on a white cell, its first move will end up on a black cell, and its next move to a white cell, and so on. • That is why if the solution passes through all the cells, on a board with an odd number of cells, the last move will leave it on a cell of the same color of the cell which it started from. • Therefore these cells cannot be connected by one move.

  5. Different Solutions • De Moivre Solution • Euler Solution • Vandermonde Solution • Warndorff Solution

  6. De Moivre • These solutions pertain to an ordinary eight by eight chessboard (64 cells). • Divide the board into an inner 4x4 square that is bordered by an outer ring of two cells deep. • Either start the path in the outer circle or by starting in the inner square. • If you start from the outer circle, the knight needs to move around the outer circle in one direction to fill it up completely. • Only go into the inner square when it is absolutely necessary • When the outer ring is filled up, there are only a few cells left in the inner square. • You can pass through these pretty easily with a little ingenuity. • If you start from the inner square, you have to reverse the process. • You can apply this method to different variations of square and rectangle boards.

  7. An Example of De Moivre

  8. Euler 1759 • Euler would start by randomly moving a knight over a board until there were no more moves available to it. Doing this carefully left a few cells on the board that were not hit by the knight and he would label these cells a,b,…. His method consisted of establishing certain rules by which these labeled cells could be inserted into the knight’s path, and also rules to make the solution re-entrant.

  9. 55 58 29 40 27 44 19 22 60 39 43 45 56 30 21 26 57 54 59 28 41 18 23 20 42 31 8 25 46 17 38 51 37 a 16 53 32 47 9 24 50 3 52 7 12 15 33 36 c 48 10 1 34 5 b 14 6 4 13 49 2 35 11 d Euler’s Method Let us take the example of a path formed by the knight of 1,2,3,…, 59,60; and with four cells left empty to be labeled a,b,c,d.

  10. Euler’s Method Euler’s Method We need to begin by making the path from 1 to 60 re-entrant. Cell 1 commands a cell p, where p is 32, 52, or 2. Cell 60 commands a cell q, where q is 29, 59, or 51. If any of the values of p and q differ by 1 then we can make the path re-entrant. For this case we have p=52 and q=51. So the cells 1, 2, 3,…, 51; 60, 59,…, 52 form a re-entrant path of 60 moves. Therefore, if we replace the numbers 60, 59,…, 52 by 52, 53,…, 60, the steps will numbered successively.

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

  12. Euler’s Method Next, we need to add the cells a,b,d to this path. In the new path of 60 cells a commands the cells 51, 53, 41, 25, 7, 5, and 3. It does not matter which of these we pick, for the example we will pick 51. We want to make 51 the last cell of the path of 60 cells so that we can continue with a,b,d. To do this we want to add 9 to every number in path of 60 cells. Then replace 61, 62,…, 69 with 1, 2,…, 9, then we will have a path that starts from the cell initially occupied by 60, the 60th move is on the cell initially occupied by 51, and the 61st, 62nd, 63rd moves will be on the cells a, b, d in that order.

  13. 66 63 38 49 36 53 28 31 6 3 38 49 36 53 28 31 61 48 52 54 1 48 52 54 65 5 39 39 30 30 35 35 64 4 7 67 2 62 37 37 50 50 27 27 32 32 29 29 55 26 51 51 40 40 17 17 34 34 55 26 47 47 60 60 46 61 46 a 25 25 68 8 41 41 56 56 18 18 33 33 59 12 16 59 12 9 69 16 21 21 24 24 42 45 42 45 c c 57 57 19 19 10 10 43 43 14 14 62 b 23 23 15 15 13 13 58 11 44 20 22 22 58 11 44 20 d 63 Euler’s Method Replaced 61, 62,…, 69 with 1, 2,…, 9 and a,b,d with 61, 62, 63 Added 9 to all cells

  14. Euler’s Method We still have to introduce the cell c to the path. Since c now commands the new cell number 25, and 63 commands the cell now numbered 24, we can use the method we used earlier to make the path re-entrant. In fact the cells numbered 1, 2,.., 24; 63, 62,..,25, c form a knight’s tour. Therefore we need to replace 63, 62,..,25 by the numbers 25, 26,…63, and then we can label c with 64.

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

  16. Euler’s Method The last thing we have to do is make the solution re-entrant. First we need to get cell 1 and cell 64 near each other. Do this by taking one of the cells commanded by 1, like 28, so 28 commands 1 and 27. Therefore the cells 64, 63,…, 28; 1, 2,…, 27 form a path. We represent this by replacing the cells numbered 1, 2,…, 27 by 27, 26,…,1. The cell now occupied by 1, commands the cells 26, 38, 54, 12, 2, 14, 16, 28, and the cells commanded by 64 are 13, 43, 63, 55. The cells 13 and 14 are consecutive, and therefore the cells 64, 63,…,14; 1, 2,…,13 form a path. We need to replace the numbers 1, 2,…,13 with 13, 12,…1. By doing this we achieve a re-entrant solution that covers the entire board.

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

  18. Vandermonde’s Method • Cover the board by two or more independent paths taken at random, and then to connect the paths. • Define the position of a cell was by a fraction x/y, where the numerator x is the number of the cell from one side of the board, and the denominator y is its number from the adjacent side of the board. • In a series of fractions representing a knight’s path, the difference between the numerators of two consecutive fractions can be only one or two, while the corresponding difference between their denominators must be two or one respectively. • Also x and y cannot be less than 1 or greater than 8.

  19. 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 Vandermonde’s Method 5/5, 4/3, 2/4, 4/5, 5/3, 7/4, 8/2, 6/1, 7/3, 8/1, 6/2, 8/3, 7/1, 5/2, 6/4, 8/5, 7/7, 5/8, 6/6, 5/4, 4/6, 2/5, 1/7, 3/8, 2/6, 1/8, 3/7, 1/6, 2/8, 4/7, 3/5, 1/4, 2/2, 4/1, 3/3, 1/2, 3/1, 2/3, 1/1, 3/2, 1/3, 2/1, 4/2, 3/4, 1/5, 2/7, 4/8, 3/6, 4/4, 5/6, 7/5, 8/7, 6/8, 7/6, 8/8, 6/7, 8/6, 7/8, 5/7, 6/5, 8/4, 7/2, 5/1, 6/3

  20. Warnsdorff’s Method • His rule is that the knight must be moved always to one of the cells from which it will command the fewest number of cells not already touched upon. • The solution is not symmetrical or re-entrant • In most cases a single false step, except in the last three of four moves will not affect the result. http://w1.859.telia.com/~u85905224/knight/eWarnsd.htm

More Related