1.

State true or false:can no longer be 2h-1.(a) can no longer be 2h-1.(b) true(c) falseI have been asked this question during an online exam.My question is taken from Inferences to Trees, Trees to Derivations topic in portion Context Free Grammars and Languages of Automata Theory

Answer»

Correct choice is (a) can no longer be 2h-1.

For explanation: It is the parse tree theorem which states:

GIVEN: Suppose we have a parse tree for a string w, according to a CNF GRAMMAR, G=(V, T, P, S). LET H be the height of the parse tree. Now, Implication: |w|<=2h-1.



Discussion

No Comment Found

Related InterviewSolutions