English

Efficient Minimization of DFAs with Partial Transition Functions

Information Theory 2008-02-21 v1 Data Structures and Algorithms math.IT

Abstract

Let PT-DFA mean a deterministic finite automaton whose transition relation is a partial function. We present an algorithm for minimizing a PT-DFA in O(mlgn)O(m \lg n) time and O(m+n+α)O(m+n+\alpha) memory, where nn is the number of states, mm is the number of defined transitions, and α\alpha is the size of the alphabet. Time consumption does not depend on α\alpha, because the α\alpha term arises from an array that is accessed at random and never initialized. It is not needed, if transitions are in a suitable order in the input. The algorithm uses two instances of an array-based data structure for maintaining a refinable partition. Its operations are all amortized constant time. One instance represents the classical blocks and the other a partition of transitions. Our measurements demonstrate the speed advantage of our algorithm on PT-DFAs over an O(αnlgn)O(\alpha n \lg n) time, O(αn)O(\alpha n) memory algorithm.

Keywords

Cite

@article{arxiv.0802.2826,
  title  = {Efficient Minimization of DFAs with Partial Transition Functions},
  author = {Antti Valmari and Petri Lehtinen},
  journal= {arXiv preprint arXiv:0802.2826},
  year   = {2008}
}
R2 v1 2026-06-21T10:14:09.037Z