English

Second-Order Finite Automata

Formal Languages and Automata Theory 2021-08-31 v1 Computational Complexity

Abstract

Traditionally, finite automata theory has been used as a framework for the representation of possibly infinite sets of strings. In this work, we introduce the notion of second-order finite automata, a formalism that combines finite automata with ordered decision diagrams, with the aim of representing possibly infinite {\em sets of sets} of strings. Our main result states that second-order finite automata can be canonized with respect to the second-order languages they represent. Using this canonization result, we show that sets of sets of strings represented by second-order finite automata are closed under the usual Boolean operations, such as union, intersection, difference and even under a suitable notion of complementation. Additionally, emptiness of intersection and inclusion are decidable. We provide two algorithmic applications for second-order automata. First, we show that several width/size minimization problems for deterministic and nondeterministic ODDs are solvable in fixed-parameter tractable time when parameterized by the width of the input ODD. In particular, our results imply FPT algorithms for corresponding width/size minimization problems for ordered binary decision diagrams (OBDDs) with a fixed variable ordering. Previously, only algorithms that take exponential time in the size of the input OBDD were known for width minimization, even for OBDDs of constant width. Second, we show that for each kk and ww one can count the number of distinct functions computable by ODDs of width at most ww and length kk in time h(Σ,w)kO(1)h(|\Sigma|,w)\cdot k^{O(1)}, for a suitable h:N×NNh:\mathbb{N}\times \mathbb{N}\rightarrow \mathbb{N}. This improves exponentially on the time necessary to explicitly enumerate all such functions, which is exponential in both the width parameter ww and in the length kk of the ODDs.

Keywords

Cite

@article{arxiv.2108.12751,
  title  = {Second-Order Finite Automata},
  author = {Alexsander Andrade de Melo and Mateus de Oliveira Oliveira},
  journal= {arXiv preprint arXiv:2108.12751},
  year   = {2021}
}

Comments

41 pages. This is an extended version of a paper with the same title that appeared at CSR 2020

R2 v1 2026-06-24T05:29:55.814Z