GATE / CS ARCHIVE

GATE CSE 2026 SET 2 / QUESTION 13

Deciding versus recognizing a language

Theory of Computation · Turing Machines · Full GATE CSE 2026 Set 2 paper

GATE 2026 Set 2, Q13 1 mark · MCQ
Report issue

Turing Machines

Question 13, GATE 2026: For a Turing machine M and L⊆{0,1}*, which is equivalent to M deciding L? A M halts everywhere; B M accepts all members of L; C M rejects all nonmembers; D M accepts every member and rejects every nonmember.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Givens and goal

For a Turing machine M and L⊆{0,1}*, which is equivalent to M deciding L? A M halts everywhere; B M accepts all members of L; C M rejects all nonmembers; D M accepts every member and rejects every nonmember.

Approach

A decider must be both correct and terminating on every input.

Step-by-step solution

1. A decision procedure answers the membership question for every finite binary input. When the input belongs to L the answer must be acceptance, and otherwise it must be rejection.
2. Both accepting and rejecting are halting outcomes. Thus D guarantees termination on every input as well as the correct result, and exactly captures the definition.
3. A alone permits an always-accept machine even when L is a proper subset of {0,1}*. B permits accepting nonmembers too, or failing to halt on them. C permits wrongly rejecting members or looping on them.
4. Therefore D is necessary and sufficient. A recognizer need only accept precisely the members, and may loop on nonmembers; a decider has the additional total-halting requirement.

Original paper, page 12 · Answer key