GATE / CS ARCHIVE

GATE CSE 1999 / QUESTION 1.6

Two PDA acceptance conventions

Theory of Computation · Pushdown Automata · Full GATE CSE 1999 paper

GATE 1999, Q1.6 1 mark · MCQ
Report issue

Pushdown Automata

Question 1.6, GATE 1999: Compare languages accepted by final state and by empty stack: equal classes, one proper inclusion, or incomparable?
Tap to enlarge
Your answer
Answer & solution

Answer: A for nondeterministic PDAs (no official key was published)

An empty-stack PDA can be turned into a final-state PDA by adding a protected bottom marker and moving to an accepting state when the original stack empties. Conversely, a final-state PDA can nondeterministically enter a stack-draining phase after reaching an accepting state; acceptance still requires consuming the whole input. These constructions preserve the recognized language and show equal classes, A. The statement is for unrestricted nondeterministic PDAs. Deterministic acceptance conventions have additional restrictions and cannot be substituted without qualification.

Original paper, page 1