GATE Computer ScienceHardGATE CS
For a Turing machine M (given by its encoding ⟨M⟩) consider these sets: I. { ⟨M⟩ : M has at least 481 states } II. { ⟨M⟩ : L(M) contains at least 481 strings } III. { ⟨M⟩ : M halts on input ε within 481 steps } IV. { ⟨M⟩ : L(M) = ∅ } Which of these sets are decidable?
- A. III and IV only
- B. I, II and III only
- C. I and III only
- D. I and IV only
Correct answer: C. I and III only
I is a purely syntactic property of the description, and III can be settled by simulating exactly 481 steps. II and IV are non-trivial properties of L(M), so Rice's theorem makes them undecidable (II is semi-decidable, IV is not).
More Theory of Computation questions
- Which of the following languages are deterministic context-free? I. { aⁱbʲcᵏ : i = j or j = k } II. { aⁱbʲcᵏ : i = j, k ≥ 0 } III. { w c…
- Let L = { aⁿ : n ≥ 5 and (n is divisible by 4 or n is divisible by 6) }. How many states does the minimal complete DFA for L have?
- Which one of the following languages over the one-letter alphabet {a} is NOT context-free?
- How many strings of length 12 over {a, b} contain exactly three occurrences of aa as a substring (overlapping occurrences counted…
- L₁ is accepted by a minimal complete DFA with 4 states and L₂ by a minimal complete DFA with 3 states. What is the largest number of…
- The minimal complete DFA of a language L has 5 states. What is the largest number of states that the minimal complete DFA of the Kleene…