Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Chomsky normal form
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===UNIT: Eliminate unit rules=== A unit rule is a rule of the form :''A'' β ''B'', where ''A'', ''B'' are nonterminal symbols. To remove it, for each rule :''B'' β ''X''<sub>1</sub> ... ''X''<sub>''n''</sub>, where ''X''<sub>1</sub> ... ''X''<sub>''n''</sub> is a string of nonterminals and terminals, add rule :''A'' β ''X''<sub>1</sub> ... ''X''<sub>''n''</sub> unless this is a unit rule which has already been (or is being) removed. The skipping of nonterminal symbol ''B'' in the resulting grammar is possible due to ''B'' being a member of the unit closure of nonterminal symbol ''A''.<ref>{{Cite book |last=Allison |first=Charles D. |title=Foundations of Computing: An Accessible Introduction to Automata and Formal Languages |publisher=Fresh Sources, Inc. |year=2022 |isbn=9780578944173 |pages=176 |language=en}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)