- GATE CS
- 2026–27 pattern practice
- Theory of Computation
- Context-free grammars
- Medium
A grammar is in Chomsky Normal Form. How many production applications does a derivation of a string of length use?
Context-Free Languages
Pick an option to check your answer.
Answer: C. Solution
In CNF every rule is or . Growing from one variable to variables takes applications of , and turning the variables into terminals takes applications of . The total is .
Why not the others
- counts only the terminal rules.
- adds one step too many.
- counts only the binary rules.