Computer Science EngineeringHardISRO SC

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

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

Correct answer: D. 6

Complementing a complete DFA keeps its state count; the minimal DFA for containing 01001 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