← Quiz: CFG and PDA: all 10 questions
Quiz: CFG and PDA · Question 8 of 10
In CNF, how many steps does a derivation of a string of length 5 take?
In CNF, how many steps does a derivation of a string of length 5 take?
- A.5
- B.8
- C.9
- D.10
Answer & explanation
Correct answer: 9
A CNF derivation of a length-n string takes 2n − 1 steps: n − 1 uses of A → BC and n uses of A → a.
Can you get the rest right without peeking?
Take the timed Quiz: CFG and PDA quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →