Computer Sciences > GATE 2015 SET-1 > Recurrence Relations
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

Correct : a

Similar Questions

Consider the following recurrence relation:T(n)=2T(n-1)+n2n for n>0, T(0)=1.Which ONE of the following options is CORRECT?
#1363 MCQ
Consider the following recurrence relation:T(n)=2T(n-1)+n2n for n>0, T(0)=1.Which ONE of the following options is CORRECT?
#1363 MCQ
Consider the following recurrence relation:T(n)=2T(n-1)+n2n for n>0, T(0)=1.Which ONE of the following options is CORRECT?
#1363 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......