Question: Problem 3 Suppose we have a m n grid ( m squares one way, n squares the other ) , and some squares of the
Problem
Suppose we have a grid squares one way, squares the other and some squares of the grid of
them are colored green while all the others are uncolored. We wish to cover the green squares with dominoes,
which are or subgrids. The dominoes may overlap share squares but they may not be placed so
as to cover any uncolored squares.
A green walk starts at a green square then moves to an adjacent green square then to a green
square adjacent to etc., up to a green square for some positive A green walk may visit
a square more than once: it is possible that for A green walk is nonbacktracking if upon
stepping from any to we do not immediately step back to That is for any i between
and inclusive. A nonbacktracking green walk is called a green tour if and
Assume that the green squares that you are given contain no green tours.
Under this condition, find an efficient algorithm that covers all of the green squares using the minimum
number of dominoes. The running time may be a function of or or some combination of these
variables.
Note that if there is a green square that is not adjacent to any other green square, then this type of
covering is not possible, and the algorithm should report this.
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
