edited by
1,134 views
0 votes
0 votes

Given answer is option c. Can anyone tell me how? 

edited by

2 Answers

Best answer
3 votes
3 votes

C is the right answer.

 The  language L=(a+$\epsilon$)(bb*a)* can not produce b, bb

option a)  It says language L must contain all strings that does not have aa as substring so string b should be in L.

option b) It says no two consecutive a's again failed due to above string.

option c) This is is correct because L contains all strings that does not end with b and does not contain two or more consecutive a's.

selected by
0 votes
0 votes

You can try generating the strings first and see the pattern and eliminate the options.

The regular expression has the language L = { ε , a,ba,bba, aba, abba...}

You can see that we can't get the string "abab" using this, this alone eliminates options A and B.

And thus by generating more strings you can see that the correct option is indeed C. 

Related questions

2 votes
2 votes
2 answers
1
charul asked Oct 7, 2017
875 views
find regular expression over {a,b} corresponding to "set of strings containing at most 2a's."a) b*+ b*ab* + b*ab*ab*b) b*(a+ε)b*(a+ε)c) none
2 votes
2 votes
2 answers
2
charul asked Oct 7, 2017
2,124 views
find the length of string of minimum length in {0,1}* not in the language corresponding to the given RE(0*+1*)*a) 0b) 1c) more than 1d) can't be determined
0 votes
0 votes
1 answer
4
Samridh28 asked May 9, 2023
219 views
can you help me in question my answer is b it's correct or not, or where I'm wron Caption