Complexity of Universality and Related Problems for Partially Ordered NFAs
Preprint
Abstract
Partially ordered nondeterminsitic finite automata (poNFAs) are NFAs whose transition relation induces a partial order on states, that is, for which cycles occur only in the form of self-loops on a single state. A poNFA is universal if it accepts all words over its input alphabet. Deciding universality is PSPACE-complete for poNFAs, and we show that this remains true even when restricting to a fixed alphabet. This is nontrivial since standard encodings of alphabet symbols in, e.g., binary can turn self-loops into longer cycles. A lower coNP-complete complexity bound can be obtained if we require that all self-loops in the poNFA are deterministic, in the sense that the symbol read in the loop cannot occur in any other transition from that state. We find that such restricted poNFAs (rpoNFAs) characterise the class of $\mathcal{R}$-trivial languages, and we establish the complexity of deciding if the language of an NFA is $\mathcal{R}$-trivial. Nevertheless, the limitation to fixed alphabets turns out to be essential even in the restricted case: deciding universality of rpoNFAs with unbounded alphabets is PSPACE-complete. Based on a close relation between universality and the problems of inclusion and equivalence, we also obtain the complexity results for these two problems. Finaly, we show that the languages of rpoNFAs are definable by deterministic (one-unambiguous) regular expressions, which makes them interesting in schema languages for XML data.Keywords
All Related Versions
This publication has 16 references indexed in Scilit:
- Languages of Dot-Depth 3/2Theory of Computing Systems, 2007
- Permutation rewriting and algorithmic verificationInformation and Computation, 2007
- One-Unambiguous Regular LanguagesInformation and Computation, 1998
- Finite semigroup varieties of the form V ∗ DJournal of Pure and Applied Algebra, 1985
- Classification of finite monoids: the language approachTheoretical Computer Science, 1981
- Languages of R-trivial monoidsJournal of Computer and System Sciences, 1980
- The dot-depth hierarchy of star-free languages is infiniteJournal of Computer and System Sciences, 1978
- Sur Le Produit De Concatenation Non AmbiguSemigroup Forum, 1976
- The inclusion problem for simple languagesTheoretical Computer Science, 1976
- Dot-depth of star-free eventsJournal of Computer and System Sciences, 1971