GateAI
Turing Machines and Undecidability

GATE CSE 2014 Set 3 · Q35

MCQ2 marksEasy

Time

Which one of the following problems is undecidable?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: A) Deciding if a given context-free grammar is ambiguous.

Turing Machines and Undecidability

Let us analyze the decision problems for Context-Free Grammars (CFGs) / Context-Free Languages (CFLs):

  • (A) Ambiguity of a CFG: Deciding whether an arbitrary CFG is ambiguous is undecidable (proven via reduction from the Post Correspondence Problem, PCP).

  • (B) Membership problem for CFG (w∈L(G)w \in L(G)):Decidable(e.g., using the CYK algorithm in $O(n^3)$ time).

  • (C) Emptiness problem for CFG (L(G)=∅L(G) = \emptyset):Decidable (by finding reachable and generating non-terminals).

  • (D) Finiteness problem for CFG (∣L(G)∣<∞|L(G)| < \infty):Decidable (by checking for cycles involving useful non-terminals in the reduced grammar/derivation graph).

Therefore, the undecidable problem is (A).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Turing Machines and Undecidability previous year question is Q35 of the GATE CSE 2014 Set 3 paper. Find more GATE CSE PYQs on Turing Machines and Undecidability in Theory of Computation, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

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.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Turing Machines and Undecidability in GATE CSE

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 2014 Set 3 has 2.

How GATE tests Turing Machines and Undecidability

More from GATE CSE 2014 Set 3

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2014 Set 3 · Q35 · MCQ

Which one of the following problems is undecidable?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.