Question: Draw the checkerboard after dividing it into 4 sub - checkerboards such that: each sub - checkerboard is a square, and each sub - checkerboard
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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
