Computer Science EngineeringVery hardISRO SC

For strings over {0,1} that do NOT contain 01101 as a substring, the minimal complete DFA (including any dead state) has how many states?

  1. A. 7
  2. B. 6
  3. C. 5
  4. D. 8

Correct answer: B. 6

Complementing a complete DFA keeps its state count; the minimal DFA for containing 01101 has 6 states (prefix-match lengths 0..5, last absorbing), so 6 states.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic