in Theory of Computation
15,913 views
3 votes
3 votes
Which of the following regular expression identities are true ?

(A) (r + s)* = r* s*

(B) (r + s)* = r* + s*

(C) (r + s)* = (r*s*)*

(D) r* s* = r* + s*
in Theory of Computation
15.9k views

2 Comments

D should be answer bcz c option 's lhs also generate sr which rhs is incapable to generate
0
0
question is which one is correct
0
0

4 Answers

11 votes
11 votes
Best answer
(r + s)* = (r*s*)*
selected by

2 Comments

need explaination.....
1
1
Try generating strings from both sides

RHS is capable of producing strings like LHS in  option 3 only

in first  rsr is not generated by RHS

In second RHS only produces rrrr.... or ssss..... which is not like LHS

In fourth option RHS only creates rrrr.... or sssss unlike LHS (rrrrr...sssss...)
0
0
3 votes
3 votes
c) (r+s)*=(r*s*)*

1 comment

Can you please explain it?
0
0
0 votes
0 votes
Both b and c

1 comment

not c
0
0
0 votes
0 votes

(r + s)* = (r* + s*)* = (r*s*)*=(r* + s)*=(r+s*)*=a*(ba*)*=b*(ab*)*

Therfore option C will be right option for it.

1 comment

(r+s*)*=a*(ba*)*=b*(ab*)* 

is it right

0
0

Related questions