A finite-state automaton recognizes a formal language by updating one of finitely many states as it reads each input symbol.
A finite directed automaton whose edge labels are regular expressions rather than individual letters. A path accepts concatenations of words in its successive labels, with choices over all accepting paths combined by union.
To remove an internal state , replace each surviving label by . The added term accounts for entering , traversing its loop any number of times, and leaving it. Fresh initial and final states allow all old states to be eliminated, producing a regular expression for the same language.
A deterministic finite automaton has finitely many states and one transition for each state-symbol pair.
For a transition function , define
The accepted language is .
A state is accessible when some input word takes the initial state to it. Removing inaccessible states preserves the accepted language.
Two states are indistinguishable when every continuation is accepted from both or rejected from both. Distinguishable states admit at least one suffix with different acceptance outcomes.
Indistinguishability is a right-invariant equivalence relation. The quotient has states , transition , initial state , and accepting classes represented by accepting states. It accepts the original language and has no two distinct indistinguishable states.
A deterministic automaton is irreducible when every state is accessible and every pair of distinct states is distinguishable.
An irreducible deterministic automaton has the fewest states among deterministic automata for its language and is unique up to isomorphism. Its states are the Myhill--Nerode classes.
In a minimal deterministic finite automaton accepting a finite language, any state lying on a nonempty directed cycle is the unique rejecting sink state. It cannot reach an accept state, since traversing the cycle arbitrarily many times would produce infinitely many accepted words. Every state reachable from it also rejects every continuation, so minimality forces all such states to be the same state.
For a positive integer , binary strings can be tested for divisibility by with residue states and transition
The initial and accepting residue is zero. For , all seven states are reachable and pairwise distinguishable, so this automaton is minimal.
An accessible automaton over one letter consists of a directed tail entering one directed cycle. Its minimal quotient is obtained by merging positions having the same future binary acceptance sequence.
To recognize prescribed parities of several symbol counts, use one state for each tuple of parities. Reading a tracked symbol toggles its coordinate and leaves all other coordinates unchanged. For two tracked symbols this gives four states indexed by .
To recognize words having at most consecutive copies of a symbol, use states recording the current run length and one rejecting sink. Another symbol resets the run length to zero, while the st consecutive copy enters the sink.
A nondeterministic finite automaton assigns a set of possible successor states to each state-symbol pair and accepts when at least one run ends in a final state.
An epsilon-NFA is a nondeterministic finite automaton that may traverse transitions labelled without consuming an input symbol.
The epsilon closure of a state set consists of every state reachable from using zero or more epsilon transitions.
The subset construction converts an epsilon-NFA into a deterministic finite automaton. Its states are subsets of NFA states, its initial state is the epsilon closure of the NFA initial state, and every symbol transition is followed by another epsilon closure.
Without epsilon transitions, define
A word is accepted when the set reached from the initial state meets the final set.
For , a witnessing sequence from to satisfies . Induction on word length shows that exactly when such a sequence runs from to .
The powerset construction turns an NFA with state set into a DFA with state set , transition
and accepting subsets that meet the NFA final set.
In the convention used here, a Brzozowski NFA has one final state, every state can reach it, and each word labels a path to it from exactly one starting state.
For distinct accessible subset states, choose a state in their symmetric difference. A word taking it to the unique final state accepts from one subset; uniqueness of the starting state prevents acceptance from the other. Thus the accessible part of the subset automaton is irreducible.

Articles by others on the same topic (0)

There are currently no matching articles.