Question: Please help with b and c. H6.2 (a) Design a context-free grammar for the language L = {w {a,b}* | W contains equally many a's
Please help with b and c.

H6.2 (a) Design a context-free grammar for the language L = {w {a,b}* | W contains equally many a's and b's}. Draw the corresponding parse trees for sentences aabb, abab and baab. (b) Is the grammar you designed in part (a) ambiguous or unambiguous? If it is ambiguous, then try to design also an unambiguous grammar for the language. (c) Prove (precisely!) that the language in part (a) is not regular
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
