2026/05/19 by Dmitry Chistikov, Neha Rino · 1 voice
Computer Science · #cs.FL #cs.LO
paper · pdf · doi:10.48550/arxiv.2605.20421
We observe that the classical Cartesian product construction for the intersection of (languages of) nondeterministic finite automata (NFA) is non-optimal in the worst case, if the automata have many transitions. For a fixed alphabet, the product of two NFA may have Θ(m2) transitions if these NFA have at most n states and m transitions each. We describe alternative constructions with O(m n) transitions: or O(m nk-1) for the intersection of k NFA (for fixed k ≥ 2 and alphabet Σ). This gives a faster algorithm for deciding NFA intersection emptiness. The new algorithm is optimal, unless there exists a breakthrough combinatorial algorithm for detecting (k+1)-cliques in undirected graphs. This also leads to a more efficient certification scheme for NFA intersection emptiness.