Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( Challenge problem - to turn in again for homework 3 ) Let kinN be a natural number. Consider a 2 ^ ( k )

(Challenge problem - to turn in again for homework 3) Let kinN be a natural number. Consider a 2^(k) times 2^(k) square board divided into equal square tiles of 1 times 1 size, like a chess board. (So the 2^(k) times 2^(k) board is covered by 2^(2^(k)) tiles.) Remove one tile from the 2^(k) times 2^(k) board. Prove using induction that the remaining part of the board can be covered with triomino pieces, i.e. pieces made of three unit tiles with an L-shape.Task 2.[50 Points ] Superknight's Tour on a (102k)(102k) Chessboard
Suppose that you are given an nn chessboard for n=102k for some integer k0. Each cell is
identified with a pair (r,c), where rin[1,n] is its row number and cin[1,n] is its column number.
A superknight is similar to the standard chess piece called a knight but it makes bigger jumps when
it moves around the chessboard. Indeed, like a standard knight, it moves in an 'L' shape in any
direction as shown in Figure 2(a), except that a superknight's 'L' is bigger than a knight's 'L'.
A superknight's tour on a chessboard is a sequence of moves made by the superknight starting from
any cell and touching every other cell exactly once. If the last cell on the tour is reachable from
the first cell in a single move of the superknight, we call the tour closed. Figure 2(b) shows a closed
tour on a 1010 chessboard. The tour starts from any given cell and moves along the arrows to
land on every other cell exactly once before coming back to the starting cell. Flipping the direction
of every arrow will produce another valid tour but in the opposite direction.
(a)[40 Points ] Design and explain a recursive divide-and-conquer algorithm to find a closed
superknight's tour on an nn chessboard with n=102k for some integer k0 using the
solution to the 1010 board given in Figure 2(b) as the base case. What data structure will
you use to store the final tour as well as all tours computed by your algorithm recursively?
(b)[10 Points ] Write down a recurrence relation that describes the running time of your
algorithm from part (a), and solve it.
(b) A closed superknight's tour on
a 1010 chessboard
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions

Question

=+2 How can the effectiveness of global virtual teams be improved?

Answered: 1 week ago