MCQOPTIONS
Saved Bookmarks
| 1. |
Let an represents the number of bit strings of length n containing two consecutive 1s. What is the recurrence relation for an? |
| A. | an-2 + an-1 + 2n-2 |
| B. | an-2 + 2an-1+ 2n-2 |
| C. | 2an-2 + an-1 + 2n-2 |
| D. | 2an-2 + 2an-1 + 2n-2 |
| Answer» B. an-2 + 2an-1+ 2n-2 | |