GATE / CS ARCHIVE

GATE CSE 1992 / QUESTION 2(xvii)

Malformed regular-expression identities

Theory of Computation · Regular Expressions & Languages · Full GATE CSE 1992 paper

GATE 1992, Q2(xvii) MSQ
Report issue

Regular Expressions & Languages

Question 2(xvii), GATE 1992: The copies print A r(*)=r* and B (r*s*)=(r+s)*, plus C (r+s)*=r*+s* and D r*s*=r*+s*. Which identities are justified?
Question 2(xvii), GATE 1992: The copies print A r(*)=r* and B (r*s*)=(r+s)*, plus C (r+s)*=r*+s* and D r*s*=r*+s*. Which identities are justified?
Tap to enlarge
Select all that apply
Answer & solution

Answer: Literal A malformed, B/C/D false; intended A/B would need missing outer stars (no official key was published)

A standard true identity is (r*)*=r*, but the source’s r(*) is not that well-formed expression. Another true identity is (r*s*)*=(r+s)*, which requires an outer star absent from printed B. For literal B, take r=a, s=b: ba belongs to (a+b)* but not a*b*. For C, ab belongs to the left but neither a* nor b*. For D, ab belongs to a*b* but not a*+b*. Thus the often-intended answers A, B are conditional repairs, not identities established by the literal printed notation. The missing-star issue is retained as a source discrepancy.

Original paper, page 4