The number of binary strings of zeros and ones in which no two ones are adjacent is
View worked solution
Answer: D
We want to find the number of binary strings containing zeros and ones such that no two ones are adjacent.
We can solve this using the gap method:
- First, arrange the zeros in a line. This creates available slots (gaps) where the ones can be placed (one slot before the first zero, slots between the zeros, and one slot after the last zero):
- To ensure that no two ones are adjacent, we must place at most one '1' in any of these gaps.
- Since we have ones to place, we need to choose distinct gaps out of the available gaps.
The number of ways to choose gaps from is given by the binomial coefficient:
Comparing this with the given options:
- A: (Incorrect)
- B: (Incorrect)
- C: (Incorrect)
Therefore, the correct option is D (None of the above).
Free practice · Your answers on this page are not saved.
