Computer Science EngineeringVery hard

The minimal DFA over {0, 1} for strings having an even number of 0s and an even number of 1s has how many states?

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

Correct answer: B. 4

The parity pair (zeros mod 2, ones mod 2) gives 4 distinguishable states.

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

Exams that ask this topic