GATE Computer ScienceHardGATE CS (PYQ pattern)

Taking Brzozowski quotients: let L = L(r) with r = a*(ba*b)* over {a, b}. A regular expression for the set of strings w such that bw ∈ L is

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

Correct answer: A. a*b(ba*b)*

The first b opens a block b a* b: the rest is a*b and then any further blocks, a*b(ba*b)*; the blocks cannot be interleaved with more a's between them.

More Theory of Computation questions

Exams that ask this topic