|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectNbisMinimizer
This class implements a naive version of the Moore minimization
algorithm in O(n^3).
| Field Summary | |
static boolean |
verbose
|
| Constructor Summary | |
NbisMinimizer()
|
|
| Method Summary | |
boolean |
equiv(DFA a,
int p,
int q,
int[] c)
Tests whether two states p,q
are equivalent in the sense that
p=q mod c and p.a=q.a mod c
for every letter a . |
boolean |
equiv(IDFA a,
int p,
int q,
int[] c)
|
DFA |
minimize(DFA a)
Returns the minimal automaton of a. |
DFT |
minimize(DFT a)
Returns the minimal DFT of a. |
IDFA |
minimize(IDFA a)
|
Partition |
partition(DFA a,
Partition p)
Computes the Nerode partition from the initial partition p. |
int[] |
partition(IDFA a,
int[] p)
|
Partition |
partition(IDFA a,
Partition p)
|
Partition |
refine(DFA a,
Partition part)
Refines the partition c. |
int[] |
refine(IDFA a,
int[] c)
|
Partition |
refine(IDFA a,
Partition c)
|
| 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 NbisMinimizer()
| Method Detail |
public DFA minimize(DFA a)
throws java.lang.Exception
a.
minimize in interface Minimizerjava.lang.Exception
public DFT minimize(DFT a)
throws java.lang.Exception
a.
minimize in interface Minimizerjava.lang.Exception
public IDFA minimize(IDFA a)
throws java.lang.Exception
minimize in interface Minimizerjava.lang.Exception
public Partition partition(DFA a,
Partition p)
p.
a - a DFAp - the initial partition
public Partition refine(DFA a,
Partition part)
a - a complete DFApart - a partition of the state set
public boolean equiv(DFA a,
int p,
int q,
int[] c)
p,q
are equivalent in the sense that
p=q mod c and p.a=q.a mod c
for every letter a .
a - a complete DFAp - a stateq - a state
public Partition partition(IDFA a,
Partition p)
public int[] partition(IDFA a,
int[] p)
public int[] refine(IDFA a,
int[] c)
public Partition refine(IDFA a,
Partition c)
public boolean equiv(IDFA a,
int p,
int q,
int[] c)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||