Deprecated: Implicit conversion from float-string "1550283890.697" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1550283890.697" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1550283890.697" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1550283890.697" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1550283890.697" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1550289885.088" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1550289885.088" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1550289885.088" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1550289885.088" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1550289885.088" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1550290173.294" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1550290173.294" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1550290173.294" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1550290173.294" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1550290173.294" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1550291474.091" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1550291474.091" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1550291474.091" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1550291474.091" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1550291474.091" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1550289910.092" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1550289910.092" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1550289910.092" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1550289910.092" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1550289910.092" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1550290403.061" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1550290403.061" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1550290403.061" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1550290403.061" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1550290403.061" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
MadeEasy WorkBook: Theory of Computation - Regular Expression / GATE Overflow for GATE CSE
edited by
1,242 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


Deprecated: Implicit conversion from float-string "1683614325.551" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1683614325.551" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1683614325.551" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1683614325.551" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
869
views
2 answers
2 votes
charul asked Oct 7, 2017
869 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.1k
views
2 answers
2 votes
charul asked Oct 7, 2017
2,118 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
229
views
1 answers
0 votes
Samridh28 asked May 9, 2023
229 views
can you help me in question my answer is b it's correct or not, or where I'm wron Caption
Total PHP MySQL Other RAM
Time (ms) % Time (ms) % File count Time (ms) % Query count Time (ms) % Amount %
Setup 6.4 20% 4.2 13% 72 2.5 7% 2 0.0 0% 569k 50%
Control 2.1 6% 1.3 3% 4 1.0 3% 4 0.0 0% 220k 19%
View 2.9 9% 2.9 9% 12 0.0 0% 0 0.0 0% 67k 5%
Theme 12.0 37% 6.0 18% 16 1.4 4% 2 4.7 14% 273k 24%
Stats 8.3 26% 0.1 0% 0 8.3 26% 1 0.0 0% 0k 0%
Total 31.7 100% 14.4 45% 104 13.1 41% 9 4.2 13% 1132k 100%