GATE Computer ScienceVery hardGATE CS (PYQ pattern)

Over {0, 1} (MSB first, ε counted as 0), L = { w : w is divisible by 5 and w contains 11 as a substring }. How many states does the minimal complete DFA for L have?

  1. A. 8
  2. B. 15
  3. C. 20
  4. D. 30

Correct answer: B. 15

The product of the mod-5 tracker (5 states) with the 3-state 'contains 11' tracker has 15 pairs, all reachable and pairwise distinguishable.

More Theory of Computation questions

Exams that ask this topic