recategorized by
1,271 views
1 votes
1 votes

For $\Sigma =\{a,b\}$ the regular expression $r=(aa)^{*}(bb)^{*}b$ denotes

  1. Set of strings with $2\,{a}'s$ and $2\,{b}'s$
  2. Set of strings with $2\,{a}'s$ $2\,{b}'s$ followed by $b$
  3. Set of strings with $2\,{a}'s$ followed by ${b}'s$ which is a multiple of $3$
  4. Set of strings with even number of ${a}'s$ followed by odd number of ${b}'s$
recategorized by

1 Answer

Best answer
1 votes
1 votes

Since Kleene star (*) is used,  the string b should be accepted by  r=(aa)∗(bb)∗b

Voila!!! Options A, B and C are eliminated in one shot!!

answer is D

selected by
Answer:

Related questions

5 votes
5 votes
2 answers
1
gatecse asked Dec 17, 2017
1,216 views
Which of the following are context-free?$A=\{a^n b^n\, a^mb^m\mid m,n\geq0\}$$B=\{a^m b^n\, a^mb^n\mid m,n\geq0\}$$C=\{a^mb^n\mid m\neq 2n,\,m,n\geq0\}$A and B only A and...
1 votes
1 votes
1 answer
2
gatecse asked Dec 17, 2017
1,041 views
Let $L=\{a^p\mid p \text{ is a prime}\}.$ Then which of the following is trueIt is not accepted by a Turing MachineIt is regular but not context-freeIt is context-free b...
4 votes
4 votes
1 answer
3
3 votes
3 votes
2 answers
4
gatecse asked Dec 17, 2017
2,029 views
Identify the language generated by the following grammar$S\rightarrow AB\\ A\rightarrow aAb\mid \varepsilon\\ B\rightarrow bB\mid b$$\{a^m b^n\mid n\geq m,m>0\}$ $\{a^m b...