|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.metasyntactic.math.automata.ChomskyNormalForm
| Constructor Summary | |
ChomskyNormalForm()
Creates new ChomskyNormalForm |
|
| Method Summary | |
void |
toChomskyNormalForm()
When working with context-free grammars, it is often convenient to have them in simplified form. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ChomskyNormalForm()
| Method Detail |
public void toChomskyNormalForm()
A context-free grammar is in Chomsky normal form if every rule is of the form:
where a is any terminal and A, B, and C are any variables - except that B and C may not be the start variable. In addition we permit the rule S → ε, where S is the start variable.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||