Computer Science EngineeringHardISRO SC

A grammar in Chomsky normal form derives a string of length 9. The number of derivation steps (rule applications) in any derivation is

  1. A. 9
  2. B. 17
  3. C. 18
  4. D. 16

Correct answer: B. 17

A CNF parse tree has 8 binary rules and 9 terminal rules: 2n-1 = 17.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic