Unary Pushdown Automata and Straight-Line Programs

We consider decision problems for deterministic pushdown automata over the 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 Π2 P-hard, using a new class of integer expressions. Our techniques have applications beyond udpda. We show that our results imply Π2 P-completeness for a natural fragment of Presburger arithmetic and coNP lower bounds for compressed matching problems with one-character wildcards.

[1]  M. Fischer,et al.  STRING-MATCHING AND OTHER PRODUCTS , 1974 .

[2]  Neil D. Jones,et al.  Complete problems for deterministic polynomial time , 1974, STOC '74.

[3]  Artur Jez Compressed Membership for NFA (DFA) with Compressed Labels is in NP (P) , 2012, STACS.

[4]  J. Gathen,et al.  A bound on solutions of linear integer equalities and inequalities , 1978 .

[5]  Wojciech Plandowski,et al.  On the Complexity of Pattern Matching for Highly Compressed Two-Dimensional Texts , 2002, J. Comput. Syst. Sci..

[6]  Erich Grädel Subclasses of Presburger Arithmetic and the Polynomial-Time Hierarchy , 1988, Theor. Comput. Sci..

[7]  Heribert Vollmer,et al.  Nondeterministic NC1 Computation , 1998, J. Comput. Syst. Sci..

[8]  Manfred Schmidt-Schauß Matching of Compressed Patterns with Character-Variables , 2012, RTA.

[9]  Pierre McKenzie,et al.  The Complexity of Membership Problems for Circuits Over Sets of Natural Numbers , 2007, computational complexity.

[10]  Wojciech Plandowski,et al.  Complexity of Language Recognition Problems for Compressed Words , 1999, Jewels are Forever.

[11]  Géraud Sénizergues,et al.  L(A)=L(B)? A simplified decidability proof , 2002, Theor. Comput. Sci..

[12]  Seymour Ginsburg,et al.  Two Families of Languages Related to ALGOL , 1962, JACM.

[13]  Leslie G. Valiant,et al.  Decision procedures for families of deterministic pushdown automata , 1973 .

[14]  Jean Berstel,et al.  Partial Words and a Theorem of Fine and Wilf , 1999, Theor. Comput. Sci..

[15]  Erich Grädel,et al.  Dominoes and the Complexity of Subclasses of Logical Theories , 1989, Ann. Pure Appl. Log..

[16]  Markus Lohrey,et al.  Querying and Embedding Compressed Texts , 2006, MFCS.

[17]  Markus Lohrey,et al.  Word Problems and Membership Problems on Compressed Words , 2006, SIAM J. Comput..

[18]  Anthony Widjaja Lin,et al.  Parikh Images of Grammars: Complexity and Applications , 2010, 2010 25th Annual IEEE Symposium on Logic in Computer Science.

[19]  Artur Jez The Complexity of Compressed Membership Problems for Finite Automata , 2013, Theory of Computing Systems.

[20]  Christian Glaßer,et al.  Equivalence Problems for Circuits over Sets of Natural Numbers , 2007, Theory of Computing Systems.

[21]  Heribert Vollmer,et al.  Nondeterministic NC 1 Computation. , 1996 .

[22]  Thomas Schwentick,et al.  On the Complexity of Equational Horn Clauses , 2005, CADE.

[23]  Stanislav Böhm,et al.  Equivalence of deterministic one-counter automata is NL-complete , 2013, STOC '13.

[24]  Leslie M. Goldschlager,et al.  ɛ-productions in context-free grammars , 1981, Acta Informatica.

[25]  John E. Savage,et al.  Models of computation - exploring the power of computing , 1998 .

[26]  Markus Lohrey Leaf languages and string compression , 2011, Inf. Comput..

[27]  Petr Jancar,et al.  Decidability of DPDA Language Equivalence via First-Order Grammars , 2012, 2012 27th Annual IEEE Symposium on Logic in Computer Science.

[28]  Alberto Bertoni,et al.  Literal Shuffle of Compressed Words , 2008, IFIP TCS.

[29]  Uwe Schöning Complexity of Presburger Arithmetic with Fixed Quantifier Dimension , 1997, Theory Comput. Syst..

[30]  Thiet-Dung Huynh,et al.  Deciding the inequivalence of context-free grammars with 1-letter terminal alphabet is S2p-complete , 1982, 23rd Annual Symposium on Foundations of Computer Science (sfcs 1982).

[31]  U. Schöning Complexity of presburger arithmetic with fixed quantifier dimension , 1997, Theory of Computing Systems.

[32]  Giovanni Pighizzini,et al.  Deterministic Pushdown Automata and Unary Languages , 2008, Int. J. Found. Comput. Sci..

[33]  Dung T. Huynh,et al.  Commutative Grammars: The Complexity of Uniform Word Problems , 1984, Inf. Control..

[34]  Dung T. Huynh Deciding the Inequivalence of Context-Free Grammars with 1-Letter Terminal Alphabet is Sigma-p-2-Complete , 1984, Theor. Comput. Sci..

[35]  Colin Stirling,et al.  Deciding DPDA Equivalence Is Primitive Recursive , 2002, ICALP.

[36]  Albert R. Meyer,et al.  Word problems requiring exponential time(Preliminary Report) , 1973, STOC.

[37]  T. G. Szymanski,et al.  On the Equivalence, Containment, and Covering Problems for the Regular and Context-Free Languages , 1976, J. Comput. Syst. Sci..

[38]  Markus Lohrey,et al.  Algorithmics on SLP-compressed strings: A survey , 2012, Groups Complex. Cryptol..