|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectNMinimizer
Naive minimizer in O(n^3).
| Constructor Summary | |
NMinimizer()
|
|
| Method Summary | |
boolean |
equiv(DFA a,
int p,
int q,
int[] c)
Tests whether two states are equivalent. |
DFA |
minimal(DFA a,
int[] c)
Returns the automaton a renumbered according to c |
DFA |
minimize(DFA a)
Returns the minimal automaton of a |
int[] |
partition(DFA a)
Computes the Nerode partition. |
int[] |
refine(DFA a,
int[] c)
Refines the partition c. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NMinimizer()
| Method Detail |
public DFA minimize(DFA a)
minimize in interface Minimizer
public DFA minimal(DFA a,
int[] c)
a - the original DFAc - a partition of the state set
public int[] partition(DFA a)
a - a DFA
public int[] refine(DFA a,
int[] c)
a - a complete DFAc - a partition of the state set
public boolean equiv(DFA a,
int p,
int q,
int[] c)
a - a complete DFAp - a stateq - a state
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||