Given grammar G: S-> ABA, A->aA|e, B-> bB|e Eliminate e and unit productions. State the number of productions the starting variable holds?
Given grammar G: S-> ABA, A->aA|e, B-> bB|e Eliminate e and unit productions. State the number of productions the starting variable holds? Correct Answer 7
After reduction the grammar looks like: S->ABA| AB| BA| AA| Aa| a| bB| b A->aA| a B->bB| b
মোঃ আরিফুল ইসলাম
Feb 20, 2025