DFA Minimization by Partition Refinement
Split states according to observable future behavior and justify why the stable partition gives the minimal reachable machine.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Record which states can be distinguished now
Start with a complete deterministic automaton and remove unreachable states. Initially partition the rest into accepting and rejecting states. At each refinement split a block when two states have transitions on the same symbol into different current blocks. If the target states differ on a continuation of length \(k\), the two source states differ on that symbol followed by the same continuation.
Stop when every transition respects the blocks
In a stable partition, all states in one block agree on acceptance and lead to the same blocks under every symbol. This makes their future behavior identical by induction. Merge each block into a quotient state. For example, two reachable nonaccepting states that both move to the same accepting sink on either symbol can merge. A rejecting sink cannot merge with them because a one-symbol continuation separates it. Myhill–Nerode explains why any other recognizer needs at least one state for each distinguishable prefix class.[1][2]