Skip to content
Official PYQ · 2016

GATE CS 2016 Set 1 Q17 — Undecidability

Explain with AI

Which of the following decision problems are undecidable?

  1. Given NFAs N1N_1 and N2N_2 , is L(N1)∩L(N2)=ΦL(N_1) \cap L(N_2) = \Phi
  2. Given a CFG G=(N,Σ,P,S)G = (N,\Sigma,P,S) and a string  x∈Σ∗x \in \Sigma^{*}, does  x∈L(G)x \in L(G)} ?
  3. Given CFGs  G1G_1 and G2G_2, is L(G1)=L(G2)L (G_1) = L(G_2)?
  4. Given a TM MM, is L(M)=ΦL(M)=\Phi ?
Choose one option
View worked solution

Answer: C

We analyze the decidability of each decision problem:

  1. Given NFAs N1N_1 and N2N_2, is L(N1)∩L(N2)=∅L(N_1) \cap L(N_2) = \emptyset?
    Decidable. Regular languages are closed under intersection, and the resulting intersection language can be represented by a product DFA/NFA. The emptiness of a regular language is decidable (by checking reachability of any final state from the start state in the transition graph).
  2. Given a CFG GG and a string x∈Σ∗x \in \Sigma^*, does x∈L(G)x \in L(G)?
    Decidable. This is the membership problem for Context-Free Grammars, which can be solved in polynomial time using parsing algorithms like the CYK algorithm.
  3. Given CFGs G1G_1 and G2G_2, is L(G1)=L(G2)L(G_1) = L(G_2)?
    Undecidable. The equivalence problem for context-free languages is a well-known undecidable problem.
  4. Given a TM MM, is L(M)=∅L(M) = \emptyset?
    Undecidable. The emptiness problem for Turing Machines is undecidable, which can be shown via reduction from the Halting Problem or by Rice's Theorem (as emptiness is a non-trivial semantic property of recursively enumerable languages).

Thus, problems III and IV are undecidable, making C the correct option.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Undecidability questions