Question #226271

determine how many bit strings of length can be formed, where three consecutive 0s are not allowed

Expert's answer

Let use the following example.

Determine how many bit strings of length 5 can be formed, where three consecutive 0s are not allowed.

The number of elements of the set of different binary strings of length 5 is 25=322^5=32 .

00000000010001000011\begin{matrix} 0& 0 & 0 & 0 & 0\\ 0& 0 & 0 & 0 & 1\\ 0& 0 &0 &1 &0 \\ 0& 0 & 0 & 1 & 1 \end{matrix}


1000010001\begin{matrix} 1 & 0 & 0 & 0 & 0\\ 1 & 0 & 0 & 0 & 1 \end{matrix}


0100011000\begin{matrix} 0 & 1 & 0 & 0 & 0\\ 1& 1 & 0 & 0 & 0 \end{matrix}


The number of bit strings of length 5 can be formed, where three consecutive 0s are not allowed, is 32-8=24


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS