Questions: Pushdown Automata (PDA)

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A classmate says: 'Nondeterministic PDAs are just convenient shorthand — every NPDA has an equivalent DPDA, just like every NFA has an equivalent DFA.' What is wrong with this claim?

ANothing — DPDAs and NPDAs do accept exactly the same class of languages
BIt confuses PDAs with finite automata: unlike NFA/DFA, adding nondeterminism to PDAs gives strictly more expressive power
CDeterministic PDAs are actually more powerful than nondeterministic PDAs for most practical languages
DThe claim is wrong only for infinite languages; for finite languages DPDAs and NPDAs are equivalent
Question 2 Multiple Choice

Why can a nondeterministic PDA recognize {wwᴿ : w ∈ {a,b}*} but no deterministic PDA can?

ADeterministic PDAs cannot use ε-transitions, which are required to process the reversed half
BRecognizing palindromes requires guessing the midpoint, but a DPDA must commit to one computation path without a midpoint marker
CDeterministic PDAs have a smaller stack alphabet and cannot store enough symbols for palindrome checking
D{wwᴿ} is not a context-free language and so cannot be recognized by any PDA
Question 3 True / False

Most context-free language can be recognized by a deterministic pushdown automaton.

TTrue
FFalse
Question 4 True / False

A PDA can recognize {aⁿbⁿ : n ≥ 0} by pushing a marker onto the stack for each 'a' read, then popping one marker for each 'b' read, accepting when the stack is empty at the end of input.

TTrue
FFalse
Question 5 Short Answer

Why does the stack give a PDA the ability to recognize {aⁿbⁿ} when finite automata cannot, and what property of the stack is essential?

Think about your answer, then reveal below.