Computer Science EngineeringHardISRO SC

Over {a,b}, a language contains the strings in which the number of a's is divisible by 4 and the number of b's is divisible by 5. The minimal DFA has how many states?

  1. A. 20
  2. B. 9
  3. C. 21
  4. D. 19

Correct answer: A. 20

Track (#a mod 4, #b mod 5): all 20 pairs are reachable and pairwise distinguishable.

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

Exams that ask this topic