adplus-dvertising
frame-decoration

Question

Give a production grammar that specified language L = {ai b2i >= 1}

a.

{S->aSbb,S->abb}

b.

{S->aSb, S->b}

c.

{S->aA,S->b,A->b}

d.

None of the mentioned

Posted under Compiler Design

Answer: (a).{S->aSbb,S->abb}

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Give a production grammar that specified language L = {ai b2i >= 1}