Given a Grammar G: S->aA A->a A->B B->A B->bb Which among the following will be the simplified grammar?
Given a Grammar G: S->aA A->a A->B B->A B->bb Which among the following will be the simplified grammar? Correct Answer S->aA|aB, A->a, B->bb
Step 1: Substitute A->B Step 2: Remove B->B Step 3: Substitute B->A Step 4: Remove Repeated productions