We study one-way nondeterministic pushdown automata ([Formula: see text]), optionally with reversal-bounded counters. Finite-turn pushdown automata are pushdown automata with a bound on the number of switches between pushing and popping. We give new characterizations for finite-turn pushdown automata, and for finite-turn pushdown automata augmented with reversal-bounded counters. The first is in terms of multi-tape nondeterministic finite automata ([Formula: see text]), and the second is in terms of multi-tape [Formula: see text] with reversal-bounded counters. We then use the characterizations to determine the complexity of the languages defined by these automata. In particular, we show that languages accepted by finite-turn [Formula: see text] augmented with reversal-bounded counters are in [Formula: see text]. For the non-finite-turn case, the languages are in [Formula: see text] and in [Formula: see text]. We also look at the space complexity of languages accepted by two-way machines. In particular, we show that every language accepted by a two-way [Formula: see text] with reversal-bounded counters that makes a polynomial (resp., exponential) number of input head reversals is in [Formula: see text] (resp., [Formula: see text]). This remains true if the pushdown can flip its contents a bounded number of times.
Read full abstract