GATE CS 2008 · Asymptotic Analysis & Recurrences

MCQ · 2 marks · Problem PROG-DIVC-0125

Let \(x_{n}\) denote the number of binary strings of length n that contain no consecutive 0s. The value of \(x_{5}\) is
  1. A
    5
  2. B
    7
  3. C
    13
  4. D
    16

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/43485/gate2008-79

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com