0 votes 0 votes If G= ({S} , {a}, {S--->SS} , S), then language L(G) is a)ϕ b)aa(a)* c)(aa)* d)None of these Theory of Computation theory-of-computation finite-automata grammar + – Sambhrant Maurya asked Oct 14, 2018 Sambhrant Maurya 657 views answer comment Share Follow See 1 comment See all 1 1 comment reply Verma Ashish commented Oct 15, 2018 reply Follow Share given grammar can't generate any string. since it never terminate.... 0 votes 0 votes Please log in or register to add a comment.
Best answer 1 votes 1 votes As there is only one production in the given grammar that is S-->SS, therefore grammar does not generate any terminal and eventually does not generate any string, thus answer should be option (a) ϕ. Ollie answered Oct 15, 2018 • edited Oct 21, 2018 by Ollie Ollie comment Share Follow See all 3 Comments See all 3 3 Comments reply mitesh kumar commented Oct 21, 2018 reply Follow Share but if there is S->a also then is option B will be right? 0 votes 0 votes Ollie commented Oct 21, 2018 reply Follow Share but if there is S->a also then is option B will be right? Nope. option B says aa(a)*, but if we have a production S->a, then the smallest string possible will be "a" (using S->a), while using aa(a)* you could not derive "a", so clearly option B will be wrong even if we add the production S->a. On adding S->a production to the given grammar, the language generated will be a, aa, aaa, aaaa....so on, which can be written as a(a)*. 0 votes 0 votes mitesh kumar commented Oct 21, 2018 reply Follow Share Got it 0 votes 0 votes Please log in or register to add a comment.