Questions: Chomsky Normal Form (CNF)

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

What is the primary reason for converting a context-free grammar (CFG) to Chomsky Normal Form?

ACNF grammars generate strictly larger languages than the original grammars, making them more expressive
BCNF simplifies the grammar to minimize the number of production rules, reducing storage
CCNF's uniform binary structure enables the CYK parsing algorithm to run in O(n³) time
DCNF eliminates ambiguity — converting to CNF ensures every string has a unique parse tree
Question 2 Multiple Choice

A grammar G generates language L. After converting G to CNF form G', which statement is correct?

AG' generates a subset of L, because CNF's restrictions eliminate some derivations
BG' generates a superset of L, because the binarization step adds new variables that can derive more strings
CG' generates exactly L (or L minus the empty string if ε ∈ L), because CNF conversion preserves the language
DG' is guaranteed to be unambiguous, while G may have been ambiguous
Question 3 True / False

Converting a CFG to Chomsky Normal Form changes the language the grammar generates, because removing ε-productions and unit productions eliminates some derivations.

TTrue
FFalse
Question 4 True / False

In a parse tree generated by a grammar in Chomsky Normal Form, every internal node has exactly two children.

TTrue
FFalse
Question 5 Short Answer

Why must ε-productions be eliminated before unit productions when converting a CFG to CNF, rather than in any order?

Think about your answer, then reveal below.