799 views

Let $r, s, t$ be regular expressions. Which of the following identities is correct?

1. $(r + s)^* = r^*s^*$
2. $r(s + t) = rs + t$
3. $(r + s)^* = r^* + s^*$
4. $(rs + r)^* r = r (sr + r)^*$
5. $(r^*s)^* = (rs)^*$

edited | 799 views
0
This question was repeated in $\mathbf{2015}$ as well.
+1

1. $(r + s)^* = r^*s^*$                    LHS can generate '$sr$' but RHS not
2. $r(s + t) = rs + t$                 LHS can generate '$rt$' but RHS not
3. $(r + s)^* = r^* + s^*$              LHS can generate '$sr$' but RHS not
4. $(rs + r)^* r = r (sr + r)^*$    They are equivalent
5. $(r^*s)^* = (rs)^*$                      LHS can generate '$rrrs$' but RHS not

So option D is correct answer.
by Boss
edited by
–1

WHY NOT C option .....correct ...explain

+1
i think i have given the reason
'sr' can be generated from LHS but not RHS
+10
Hint for Option D -

$(rs + r)r= (rsr + rr) = r(sr+r)$ (post multiply and then pre common )

can u take it from here ?
0
Hi I have a doubt here.

(r+s)∗= can generate sr

Can you explain how (r∗s∗)* generates sr

In other words how they are equivalent

(r+s)∗=(r∗s∗)*
0

Option D is a right choice.

by Loyal
0
perfect!
0
whats X ...?
0