Question
Which of the following is/are undecidable?
- is a CFG. Is ?
- is a CFG. Is ?
- is a Turing machine. Is regular?
- is a DFA and is an NFA. Is ?
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:
-
is a CFG. Is ?
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. -
is a CFG. Is ?
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). -
is a Turing machine. Is 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. -
is a DFA and is an NFA. Is ?
We can convert the NFA to an equivalent DFA using the subset construction, and then check whether the symmetric difference 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).
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.