GATE Computer ScienceModerateGATE CS (PYQ pattern)
Rice's theorem cannot be applied directly to which of the following properties of a Turing machine M (although some of them are undecidable for other reasons)?
- A. L(M) is empty
- B. M halts on the empty input
- C. L(M) is finite
- D. L(M) contains the empty string
Correct answer: B. M halts on the empty input
Rice's theorem concerns non-trivial properties of the language L(M). 'M halts on ε' depends on the machine's behaviour (halting vs rejecting), not just on its accepted language; it is still undecidable by reduction from the halting problem.
More Theory of Computation questions
- If a language L and its complement are both recursively enumerable, then L is
- Which of the following classes of languages is closed under complement but NOT under union?
- Consider L = { aⁿbⁿ : n ≥ 0 } ∪ { aⁿb²ⁿ : n ≥ 0 }. Which classification is correct?
- Over the alphabet {a, b, c}, what is the status of the complement of { aⁿbⁿcⁿ : n ≥ 0 }?
- Consider the language L of strings over {a, b} that contain both abab and bb as substrings, have na ≡ 1 (mod 3) and have an even number of…
- What is the length of the shortest string over {a, b} that has length divisible by 4, contains both aab and bba, has an odd number of b's…