Question: Let us have a language L = { anbncn : n > = 0 } over alphabet = { a , b , c }

Let us have a language L={anbncn : n>=0} over alphabet ={a,b,c}, which is a typical context-sensitive language that is not context-free.
1.Create a grammar generating this language, i.e., create a grammar G, such that L(G)=L. This grammar does not have to be context-sensitive.
2.If your grammar is not context sensitive, find all production rules that violate the conditions of context-sensitive grammars.
3. With your grammar, show a sequence of derivations that generates string "aaabbbccc".

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!