GATE Computer ScienceHardGATE CS (PYQ pattern)

Let L = (a + b)*abb. The right quotient L / b = { w : wb ∈ L } has a minimal complete DFA with how many states?

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

Correct answer: B. 3

wb ∈ (a+b)*abb iff w ends in ab, so L / b = (a + b)*ab, which needs the three states 'no progress', 'a', 'ab'.

More Theory of Computation questions

Exams that ask this topic