GATE Computer ScienceVery hardGATE CS (PYQ pattern)

Consider these claims about regular expressions over {a, b} (each equation compares the two languages): I. (a*b)* = ε + (a + b)*b II. (aa + b)* = (a + bb)* III. (a + b)*ab(a + b)* = (a + b)*a(a + b)*b(a + b)* IV. a*b* + b*a* = (a + b)* Which of the claims are correct?

  1. A. III only
  2. B. I and III only
  3. C. II and III only
  4. D. I only

Correct answer: B. I and III only

I is true. II is false. III is true. IV is false. Each was checked by comparing both languages on every string up to length 10 and by a structural argument.

More Theory of Computation questions

Exams that ask this topic