Method Repeat
Repeat(Automaton)
Returns an automaton that accepts the Kleene star (zero or more concatenated repetitions) of the language of the given automaton. Never modifies the input automaton language.
Complexity: linear in number of states.
Declaration
public static Automaton Repeat(Automaton a)
Parameters
Type | Name | Description |
---|---|---|
Automaton | a |
Returns
Type | Description |
---|---|
Automaton |
Repeat(Automaton, Int32)
Returns an automaton that accepts min
or more concatenated
repetitions of the language of the given automaton.
Complexity: linear in number of states and in min
.
Declaration
public static Automaton Repeat(Automaton a, int min)
Parameters
Type | Name | Description |
---|---|---|
Automaton | a | |
System.Int32 | min |
Returns
Type | Description |
---|---|
Automaton |
Repeat(Automaton, Int32, Int32)
Returns an automaton that accepts between min
and
max
(including both) concatenated repetitions of the language
of the given automaton.
Complexity: linear in number of states and in min
and
max
.
Declaration
public static Automaton Repeat(Automaton a, int min, int max)
Parameters
Type | Name | Description |
---|---|---|
Automaton | a | |
System.Int32 | min | |
System.Int32 | max |
Returns
Type | Description |
---|---|
Automaton |