Let G = (V, T, S, P) be a context-free grammar such that every one of its productions is of the form A → v, with |v| = K > 1. The derivation tree for any W ∈ L(G) has a height h such that
(A) logK|W| ≤ h ≤ logK((|W|-1)/k-1)
(B) logK|W| ≤ h ≤ logK(K|W|)
(C) logK|W| ≤ h ≤ K logK|W|
(D) logK|W| ≤ h ≤ ((|W|-1)/k-1)
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.