Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3 ( a ) Now, we are given the following 8 * 8 checkerboard with a missing cell ( 0 ) . Draw the checkerboard
Now, we are given the following checkerboard with a missing cell Draw the checkerboard after dividing it into sub checkerboards such that
each subcheckerboard is a square, and
each subcheckerboard contains exactly either a missing cell or a cell
covered by a triomino.
Hint: Place a triomino at a suitable location to divide the checkerboard.
b
We represent the checkerboard by using a twodimensional integer arrayQuestion
A triomino can be arranged as one of the followings.
In this question, we are given a checkerboard with a missing cell denoted by and
we are asked to tile it by using triominoes. An example is provided in Figure
a before tiling
b after tiling
Figure An example of tiling a checkerboard with a missing cell
a Now, we are given the following checkerboard with a missing cell
Draw the checkerboard after dividing it into subcheckerboards such that:
each subcheckerboard is a square, and
each subcheckerboard contains exactly either a missing cell or a cell
covered by a triomino.
Hint: Place a triomino at a suitable location to divide the checkerboard.
b We represent the checkerboard by using a twodimensional integer array
where is a power of two. For example, the value of can be
dots.. Suppose that, in the twodimensional array the missing cell is set to
and the other cells are initialized to
Write an algorithm ie pseudocode using divideandconquer to fill the two
dimensional array to satisfy all the following conditions:
all cells except the missing cell are assigned positive integers,
only the cells belonging to the same triomino can be assigned the same integer.
Please refer to the sample output in Figure b
Amm where m is a power of two. For example, the value of m can be
Suppose that, in the twodimensional array A the missing cell is set to and the other cells are initialized to
Write an algorithm ie pseudocode using divideandconquer to fill the twodimensional array Amm to satisfy all the following conditions:
all cells except the missing cell are assigned positive integers,
only the cells belonging to the same triomino can be assigned the same integer.
Please refer to the sample output in Figure b
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started