You have a supply of 1 Ã 2 dominoes with which to cover a 2 Ã n

Question:

You have a supply of 1 × 2 dominoes with which to cover a 2 × n rectangle. Let dnbe the number of different ways to cover the rectangle. For example, Figure 4.32 shows that d3= 3.
Figure 4.32

The three ways to cover a 2 × 3 rectangle with 1 × 2 dominoes
(a) Find d1, . . . , d5. (Does d0 make any sense? If so, what is it?)
(b) Set up a second order recurrence relation for dn.
(c) Using d1 and d2 as the initial conditions, solve the recurrence relation in part (b). Check your answer against the data in part (a).

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: