GATE / CS ARCHIVE

GATE CSE 2015 SET 2 / QUESTION 20

GATE CSE 2015 Set 2 Q20

Theory of Computation · Decidability & Computability · Full GATE CSE 2015 Set 2 paper

GATE 2015 Set 2, Q20 1 mark · MCQ
Report issue

Decidability & Computability

Question 20, GATE 2015: Assess I complement of every decidable language is decidable; II some language is in NP but undecidable; III every NP language is decidable. A II only; B III only; C I and II; D I and III.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

A decider halts on every input, so exchanging accept and reject decides the complement. An NP computation has a finite polynomially bounded certificate/search tree, which a deterministic machine can exhaust, so every NP language is decidable. I and III hold, II fails: D.

A language in NP has a polynomially bounded certificate verifier. A deterministic decider can enumerate every certificate up to that finite bound and run the verifier, halting with yes if one works and no otherwise. This may be exponential but still terminates, so III is true and II is false. A decider for a complement simply reverses the yes/no outcomes of a halting decider, so I is also true. Distinguish decidability from efficient decidability.

Original paper, page 33 · Answer key