1,756 views
0 votes
0 votes
Is a*b* + b*a* = ( a + b)*       ______

2 Answers

1 votes
1 votes

a*b*= a,b,ab,aab aabb,aabbbb.....

b*a*= a,b,ab,ba,bba,bbaaa........

So we can genrate only string like a followed b or b followed a.

But we can not genrate syring  like aba,bab,aaba,.....

So its not equal to (a+b)*

0 votes
0 votes
No, both LHS !=RHS becoz in a*b* we have a followed by b i.e epsilon,a,b,ab,aa, bb,aabb,abb,aab,abbb

in b*a* we have b followed a i.e epsilon,b,a,bb,aa,bbaa,baa,bba,bbbaaa etc

(a+b)*= (a*b*)*, (a*+b)*,(a+b*)* any sequence of a and b are acceptable

Related questions

0 votes
0 votes
3 answers
2
nbhatt asked Sep 23, 2022
530 views
is a(ba)*=(ab)*a?
0 votes
0 votes
0 answers
3
nbhatt asked Sep 21, 2022
376 views
Can we simplify a*+a*b(d+ca*b)*ca* ? Where a,b,c,d are regular expression.
0 votes
0 votes
1 answer
4
nbhatt asked Sep 21, 2022
385 views
What will be the regular expression for following fa using recurrence relation method.