K Kim Trang New member Sep 17, 2021 #1 Given a Grammar G: S->aA A->a A->B B->A B->bb Which among the following will be the simplified grammar? A. S->aA|aB, A->a, B->bb B. S->aA|aB, A->B, B->bb C. S->aA|aB, A->a, B->A D. None of the emntioned
Given a Grammar G: S->aA A->a A->B B->A B->bb Which among the following will be the simplified grammar? A. S->aA|aB, A->a, B->bb B. S->aA|aB, A->B, B->bb C. S->aA|aB, A->a, B->A D. None of the emntioned
V Việt Quân New member Sep 17, 2021 #2 Answer: A Explanation: Step 1: Substitute A->B Step 2: Remove B->B Step 3: Substitute B->A Step 4: Remove Repeated productions Upvote 0 Downvote
Answer: A Explanation: Step 1: Substitute A->B Step 2: Remove B->B Step 3: Substitute B->A Step 4: Remove Repeated productions