Method Optional
Optional(Automaton)
Returns an automaton that accepts the union of the empty string and the language of the given automaton.
Complexity: linear in number of states.
Declaration
public static Automaton Optional(Automaton a)
Parameters
Type | Name | Description |
---|---|---|
Automaton | a |
Returns
Type | Description |
---|---|
Automaton |