GATE Computer ScienceVery hardGATE CSE

Let L = { w ∈ {a, b}* : the third symbol from the right end of w is a }; its minimal complete DFA has 8 states. How many states does the minimal complete DFA for the reversal Lᴿ have?

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

Correct answer: B. 5

Lᴿ = strings whose third symbol from the left is a: states for 0, 1, 2 symbols read, an accepting sink (third = a) and a dead sink (third = b): 5 states.

More Theory of Computation questions

Exams that ask this topic