Question
Which of the following is/are undecidable?
Official answer and solution
- Official answer
- A, B and C
- From
- Official GATE 2022 answer key
Solution
Apply Rice's theorem to identify undecidable semantic properties versus decidable finite resource-bounded checks.
Evaluating each problem:
- (A) UNDECIDABLE: Deciding whether two arbitrary Turing machines accept the same language () is the equivalence problem for TMs, which is undecidable.
- (B) UNDECIDABLE: By Rice's theorem, any non-trivial semantic property of the language recognized by a Turing machine is undecidable. Regularity of is non-trivial (some TMs accept regular languages, while others do not), so it is undecidable.
- (C) UNDECIDABLE: Deciding whether a TM accepts all strings () is the universality problem, which is another non-trivial semantic property and hence undecidable by Rice's theorem.
- (D) DECIDABLE: If a TM takes more than steps on every string, it implies that on any string of length greater than , the input reading alone cannot finish within steps. Moreover, the number of distinct configurations of reachable in steps on strings of length up to is finite. Since only a bounded number of execution steps are checked across a finite set of initial tape prefixes, this property can be decided by systematic simulation. Hence (D) is decidable.
Thus, problems (A), (B), and (C) are undecidable.
Final answer
Options (A), (B), (C)
Common trap
Assuming question (D) is undecidable like the halting problem, missing that the step limit is a fixed finite constant.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2022 Computer Science and Information Technology (CS)
- Question
- 46 of 65
- 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.