|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.brics.automaton.ShuffleOperations
public final class ShuffleOperations
Automata operations involving shuffling.
Method Summary | |
---|---|
static Automaton |
shuffle(Automaton a1,
Automaton a2)
Returns an automaton that accepts the shuffle (interleaving) of the languages of the given automata. |
static String |
shuffleSubsetOf(Collection<Automaton> ca,
Automaton a,
Character suspend_shuffle,
Character resume_shuffle)
Returns a string that is an interleaving of strings that are accepted by ca but not by a . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Automaton shuffle(Automaton a1, Automaton a2)
Complexity: quadratic in number of states (if already deterministic).
public static String shuffleSubsetOf(Collection<Automaton> ca, Automaton a, Character suspend_shuffle, Character resume_shuffle)
ca
but not by a
. If no such string
exists, null is returned. As a side-effect, a
is determinized,
if not already deterministic. Only interleavings that respect
the suspend/resume markers (two BMP private code points) are considered if the markers are non-null.
Also, interleavings never split surrogate pairs.
Complexity: proportional to the product of the numbers of states (if a
is already deterministic).
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |