Redirected
recategorized
1,370 views
0 votes
0 votes

Let $G= (V,T,S,P)$ be a context-free grammer such that every one of its productions is of the form $A\rightarrow v$, with $\mid  v \mid=K> 1$. The derivation tree for any $W \in L(G)$ has a height $h$ such that 

  1. $\log_{K} \mid W \mid \leq h\leq \log_{K} \left (\frac{ \mid W \mid-1}{K-1} \right ) \\$
  2. $\log_{K} \mid W \mid \leq h \leq \log_{K} \left ( K \mid W \mid \right) \\$
  3. $\log_{K} \mid W \mid \leq h \leq K \log_{K} \mid W \mid \\$
  4. $\log_{K}|W \mid \leq h \leq \left (\frac{ \mid W \mid – 1}{K-1} \right)$
recategorized

2 Answers

0 votes
0 votes

It is a direct question , from peter linz

answer should be logkw <=h<= (|w|-1)/(k-1)

so D is correct answer here

Answer:

Related questions

1 votes
1 votes
7 answers
2
go_editor asked Mar 24, 2020
1,530 views
Consider the languages $L_{1}= \phi$ and $L_{2}=\{1\}$. Which one of the following represents $L_{1}^{\ast}\cup L_{2}^{\ast} L_{1}^{\ast}$?$\{\in \}$$\{\in,1\}$$\phi$$1^{...