0 votes 0 votes Consider this grammar: S → SS | a How many derivation trees are possible for a4? (a) 3 (b) 4 (c) 5 (d) 6 how to generalize for any values if a^5 or a^7 is there any general formulae? Theory of Computation context-free-grammar sample practice theory-of-computation + – Pranav Madhani asked Nov 17, 2017 • edited Mar 14, 2019 by Naveen Kumar 3 Pranav Madhani 853 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 1 votes 1 votes 1st possibility : Second Possibility : Third possibility : Second and third possibilty are possible for RHS side also so total = 1+ (2+2) = 5 Anu007 answered Nov 17, 2017 • selected Nov 22, 2017 by Prashant. Anu007 comment Share Follow See all 2 Comments See all 2 2 Comments reply Pranav Madhani commented Nov 17, 2017 reply Follow Share thanks but is there any generalized formulae? 0 votes 0 votes Anu007 commented Nov 17, 2017 reply Follow Share No there is no formula. 0 votes 0 votes Please log in or register to add a comment.