Regular Expressions & Languages


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.