Gate CS-2015-1 Question Paper With Solutions

Q. 59 Let an represent 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: (A)

Explanation:

Gate CS-2015-1 Question Paper With Solutions

Learn More:   Gate ME-2005 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here