in Theory of Computation edited by
2,629 views
21 votes
21 votes

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)^*$
in Theory of Computation edited by
2.6k views

2 Comments

This question was repeated in $\mathbf{2015}$ as well.
0
0
1
1

3 Answers

24 votes
24 votes
Best answer
  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.
edited by

4 Comments

Hint for Option D -

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

can u take it from here ?
14
14
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
0
Hi..Please ignore..I got the answer.
0
0
6 votes
6 votes

Option D is a right choice.

4 Comments

perfect!
0
0
whats X ...?
0
0

@Adarsh Pandey

He took (s+epsilon) as X.. Which is just a variable..

0
0
How does the given identity at the end hold?

It should be (pq)*p=p*(qp).
1
1
1 vote
1 vote
Answer:

Related questions