Questions: Pushdown Automata

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A PDA attempts to recognize {ww^R} — strings of the form 'abba', 'aabbaa', etc. (a word followed by its reverse). Why must this PDA be nondeterministic?

ABecause the PDA needs two stacks to store both halves simultaneously
BBecause the PDA must guess where the midpoint of the string is, and that guess cannot be made deterministically without reading the full string first
CBecause the alphabet is too large for a deterministic PDA to track
DBecause palindrome recognition requires a Turing machine and cannot be done by any PDA
Question 2 Multiple Choice

Nondeterministic pushdown automata recognize exactly which class of languages?

AThe regular languages — the same class as nondeterministic finite automata
BThe decidable languages — all languages for which membership is decidable by a Turing machine
CThe context-free languages — a strictly larger class than the regular languages
DThe context-sensitive languages — one level above context-free in the Chomsky hierarchy
Question 3 True / False

Just as most nondeterministic finite automaton can be converted to an equivalent deterministic finite automaton, nearly every nondeterministic pushdown automaton can be converted to an equivalent deterministic pushdown automaton.

TTrue
FFalse
Question 4 True / False

A PDA can recognize {a^n b^n} (equal numbers of a's followed by b's) by pushing one stack symbol per 'a' read and popping one symbol per 'b' read, accepting when the stack is empty after consuming the full input.

TTrue
FFalse
Question 5 Short Answer

Why can a finite automaton not recognize {a^n b^n}, and how does a pushdown automaton overcome this limitation?

Think about your answer, then reveal below.