Practice free →
HomeGATE CSEcomputerscienceTheory of Computation › Context-free languages are RECOGNISED by which t…

Context-free languages are RECOGNISED by which type of machine?

ADeterministic Finite Automata
BPushdown Automata (PDA) with stack memory
CLinear Bounded Automata
DTuring Machines only
Answer & Solution
Correct answer: B. Pushdown Automata (PDA) with stack memory
1. A PUSHDOWN AUTOMATON (PDA) is an NFA augmented with a STACK. 2. The stack lets the machine remember unbounded context (e.g. count matching parentheses). 3. CFL = NPDA: a language is context-free iff it is recognised by some non-deterministic pushdown automaton. 4. Hierarchy: - Regular ⊊ Context-Free ⊊ Context-Sensitive ⊊ Recursively Enumerable - DFA recognises Regular; PDA recognises CFL; LBA recognises CSL; TM recognises RE. 5. Option A is for regular languages only. Option C is for context-sensitive (stronger). Option D is too broad — Turing machines recognise CFLs too, but the SMALLEST class that EXACTLY recognises CFLs is PDAs. _Source: Jeff Erickson, "Models of Computation", §5.4 (CFG and PDAs)._
Solve this in the app — GATE CSE practice & 24k+ MCQs →
Related questions