Question

In chess, the knight can move in eight directions. It can move two squares vertically followed...

In chess, the knight can move in eight directions. It can move two squares vertically followed by
one square horizontally. It can also move two squares horizontally followed by one square vertically.
Since the vertical motion can be up or down and the horizontal motion can be left or right, there
are eight squares on a chessboard where a knight can be positioned after one move.

Suppose that we have an n×n chessboard with a knight placed in one of the corners. (A normal chessboard is 8 × 8.) Prove by induction that for n ≥ 4, the knight in the corner can be placed in any square of the n × n chessboard after a finite sequence of legal knight moves. Note that the knight is not allowed to wander off the board and must stay within the confines of the n × n chessboard. For example, the white knight in the figure above can only move to two places after one move. In your proof by induction, you should start with a large chessboard, then consider one or more smaller chessboards (at least 4 × 4) within it. By the induction hypothesis (and symmetry), you can assume that a knight can move from any corner of the smaller board to any position in the smaller board. Use this to show that a knight can move from any corner of the larger board to any position in the larger board. Some ground rules: • You must make good use of induction. • Do not describe the sequence of moves made by the knight directly. • You must not use iteration instead of induction. (I.e., do not say something like, “Continuing in this manner, the knight can reach any position on the board.”

0 0
Add a comment Improve this question Transcribed image text
Answer #1

lution(s):

Suppose we have an chessboard. Label the rows as   from bottom to top of the board.. Label the squares of the row by   from left to right. Now, place a knight at the leftmost bottom square .

Base case:

If the knight has been to some square, we will not revisit it, to avoid repitition.

From , the knight can jump to either or .

From , the knight can jump to either , or .

From , the knight can jump to either or .

From , the knight can jump to either or .

From , the knight can jump to either or .

From , the knight can jump to .

From , the knight can jump to either or .

From , the knight can jump to .

Thus, we have visited all the squares in a chessboard. So, the hypothesis is true for .

Induction hypothesis: Assume that the hypothesis is true for some integer .

Induction step: We will prove that the hypothesis is true for chessboard.

We will first show that the knight can visit all the squares of the row.

From , the knight can jump to and then to .

From (where is such that ), the knight can jump to and then to .

By induction, this shows that the knight can visit the squares for odd integers .

Now, from , the knight can jump to and then to .

From , the knight can jump to and then to .

From (where is such that ), the knight can jump to and then to .

By induction, this shows that the knight can visit the squares for even integers

Combining these two, we have that the knight can visit all the squares of the first row.

By symmetry, the knight can visit all the squares of the first column [Flip the board upside down and rotate it left by degrees]

Now, from ., the knight can jump to , then to and then to .

Note that the square in the chessboard is the leftmost bottom square of the sub-chessboard obtained by deleting the row and the column.

By induction hypothesis, the knight can be placed in any square of this sub-chessboard. So, the knight can be placed in any square of the chessboard. That is to say, the hypotheis is true for chessboard.

Hence, by the principle of mathematical induction, the statement is true for all integers .

Add a comment
Know the answer?
Add Answer to:
In chess, the knight can move in eight directions. It can move two squares vertically followed...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • King in N moves. In chess, a king can move one space in any of the...

    King in N moves. In chess, a king can move one space in any of the 8 directions (2 vertical, 2 horizontal, 4 diagonals). Suppose our chessboard is infinite in every direction, and a king starts on a particular square. (a) How many different squares are possible locations for the king after N or fewer moves? (b) Answer the same question for a “crippled king” that can only move horizontally and vertically (no diagonal moves allowed). For both parts, show...

  • JAVA code: (Knight’s tour)This chapter described the backtracking algorithm and how to use recursion to implement...

    JAVA code: (Knight’s tour)This chapter described the backtracking algorithm and how to use recursion to implement it.Another well-known chessboard problem that can be solved using the backtracking algorithm is a knight’s tour.Given an initial board position, determine a sequence of moves by a knight that will visit every square of the chessboard exactly once.For example,for a 5 × 5 and 6 × 6 square board,the sequence of moves are shown in Figure 5-22. A knight moves by jumping two positions...

  • Rooks can move any number of squares horizontally or vertically on a chess board. The n...

    Rooks can move any number of squares horizontally or vertically on a chess board. The n rooks problem is to arrange rooks on an n×n board in such a way that none of the rooks could bump into another by making any of its possible horizontal or vertical moves. For this problem, the variables are each column (labeled 0, 1, ... , n−1), the the domain consists of each possible row (also labeled 0, 1, ... ,n−1). In each column...

  • Concepts: multi-dimension array and the Knight's Tour Problem A chess board consists of an 8 x 8 "array" of squares: int board[ROW][COL]={0}; A knight may move perpendicular to the edges o...

    Concepts: multi-dimension array and the Knight's Tour Problem A chess board consists of an 8 x 8 "array" of squares: int board[ROW][COL]={0}; A knight may move perpendicular to the edges of the board, two squares in any of the 4 directions, then one square at right angles to the two-square move. The following lists all 8 possible moves a knight could make from board [3][3]: board[5][4] or board[5][2] or board[4][5] or board[4][1] or board[1][4] or board[1][2] or board[2][5] or board[2][1]...

  • (9.1) A knight, on a chess board, moves two squares forward and one square to the...

    (9.1) A knight, on a chess board, moves two squares forward and one square to the right. (a) Determine the knight’s displacement in terms of components. (b) Determine the magnitude and direction of the knight’s displacement. (9.2) A person set out at 11:00 AM one day and walked three blocks east. Turning a corner, he then continued walking four blocks north. Just as he reached the end of the fourth block, his watch read 11:10. (a) Determine the person’s displacement...

  • NEED HELP WITH DISCRETE MATH: . Consider the following game. Alice and Bob have a an...

    NEED HELP WITH DISCRETE MATH: . Consider the following game. Alice and Bob have a an infinite quarter chessboard in front of them. The chessboard has a left edge and a bottom edge. There is one checker on some square the chessboard. The player whose turn it is can move the checker down any positive number of squares, or can move the check one column to the left, but anywhere in that column. The game ends when a player cannot...

  • please explain/ comment 3. Eight Queens Write a program that places eight queens on a chessboard...

    please explain/ comment 3. Eight Queens Write a program that places eight queens on a chessboard (8 x 8 board) such that no queen is "attacking" another. Queens in chess can move vertically, horizontally, or diagonally. How you solve this problem is entirely up to you. You may choose to write a recursive program or an iterative (i.e., non-recursive) program. You will not be penalized/rewarded for choosing one method or another. Do what is easiest for you. 3.1. Output Below...

  • 4. Eight rooks are placed randomly on a chess board. What is the probability that none...

    4. Eight rooks are placed randomly on a chess board. What is the probability that none of the rooks can capture any of the other rooks? (In non-chess terms: Randomly pick 8 unit squares from an 8 x 8 square grid. What is the probability that no two squares share a row or a column?) Hint: How many choices do you have to place rooks in the first row? After you have made your choice, how many choices do you...

  • Assignment 2 In this assignment, you will write two short programs to solve problems using recursion....

    Assignment 2 In this assignment, you will write two short programs to solve problems using recursion. 1. Initial Setup Log in to Unix. Run the setup script for Assignment 2 by typing: setup 2 2. Towers of Hanoi Legend has it that in a temple in the Far East, priests are attempting to move a stack of disks from one peg to another. The initial stack had 64 disks threaded onto one peg and arranged from bottom to top by...

  • Java question for two classes: Given the upper limit n as a parameter, the result of...

    Java question for two classes: Given the upper limit n as a parameter, the result of both methods is a boolean[] array of n elements that reveals the answers to that problem for all natural numbers below n in one swoop. public static boolean[] sumOfTwoDistinctSquares(int n) Determines which natural numbers can be expressed in the form a 2 + b 2 so that a and b are two distinct positive integers. In the boolean array returned as result, the i...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT