Back to the 2024 paper

Module 2: Context-Free Languages (CFL) and PDA

20242m

Which of the following is a PDA?

(i) Finite automaton with a stack
(ii) Turing machine with a stack
(iii) Finite automaton with a queue
(iv) Turing machine with a queue

Worked SolutionAI Assisted

Answer

Correct Option: (i) Finite automaton with a stack

Explanation

PDA definition: P=(Q,Σ,Γ,δ,q0,Z0,F)P = (Q,\Sigma,\Gamma,\delta,q_0,Z_0,F)

  • Essentially a finite automaton (finite control) augmented with a stack (LIFO memory).
  • Stack provides unbounded memory but restricted access (push/pop at top only).
  • Enables recognition of CFLs: e.g., {anbn}\{a^n b^n\} by pushing aa's, popping for bb's.

Options:

  • (ii) TM with stack → equivalent to TM (stack is not needed)
  • (iii) FA with queue → queue automaton = TM-powerful
  • PDA = FA + stack.

Final Answer

PDA = FA + stack → Option (i).

Similar questions

AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.