GATE / CS ARCHIVE

SIMILAR QUESTIONS / THEORY OF COMPUTATION

Separate semantic undecidability from finite simulation

3 questions solved the same way, newest first. Back to Theory of Computation

How these are solved

Separate arbitrary language/behavior properties from explicit finite time or visit bounds. Rice-style reasoning cannot replace checking whether a bounded simulation or syntactic test applies.

2 marks · MSQ
Report issue

Decidability & Computability

Question 46, GATE 2022: Select undecidable problems: A equality of languages of two given Turing machines; B whether a given TM language is regular; C whether a TM accepts all strings; D whether a given TM takes more than the fixed printed bound 1073 steps on every string.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A,B,C

Turing-machine language equivalence, regularity, and universality are undecidable semantic properties: fix one machine to recognize Σ* for an equivalence-to-universality reduction, and apply Rice’s theorem to the other two nontrivial language properties. D asks about a fixed finite time bound, printed as 1073. Simulate on the finitely many distinguishable input prefixes/end-marker cases visible within that many steps. This decides whether every input runs longer than the bound; complexity is enormous but finiteness suffices. Thus A, B, C.

A language property is nontrivial when some recognizable languages possess it and others do not. Regularity and universality satisfy this requirement, so Rice applies. Runtime within a fixed number of steps is instead a bounded execution property: only finitely many tape cells can be inspected. An astronomical fixed bound remains finite and does not become the unbounded halting problem.

Original paper, page 31 · Answer key

2 marks · MCQ
Report issue

Decidability & Computability

Question 26, GATE 2020: Which languages of machine encodings are undecidable? L1={⟨M⟩:L(M)=∅}; L2={⟨M,w,q⟩:M on w reaches q in exactly 100 steps}; L3={⟨M⟩:L(M) is not recursive}; L4={⟨M⟩:L(M) has at least 21 members}. A L1,L3,L4; B L1,L3; C L2,L3; D L2,L3,L4.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Worked explanation

Apply Rice’s theorem only to semantic properties of the recognized language that are neither true for every recognizable language nor false for all of them. Emptiness is nontrivial (∅ versus {ε}); nonrecursiveness is nontrivial (a recognizable undecidable language versus a finite language); at least 21 strings is nontrivial (∅ versus any 21-element finite language). Thus L1,L3,L4 qualify. L2 instead concerns a bounded computation trace. A simulator executes at most 100 transitions and checks q at the specified step, rejecting if the run ends earlier without that event. This always halts. An unbounded reachability question would be very different.

Derivation and answer

TM-language emptiness, being nonrecursive, and having at least 21 strings are each nontrivial semantic properties of recursively enumerable languages, so Rice’s theorem makes L1, L3, L4 undecidable. L2 is decidable by simulating the specified machine and input for exactly 100 steps and checking the state. Thus A.

Original paper, page 9 · Answer key

2 marks · MCQ
Report issue

An undecidable machine problem

Decidability & Computability

Question 6.5, GATE 1997: Choose the undecidable task: bounded-step TM acceptance, TM language equivalence, DFA nonemptiness, CFG nonemptiness.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Given a step bound k, simulate the TM for at most k steps and answer, so A is decidable. DFA nonemptiness is reachability of an accepting state. CFG nonemptiness is found by marking variables that derive terminal strings until a fixed point. TM language equivalence is undecidable: if decidable, it could compare any TM with one recognizing the empty language and thereby decide TM language emptiness, an undecidable semantic property. Thus B. Bounded simulation differs crucially from unbounded acceptance.

Original paper, page 5