GATE Computer ScienceVery hardGATE 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 + ba)*b. Which expression denotes b⁻¹L?

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

Correct answer: D. a(a + ba)*b + ε

b is itself in L, so ε is in the derivative; otherwise bw = ba·(…)b forces w = a(a + ba)*b.

More Theory of Computation questions

Exams that ask this topic