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)* II. (a + b)*b(a + b)* = a*b(a + b)* III. (a*b)*a* = (a + b)* IV. (a + b)*a(a + b) = (a + b)*(aa + ab) Which of the claims are correct?

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

Correct answer: D. I, II, III and IV

I is true. II is true. III is true. IV is true. 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