in Unknown Category
5,907 views
1 vote
1 vote
regular expression for " set of all strings over {a,b} in which there are at least two occurrences of b between any two occurrences of a ".
in Unknown Category
5.9k views

1 Answer

3 votes
3 votes
Here is my try:

$b^{*} + b^{*}(abb^{+})^{*}ab^{*}$

4 Comments

yes...b,bb,bb....can be generated...clear ur doubt

assume R.E ====>   A+B  means we can either take A or B at a time but not both...for generating any string..

and     A*  +  B*/////means  we can either take A any no.of time  or B any no.of time but not both...for generating any string..

and   ( A  +  B)*///brackets are important..means  we can either take A any no.of time  or B any no.of time or BOTH...for generating any string..

1
1

if we write (a,b)^+ or (aUb)^+ or (a+b)^+ does they all mean same ?

0
0
yes..
0
0

Related questions

3 votes
3 votes
2 answers
1
Sunil8860 asked in Theory of Computation Sep 4, 2017
792 views
Sunil8860 asked in Theory of Computation Sep 4, 2017
792 views