Chomsky's normal form (CNF) is a method to simplify context-free grammar.
Every grammar in CNF is context-free, and every
Grammar is in CNF if all the productions follow either of the following set of rules:
The following steps are used to convert context-free grammar into Chomsky's normal form.
Let's consider the following CFG:
Remove null productions iteratively. Replace the values of the variables that produce null in any other production.
The following grammar is in CNF.
Note: A single CFG can produce different Chomsky's normal forms.
Free Resources