608 views

1 Answer

1 votes
1 votes
Regular expression is:

for a string which doest not contain 11 :   (0+10)*(1+e)

for a string which contain one 11:  (0+10)*(1+e)0110(0+10)*(1+e)

 

and for atmost      :::::::     (0+10)*(1+e) + (0+10)*(1+e)0110(0+10)*(1+e)

Related questions

2 votes
2 votes
2 answers
1