1

Give a production grammar for the language L = {x/x ∈ (a,b)*, the number of a’s in x is multiple of 3}.

Correct Answer: {S->bS,S->b,S->aA,S->bA,A->aB,B->bB,B->aS,S->a}

Make the most of this question

This page focuses on one Theory of Computation question from Engineering. After checking the answer, return to the topic list to practice more or run a timed set.

Theory of Computation MCQ: Give a production grammar for the language L = {x/x ∈ (a,b)*, the number of a’s in x is multiple of 3}. | Extra Education