GATE Computer ScienceEasyGATE CS (PYQ pattern)

For a language L, the derivative u⁻¹L is { w : uw ∈ L }. Let L be the language of the regular expression (aa + b)*. Which expression denotes a⁻¹L?

  1. A. (aa + b)*a
  2. B. a(aa + b)* + ε
  3. C. a(aa + b)*
  4. D. (a + b)*

Correct answer: C. a(aa + b)*

After the first a, one more a must complete the block aa: the remainder is a(aa + b)*.

More Theory of Computation questions

Exams that ask this topic