In Chomsky Normal Form (CNF), all production rules are strictly of the following two forms:
A→BC (where A,B,C∈V)
A→a (where A∈V,a∈Σ)
For any context-free grammar in CNF:
To derive a terminal string w of length n=∣w∣, exactly n−1 rule applications of type A→BC are required to produce a sentential form of n non-terminals.
Exactly n rule applications of type A→a are required to replace the n non-terminals with terminal symbols.
Thus, the total number of derivation steps for any string of length n is:
Total steps=(n−1)+n=2n−1 Here, the given string is w=a30b30c30.
n=∣w∣=30+30+30=90 Number of derivation steps=2(90)−1=180−1=179