GATE / CS ARCHIVE

GATE CSE 2025 SET 2 / QUESTION 24

GATE CSE 2025 Set 2 Q24

Theory of Computation · Pushdown Automata · Full GATE CSE 2025 Set 2 paper

GATE 2025 Set 2, Q24 1 mark · MCQ
Report issue

Pushdown Automata

Question 24, GATE 2025: Which family is guaranteed to be accepted by deterministic pushdown automata, meaning that every language in the listed family has some DPDA?
Options: A. every regular language; B. every context-free language; C. every language accepted by an NPDA; D. every decidable language.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

A DPDA can simulate a DFA: copy the DFA's finite control and transitions, and leave the stack unused except for its bottom marker. Therefore every regular language has a deterministic pushdown recognizer, establishing A.

Nondeterministic PDAs recognize exactly the context-free languages, while deterministic PDAs recognize only the deterministic context-free languages, a proper subclass. Thus B and C make the same overly broad guarantee. For example, the unrestricted palindrome language over {a,b} requires guessing the midpoint in the usual PDA construction and is not deterministic context-free; a visible midpoint marker would change the problem.

D is even broader. A decidable language such as {an bn cn:n≥0} can be decided by a Turing machine but is not context-free, so no PDA, deterministic or nondeterministic, accepts it. These statements concern existence of a suitable machine for each language, not one fixed machine that accepts every language at once. Answer: A.

Original paper, page 20 · Answer key