adplus-dvertising
frame-decoration

Question

Consider the production of the grammar:

S->AA A->aa A->bb

Describe the language specified by the production grammar.

a.

L = {aaaa,aabb,bbaa,bbbb}

b.

L = {abab,abaa,aaab,baaa}

c.

L = {aaab,baba,bbaa,bbbb}

d.

L = {aaaa,abab,bbaa,aaab}

Answer: (a).L = {aaaa,aabb,bbaa,bbbb}

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Consider the production of the grammar: S->AA A->aa A->bb Describe the language specified by the production grammar.