Computer Science EngineeringHardISRO SC

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

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

Correct answer: B. 5

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

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

Exams that ask this topic