Two-way DPDA Acceptance (2DPDA)
Input
A two-way deterministic pushdown automaton $M = (Q, \Sigma, \Gamma, \delta, q_0, Z_0, F)$ and a string $x$.
Problem
Is $x$ accepted by $M$?
Status
$\P$-complete (Cook [1], Galil [2][3], Ladner [4]).
Remarks
See, for example, Hopcroft and Ullman [5] for a definition of 2DPDAs. Cook gives a direct simulation of a polynomial time Turing machine by a logarithmic space auxiliary pushdown automaton [1]. Galil shows the existence of a $\P$-complete language accepted by a 2DPDA, in effect showing that the logarithmic space work tape is not crucial to Cook’s simulation [2][3]. (See also Sudborough [6] for a general reduction of auxiliary PDAs to ordinary PDAs.) Ladner gives a much more direct proof by observing that a suitably encoded version of CVP is solvable by a 2DPDA, basically by doing a depth-first search of the circuit, using the stack for backtracking [4].
Remains in $\P$ when generalized to nondeterministic and/or logarithmic space auxiliary PDAs [1]. When restricted to one-way PDAs, or other polynomial time PDAs, even with a logarithmic space work tape, the problem is in $\NC$; specifically, it is complete for $\mathsf{LOGDCFL}$ in the deterministic case, and for $\mathsf{LOGCFL} = \mathsf{SAC}^1$ in the nondeterministic case.
References
- S. A. Cook (1971). Characterizations of pushdown machines in terms of time-bounded computers.
- Z. Galil (1974). Two way deterministic pushdown automaton languages and some open problems in the theory of computation.
- Z. Galil (1977). Some open problems in the theory of computation as questions about two-way deterministic pushdown automaton languages.
- R. E. Ladner (1975). The circuit value problem is log space complete for P.
- J. E. Hopcroft and J. D. Ullman (1979). Introduction to Automata Theory, Languages, and Computation.
- I. H. Sudborough (1978). On the tape complexity of deterministic context-free languages.
- Greenlaw, R., Hoover, H. J., and Ruzzo, W. L. (1995). Limits to Parallel Computation: P-Completeness Theory. Oxford University Press. Problem A.7.8.