GATE Computer ScienceVery hardGATE CS (PYQ pattern)

L = { w ∈ {a, b}* : the 5th symbol from the right is a } needs 32 states in a minimal DFA. Its reversal Lᴿ needs how many states in a minimal complete DFA?

  1. A. 7
  2. B. 32
  3. C. 6
  4. D. 16

Correct answer: A. 7

Lᴿ is the set of strings whose 5th symbol from the left is a: 5 counting states and then an accepting sink or a dead state. Reversal can blow a DFA up exponentially or shrink it, as here.

More Theory of Computation questions

Exams that ask this topic