506 views

1 Answer

0 votes
0 votes
Formally, we can prove by Induction , but let me give you an intuitive idea.
There are two types of derivations , one which is of the form A$\rightarrow$TD and A$\rightarrow$b.

To generate a string of length we need n-1 derivations of the form A$\rightarrow$TD. And to finally replace the non-terminals , we need n productions of the form A$\rightarrow$b to replace each non-terminal to a terminal.

 Hence, we need n-1+n=2n-1 productions in all exactly , to get a string of length n.

Related questions

0 votes
0 votes
1 answer
1
admin asked May 4, 2019
621 views
Let $G$ be a $CFG$ in Chomsky normal form that contains $b$ variables$.$ Show that if $G$ generates some string with a derivation having at least $2^{b}$ steps$, L(G)$ is...
0 votes
0 votes
1 answer
2
0 votes
0 votes
0 answers
4