|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectHopcroftMinimizer
A class implementing Hopcroft's minimization algorithm to minimize a DFA.
The time complexity is O(n log(n)).
| Field Summary | |
static boolean |
verbose
A boolean flag allowing to set a verbose mode. |
| Constructor Summary | |
HopcroftMinimizer()
|
|
| Method Summary | |
static void |
main(java.lang.String[] args)
|
DFA |
minimize(DFA a)
Returns the minimal DFA equivalent to a computed by Hopcroft's
algorithm. |
DFT |
minimize(DFT a)
Returns the minimal DFT equivalent to a normalized DFT a computed by Hopcroft's
algorithm. |
IDFA |
minimize(IDFA a)
|
Partition |
stabilize(DFA a,
Partition partition)
This method computes the partition refining partition which
is compatible whith the DFA a. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean verbose
| Constructor Detail |
public HopcroftMinimizer()
| Method Detail |
public DFA minimize(DFA a)
throws java.lang.Exception
a computed by Hopcroft's
algorithm.
minimize in interface Minimizerjava.lang.Exception
public DFT minimize(DFT a)
throws java.lang.Exception
a computed by Hopcroft's
algorithm. The same as the above except for the initial partition which
takes into account the output labels.
minimize in interface Minimizerjava.lang.Exception
public IDFA minimize(IDFA a)
throws java.lang.Exception
minimize in interface Minimizerjava.lang.Exception
public Partition stabilize(DFA a,
Partition partition)
partition which
is compatible whith the DFA a.
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||