GATE Computer ScienceVery hardGATE CS (PYQ pattern)
Consider these problems about a Turing machine M (given as input): I. Does M ever move its head to the left when started on the blank tape? II. Does M visit more than 100 distinct tape cells when started on the blank tape? III. Is L(M) = Σ*? IV. Does M ever write the symbol 1 when started on the blank tape? Which of these are decidable?
- A. II only
- B. I and II only
- C. I, II and IV only
- D. II and III only
Correct answer: B. I and II only
I: while M moves only right on blanks, its behaviour depends just on its state; within |Q| + 1 such moves a state repeats, after which it moves right forever — decidable by simulation. II: while confined to 100 cells there are finitely many configurations, so simulate until it leaves them or repeats a configuration. III is undecidable (Rice). IV is undecidable (halting reduces to it: print 1 only when about to halt).
More Theory of Computation questions
- Which of the following problems is decidable?
- Which of the following problems is undecidable?
- Let TOTAL = { ⟨M⟩ : the Turing machine M halts on every input }. Which statement about TOTAL is correct?
- Let A = { ⟨M⟩ : the TM M halts on at least one input } and B = { ⟨M⟩ : M halts on no input }. Which statement is correct?
- Which of the following statements about many-one reductions A ≤ B are correct? I. If B is decidable then A is decidable. II. If A is…
- Which of the following languages is context-sensitive but NOT context-free?