• retagged by
2,142 views
0 0 votes
Can I write $a^* + b^* = (a + b)^*$ ????

4 Answers

2 2 votes

NO,

we can write (a+b)*=(a*+b*)*

                               =(a*+b)*

                               =(a+b*)*

                               =(a*b*)*

                               =a*(ba*)* 

                               =b*(ab*) *

 

or

make minimal dfa for both the RE and check LHS != RHS ,infact  language both are different 

 

• edited by
0 0 votes

No ,because both are not same as u can see by the 1st REstring produce like ab,aabb.a,b,aa,bbetc but u can't get string like aba,aaabbabab,ababa etc .

whereas by the 2nt RE u will get all string produce by a and b.

Position:
Show:

Related questions

0 0 votes
1 1 answer
397
397 views
L_Rashmi_Dedeepya asked Nov 14, 2024
397 views
Most languages are case sensitive, so keywords can be written only one way, and the regular expressions describing their lexemes are very simple. However, some languages,...
1 1 vote
0 0 answers
420
420 views
Snehasis_Basu asked Nov 11, 2024
420 views
Here I thought the answer should be A and D but in the test series answer it is written as only D is the answer.My doubt is : A should not be generating 100 as a substrin...