Start learning →

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)._
Practise this question with Quill — GATE CSE →

Keep practising Theory of Computation

Browse all Theory of Computation questions for GATE CSE, or explore more Computer Science topics.

Start a Theory of Computation lesson →
Related questions