21,758 research outputs found

    Unary Pushdown Automata and Straight-Line Programs

    Full text link
    We consider decision problems for deterministic pushdown automata over a unary alphabet (udpda, for short). Udpda are a simple computation model that accept exactly the unary regular languages, but can be exponentially more succinct than finite-state automata. We complete the complexity landscape for udpda by showing that emptiness (and thus universality) is P-hard, equivalence and compressed membership problems are P-complete, and inclusion is coNP-complete. Our upper bounds are based on a translation theorem between udpda and straight-line programs over the binary alphabet (SLPs). We show that the characteristic sequence of any udpda can be represented as a pair of SLPs---one for the prefix, one for the lasso---that have size linear in the size of the udpda and can be computed in polynomial time. Hence, decision problems on udpda are reduced to decision problems on SLPs. Conversely, any SLP can be converted in logarithmic space into a udpda, and this forms the basis for our lower bound proofs. We show coNP-hardness of the ordered matching problem for SLPs, from which we derive coNP-hardness for inclusion. In addition, we complete the complexity landscape for unary nondeterministic pushdown automata by showing that the universality problem is Π2P\Pi_2 \mathrm P-hard, using a new class of integer expressions. Our techniques have applications beyond udpda. We show that our results imply Π2P\Pi_2 \mathrm P-completeness for a natural fragment of Presburger arithmetic and coNP lower bounds for compressed matching problems with one-character wildcards

    The Identity Problem for Matrix Semigroups in SL2(Z) is NP-complete

    Get PDF
    In this paper, we show that the problem of determining if the identity matrix belongs to a finitely generated semigroup of 2×22\times 2 matrices from the modular group PSL2(Z)\text{PSL}_2(\mathbb Z) and thus the Special Linear group SL2(Z)\text{SL}_2(\mathbb Z) is solvable in NP\mathbf{NP}. From this fact, we can immediately derive that the fundamental problem of whether a given finite set of matrices from SL2(Z)\text{SL}_2(\mathbb Z) or PSL2(Z)\text{PSL}_2(\mathbb Z) generates a group or free semigroup is also decidable in NP\mathbf{NP}. The previous algorithm for these problems, shown in 2005 by Choffrut and Karhum\"aki, was in \EXPSPACE mainly due to the translation of matrices into exponentially long words over a binary alphabet {s,r}\{s,r\} and further constructions with a large nondeterministic finite state automaton that is built on these words. Our algorithm is based on various new techniques that allow us to operate with compressed word representations of matrices without explicit expansions. When combined with the known NP\mathbf{NP}-hard lower bound, this proves that the membership problem for the identity problem, the group problem and the freeness problem in SL2(Z)\text{SL}_2(\mathbb Z) are NP\mathbf{NP}-complete

    Compressed Membership for NFA (DFA) with Compressed Labels is in NP (P)

    Get PDF
    In this paper, a compressed membership problem for finite automata, both deterministic and non-deterministic, with compressed transition labels is studied. The compression is represented by straight-line programs (SLPs), i.e. context-free grammars generating exactly one string. A novel technique of dealing with SLPs is introduced: the SLPs are recompressed, so that substrings of the input text are encoded in SLPs labelling the transitions of the NFA (DFA) in the same way, as in the SLP representing the input text. To this end, the SLPs are locally decompressed and then recompressed in a uniform way. Furthermore, such recompression induces only small changes in the automaton, in particular, the size of the automaton remains polynomial. Using this technique it is shown that the compressed membership for NFA with compressed labels is in NP, thus confirming the conjecture of Plandowski and Rytter and extending the partial result of Lohrey and Mathissen; as it is already known, that this problem is NP-hard, we settle its exact computational complexity. Moreover, the same technique applied to the compressed membership for DFA with compressed labels yields that this problem is in P; for this problem, only trivial upper-bound PSPACE was known
    • …
    corecore