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 (a + b)*abb. Which expression denotes a⁻¹L?

  1. A. (a + b)*abb
  2. B. (a + b)*bb
  3. C. (a + b)*abb + bb
  4. D. (a + b)*abb + b

Correct answer: C. (a + b)*abb + bb

Reading a either belongs to the (a + b)* prefix (leaving the whole language) or is the a of the final abb (leaving bb). So a⁻¹L = L + bb.

More Theory of Computation questions

Exams that ask this topic