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=32 .
00000000000000110101
1100000001
0111000000
The number of bit strings of length 5 can be formed, where three consecutive 0s are not allowed, is 32-8=24
Comments