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

  1. A. I, III and IV only
  2. B. I and III only
  3. C. I and IV only
  4. D. I, II and III 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