Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Knight’s Tour By Colleen Raimondi.

Similar presentations


Presentation on theme: "The Knight’s Tour By Colleen Raimondi."— 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 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. 55 4 1 50 53 38 57 60 58 39 54 32 51 3 34 49 2 5 52 37 42 59 56 29 31 28 43 22 19 44 27 40 45 26 21 30 35 48 33 a 20 23 11 14 7 16 25 18 6 b 36 47 8 41 d c 13 10 15 12 24 9 17 46

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

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

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

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

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 Vandermonde’s Method 1 2 3 4 5 6 7 8 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.


Download ppt "The Knight’s Tour By Colleen Raimondi."

Similar presentations


Ads by Google