Chomsky normal form
Definition
Let be a context-free grammar. The grammar is in Chomsky normal form if every rule in has one of the following forms:
- , where and ;
- , where and ;
- , where is the empty string.
Remarks
Example: take and the rules , , , , . Each rule has two nonterminals other than on the right, or one terminal, so all clauses hold. The nonterminal generates , so generates , and generates . Non-example: the rule fails clauses 1 and 2, since its right side mixes terminals and nonterminals and has length . Every context-free language is generated by a grammar in Chomsky normal form, which can be computed from any context-free grammar for it. In such a grammar, a derivation of a word of length has exactly steps.
Reading path
To understand this page from the ground up, read these 3 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Context-free grammar concept
- Context-free language concept
- Chomsky normal form definition
Further reading
About this page
| Tag | X30EV3D5GT |
|---|---|
| URI | m2://X30EV3D5GT |
| Kind | definition |
| Writing | W0 stub |
| MSC | 68Q42, 68Q45 |
| Defines | Chomsky normal form |
| Uses | Context-free grammar, Context-free language |
| Changed | 3 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.