1 votes 1 votes Show that the following grammar is ambiguous. $S\rightarrow AB|aaB,$ $A\rightarrow a|Aa,$ $B\rightarrow b.$ Theory of Computation peter-linz peter-linz-edition4 theory-of-computation grammar ambiguous + – Naveen Kumar 3 asked Apr 14, 2019 Naveen Kumar 3 216 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes S→ aaB → aab S→ AB →AaB →aaB→aab hence it is ambigious you can draw the tree like the steps above and you will see that both derivations are different JAINchiNMay answered Oct 11, 2020 JAINchiNMay comment Share Follow See all 0 reply Please log in or register to add a comment.