Which of the following is/are undecidable? 1. G is a CFG. Is L(G) = ? 2. G is a CFG. Is L(G) = *? 3. M is a Turing machine. Is L(M) regular? 4. A is a DFA and N is an NFA. Is L(A) = L(N)?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2013 · Q41
Time
Select one answerSingle correct
Solution
Official answer: D) 2 and 3 only
Turing Machines and UndecidabilityLet us evaluate the decidability of each problem:
Emptiness problem for CFGs (): Decidable. We can test if any terminal string can be derived from the start symbol using the generating/reachable variables algorithm.
**Universality problem for CFGs (): Undecidable**. Testing if a context-free grammar generates all strings over its alphabet is a well-known undecidable problem (can be reduced from the Post Correspondence Problem or TM halting problem).
Regularity of a Turing Machine language ( is regular): Undecidable. By Rice's Theorem, any non-trivial semantic property of the language accepted by a Turing machine is undecidable.
Equivalence of a DFA and an NFA (): Decidable. We can convert the NFA to an equivalent DFA , construct the symmetric difference DFA , and test if .
Therefore, only statements 2 and 3 are undecidable, which corresponds to option (D).
Try the question first, then check your work.
Examiner trap
Recall standard decision properties for Context-Free Languages, Regular Languages, and Rice's Theorem for recursively enumerable languages.
This Turing Machines and Undecidability previous year question is Q41 of the GATE CSE 2013 paper. Find more GATE CSE PYQs on Turing Machines and Undecidability in Theory of Computation, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Turing Machines and Undecidability PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Turing Machines and Undecidability has 30 GATE CSE PYQs across 20 papers from 2012 to 2026. 13 of them are 2-mark MCQs like this one, and GATE CSE 2013 has 2.
How GATE tests Turing Machines and UndecidabilityIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.