Question

Which of the following is/are undecidable?

  1. GG is a CFG. Is L(G)=ΦL(G) = \Phi?
  2. GG is a CFG. Is L(G)=Σ∗L(G) = \Sigma^*?
  3. MM is a Turing machine. Is L(M)L(M) regular?
  4. AA is a DFA and NN is an NFA. Is L(A)=L(N)L(A) = L(N)?
Choose one option
Official answer and solution
Official answer
D
From
Official GATE 2013 answer key

Solution

Assess the decidability of each standard language-theoretic decision problem.

Let us examine each statement:

  1. GG is a CFG. Is L(G)=ΦL(G) = \Phi?
    This is the emptiness problem for context-free grammars. We can determine generating non-terminals in polynomial time and check whether the start symbol can derive any string of terminals. Hence, this problem is decidable.

  2. GG is a CFG. Is L(G)=Σ∗L(G) = \Sigma^*?
    This is the universality problem for context-free grammars. It is known to be undecidable (by reduction from the Post Correspondence Problem or valid computation histories of Turing machines).

  3. MM is a Turing machine. Is L(M)L(M) regular?
    By Rice's Theorem, any non-trivial semantic property of the language accepted by a Turing machine is undecidable. Since regularity is non-trivial (some Turing machines accept regular languages while others do not), this problem is undecidable.

  4. AA is a DFA and NN is an NFA. Is L(A)=L(N)L(A) = L(N)?
    We can convert the NFA NN to an equivalent DFA N′N' using the subset construction, and then check whether the symmetric difference (L(A)∩L(N′)‾)∪(L(A)‾∩L(N′))(L(A) \cap \overline{L(N')}) \cup (\overline{L(A)} \cap L(N')) is empty. Since emptiness of regular languages is decidable, this equivalence problem is decidable.

Therefore, problems 2 and 3 are undecidable, which corresponds to option (D).

Final answer

D

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2013 Computer Science and Information Technology (CS)
Question
41 of 65, printed as CS Q.41
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.