Skip to main content
QUICK REVIEW

[Paper Review] Finding the Minimal DFA of Very Large Finite State Automata with an Application to Token Passing Networks

Vlad Slavici, Daniel Kunkle|arXiv (Cornell University)|Mar 29, 2011
semigroups and automata theoryComputer Science37 references8 citations
TL;DR

This paper presents a scalable, parallel disk-based algorithm for computing the minimal deterministic finite automaton (DFA) from a large non-deterministic finite automaton (NFA), enabling the processing of NFAs that generate intermediate DFAs with up to 1.9 billion states. The method uses a cluster of commodity computers to perform subset construction and forward refinement minimization, reducing a 1.9-billion-state DFA to a minimal 774,172-state DFA, and applies the technique to validate a conjecture on stack-sortable permutations in token passing networks.

ABSTRACT

Finite state automata (FSA) are ubiquitous in computer science. Two of the most important algorithms for FSA processing are the conversion of a non-deterministic finite automaton (NFA) to a deterministic finite automaton (DFA), and then the production of the unique minimal DFA for the original NFA. We exhibit a parallel disk-based algorithm that uses a cluster of 29 commodity computers to produce an intermediate DFA with almost two billion states and then continues by producing the corresponding unique minimal DFA with less than 800,000 states. The largest previous such computation in the literature was carried out on a 512-processor CM-5 supercomputer in 1996. That computation produced an intermediate DFA with 525,000 states and an unreported number of states for the corresponding minimal DFA. The work is used to provide strong experimental evidence satisfying a conjecture on a series of token passing networks. The conjecture concerns stack sortable permutations for a finite stack and a 3-buffer. The origins of this problem lie in the work on restricted permutations begun by Knuth and Tarjan in the late 1960s. The parallel disk-based computation is also compared with both a single-threaded and multi-threaded RAM-based implementation using a 16-core 128 GB large shared memory computer.

Motivation & Objective

  • To overcome the memory bottleneck in computing minimal DFAs for very large finite state automata by using disk-based parallel computation.
  • To scale the subset construction and DFA minimization processes beyond the limits of main memory on commodity hardware.
  • To apply the method to a challenging problem in theoretical computer science: analyzing stack-sortable permutations in token passing networks with finite buffers.
  • To provide experimental evidence supporting a conjecture on the structure of stack-sortable permutations for a 3-buffer and finite stack.
  • To compare the performance of disk-based parallel, multi-threaded RAM-based, and single-threaded approaches on large-scale automata.

Proposed method

  • A parallel disk-based implementation of the subset construction algorithm is used to determinize large NFAs, storing intermediate DFA states as subsets on disk to avoid main memory limits.
  • The forward refinement algorithm is adapted for disk-based parallel processing to minimize the resulting large DFAs efficiently.
  • The algorithm uses a breadth-first search strategy with explicit duplicate detection via on-disk storage of subset representations, each requiring ~80 bytes for up to 20 NFA states.
  • A cluster of 29 commodity computers is used to distribute the computation, with data partitioned across nodes and I/O managed via a shared storage area network (SAN).
  • A multi-threaded implementation on a 16-core, 128 GB shared-memory machine is developed for comparison, using thread-level parallelism within main memory.
  • The approach is evaluated on a family of token passing networks modeled as NFAs, with stack depth increasing from 9 to 12, corresponding to growing NFA and intermediate DFA sizes.

Experimental results

Research questions

  • RQ1Can a disk-based parallel algorithm scale the subset construction and minimization of DFAs beyond the memory limits of traditional RAM-based systems?
  • RQ2How does the performance of a disk-based parallel approach compare to a multi-threaded RAM-based implementation on large-scale automata?
  • RQ3What is the minimal DFA size for a family of token passing networks with increasing stack depth, and does it support a conjecture on stack-sortable permutations?
  • RQ4Does the forward refinement algorithm remain efficient and scalable when applied to DFAs with over a billion states?
  • RQ5Can experimental evidence from large-scale automata computation support a general conjecture about the structure of stack-sortable permutations in finite-buffer networks?

Key findings

  • The disk-based parallel algorithm successfully constructed an intermediate DFA of 1,899,715,733 states from an NFA with 5,035,742 states at stack depth 12, using 1,136 GB of peak disk space over 1 day and 12 hours.
  • The resulting minimal DFA was reduced to 774,172 states, representing a reduction of over 2,400-fold, achieved in 1 day and 8 hours using disk-based forward refinement.
  • The subset construction phase scaled poorly with size due to network I/O bottlenecks on a 100 Mb/s Fast Ethernet network, despite efficient disk usage.
  • The multi-threaded RAM-based implementation scaled almost linearly with thread count up to 8 cores, but showed sub-linear scaling from 8 to 16 threads due to lock contention during minimization.
  • The largest problem instance (stack depth 12) could not be processed on the 16-core, 128 GB shared-memory machine due to memory exhaustion, confirming the need for disk-based scaling.
  • The experimental results provide strong evidence supporting a conjecture on the structure of stack-sortable permutations in a 3-buffer and finite stack model, suggesting a general pattern across the series of token passing networks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.