Professional Documents
Culture Documents
Chomsky Normal Form
Chomsky Normal Form
BSCS 2-4
S
Theorem
(Chomsky Normal Form, or CNF)
Any context-free language without Any language generated by a CFG
empty () is generated by a grammar in which is called a CFL (Context-Free
is in the form A BC or A a. Language)
or
or
For every CFG, there is an equivalent Two grammars are equivalent if and only if
Chomsky Normal Form they produce or generate the same language.
Algorithm for
Conversion of CFG to CNF
Step 1 Check if the start symbol appears on the RHS
of the production. If so, make a new start
symbol
A BC
Aa
Examples