Running a Deterministic Automaton by Hand
A deterministic finite automaton starts in a designated state, reads one symbol at a time, and accepts when the final state is designated accepting.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace a two-state machine
Use states even and odd, start at even, toggle on symbol 1, and stay on symbol 0. Word 101 ends at even because it contains two ones. See finite-state transitions.
Check the empty input
No transition occurs when reading the empty word. Its result is acceptance exactly when the start state accepts. See DFA recognizers for the formal definition.[1]
Follow exactly one transition per consumed symbol
Take a two-state machine whose zero input leaves state unchanged and one input switches state. Starting even, input 1101 produces odd, even, even, odd along its four consumed symbols. Accept if the final state is odd under this language. See a parity automaton.
Prefix ε → even
1 → odd
11 → even
110 → even
1101 → odd, accept
Check acceptance after the whole input
A machine can temporarily enter an accepting state and later leave it. Count exactly one transition per symbol. Test the empty input against the starting state's acceptance.