A Dead State for Unsupported Prefixes
A complete deterministic automaton defines a transition for every state and alphabet symbol. A dead state can preserve rejection when no future extension can repair a prefix.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace a simple language
For the language containing only ab, reading b first can enter a rejecting dead state. Every following symbol still rejects. See DFA transitions.
Check complementing a machine
Swapping accepting and rejecting states gives a complement under a complete deterministic machine and unchanged alphabet. Complements and the universe explain that scope.[1]
Make every state and alphabet pair defined
A machine for exactly ab can pass from start on a to a partial state, then on b to acceptance. A wrong symbol can go to a dead state, with every outgoing transition staying dead. Extra input after acceptance also goes dead. See deterministic automaton traces.
ab → accept
a → incomplete, reject at end
abb → accept-state after ab, then dead on extra b
ba → dead from first symbol
Keep completion distinct from changing the accepted language
Adding an explicit rejecting sink can fill undefined transitions under the usual missing-means-reject convention. It also simplifies complementing a complete DFA. Test all input symbols at the sink.