|
|
|
Question
24
:
Give a production grammar for the language L = {x/x ? (a,b)*, the number of a's in x is multiple of 3}.
1. {S->bS, S->b,S->aA, S->bA, A->aB, B->bB, B->aS, S->a} 2. {S->aS,S->bA,A->bB,B->bBa,B->bB} 3. {S->aaS,S->bbA,A->bB,B->ba} 4. None of the mentioned
View Answer
Discuss with Members
|
|
Question
26
:
Consider the production of the grammar S->AA A->aa A->bb Describe the language specified by the production grammar.
1. L = {aaaa,aabb,bbaa,bbbb} 2. L = {abab,abaa,aaab,baaa} 3. L = {aaab,baba,bbaa,bbbb} 4. L = {aaaa,abab,bbaa,aaab}
View Answer
Discuss with Members
|
|
|
|
|