Skip to content
Official PYQ · 1999

GATE CS 1999 Q1.6 — Context-free Grammars and Push-down Automata

Explain with AI

Let L1L_1 be the set of all languages accepted by a PDA by final state and L2L_2 the set of all languages accepted by empty stack. Which of the following is true?

Choose one option
View worked solution

Answer: A

The question asks about the relationship between the class of languages accepted by Pushdown Automata (PDAs) using two different acceptance criteria:

  • L1L_1: The set of all languages accepted by a PDA by final state. This is precisely the class of Context-Free Languages (CFLs).
  • L2L_2: The set of all languages accepted by a PDA by empty stack. This is also precisely the class of Context-Free Languages (CFLs).

For any context-free language LL, we can construct a PDA that accepts LL by final state, and we can also construct a PDA that accepts LL by empty stack. Thus, the expressive power of both acceptance mechanisms is identical.

Therefore, the set of languages defined by both classes is the same:

L1=L2L_1 = L_2

Hence, the correct option is A.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Context-free Grammars and Push-down Automata questions