Given a Grammar G: S->aA A->a A->B B->A B->bb Which among the following will be the simplified grammar?

Kim Trang

New member
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
 

Tìm kiếm

Back
Top