Computer Science EngineeringHardISRO SC

The minimal complete DFA over {0,1} for strings ending with 001 has how many states? (The empty string is not accepted.)

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

Correct answer: D. 4

Track the longest suffix of the input that is a prefix of 001: states for lengths 0..3, giving 4 states.

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

Exams that ask this topic