edited by
786 views
1 votes
1 votes
( a*+b*+a*b*+b*a* )    can we derive string abab and abba  from this regular expression. what is the relationship between  ( a*+b*+a*b*+b*a* ) and (a+b)*
edited by

1 Answer

2 votes
2 votes

( a*+b*+a*b*+b*a* ) cannot generate ((ab)+(ba)+)* or ((ba)+(ab)+)*  means here we can generate either string from (ab)* or (ba)* but cannot take both

But (a+b)* can generate all strings. So, we can define it as ∑*

Related questions

1 votes
1 votes
2 answers
2
iarnav asked Sep 1, 2018
26,444 views
How to construct a finite automata equivalent to the regular expression: ( 0 + 1 )* ( 00 + 11 ) ( 0 + 1 )*
2 votes
2 votes
2 answers
3