UGC NET Paper 2 (Computer Science)Hard

The minimum number of states of a DFA over {a, b} accepting strings with the number of a's divisible by 3 and the number of b's divisible by 2 is:

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

Correct answer: D. 6

The product of a mod-3 and a mod-2 counter gives 3 x 2 = 6 reachable and distinguishable states.

More UGC NET Computer Science and Applications questions

Exams that ask this topic