0 votes 0 votes Are these two grammars equal? 1->------------------- S->X|epsilon X->BBX|epsilon B->a|b 2->------------ S->AAS|epsilon A->a|b Theory of Computation theory-of-computation context-free-grammar + – Dknights asked Nov 10, 2022 • retagged Nov 10, 2022 by makhdoom ghaya Dknights 358 views answer comment Share Follow See 1 comment See all 1 1 comment reply Chandrabhan Vishwa 1 commented Nov 11, 2022 reply Follow Share yes both are equal 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes They are equivalent , both generating the same language. Not sure about equal because $2$) has right recursion on starting state S but in $1$) no recursion on initial state (Assuming S as initial state in both the grammars) Pranavpurkar answered Nov 10, 2022 Pranavpurkar comment Share Follow See all 0 reply Please log in or register to add a comment.