GATE Computer ScienceHardGATE CS (PYQ pattern)

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

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

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

A string of L beginning with b must start with the factor b (ab starts with a, and the final a is not b). Removing that factor leaves any string of (ab + b)*a, so b⁻¹L = L itself. ε ∉ b⁻¹L since b ∉ L, and (b + ab)* lacks the final a.

More Theory of Computation questions

Exams that ask this topic