The GATE Grind

GATE 2017 CS (CS2) – Question 51

Theory of Computation · Turing Machines and Undecidability · 2 marks · Multiple choice

L(R) is a regular-expression language, L(G) a context-free grammar language, L(M) a Turing-machine language. Which are undecidable? I: Given R,w, is w∈L(R)? II: Given G, is L(G)=∅? III: Given G, is L(G)=Σ*? IV: Given M,w, is w∈L(M)?

  1. I and IV only
  2. II and III only
  3. II, III and IV only
  4. III and IV only

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (D) III and IV only

Explanation

I is decidable by automaton simulation. II is decidable by marking productive grammar symbols and checking the start symbol. III is the undecidable CFG universality problem. IV is the undecidable Turing-machine acceptance problem. Thus precisely III and IV, D.

More Turing Machines and Undecidability questions

All Turing Machines and Undecidability questions →