1.

If |w|>=2^h, then its parse tree’s height is at least _____(a) h(b) h+1(c) h-1(d) 2^hI have been asked this question by my school teacher while I was bunking the class.Origin of the question is Inferences to Trees, Trees to Derivations topic in section Context Free Grammars and Languages of Automata Theory

Answer»

Right choice is (b) H+1

The explanation is: It is the basic IMPLICATION of Parse tree THEOREM (assuming CNF). If the height of the parse tree is h, then |w| <=2^h-1.



Discussion

No Comment Found

Related InterviewSolutions