GATE Computer ScienceVery hardGATE CS · ISRO
How many binary strings of length 12 contain neither the substring 11 nor the substring 000?
- A. 55
- B. 64
- C. 41
- D. 49
Correct answer: D. 49
Enumerating all 4096 strings (or using the block structure 1/0/00 separated appropriately) gives 49.
More Discrete Mathematics questions
- How many elements of the symmetric group S₈ have order exactly 12?
- What is the maximum possible order of an element of the symmetric group S₁₁?
- How many solutions does x² ≡ 1 (mod 120) have among the residues 0 ≤ x < 120?
- How many subgroups (including the trivial group and the whole group) does Z₆ × Z₆ have?
- A Boolean function f(x, y, z) is monotone if raising any input from 0 to 1 never lowers the output, and self-dual if f(x̄, ȳ, z̄) is the…
- How many pairwise non-isomorphic (unlabelled) trees exist on exactly 8 vertices?