GATE / CS ARCHIVE

GATE CSE 2014 SET 1 / QUESTION 35

GATE CSE 2014 Set 1 Q35

Theory of Computation · Decidability & Computability · Full GATE CSE 2014 Set 1 paper

GATE 2014 Set 1, Q35 2 marks · MCQ
Report issue

Decidability & Computability

Question 35, GATE 2014: Let L̅ be the complement of language L. Which situation is impossible? A: Neither L nor L̅ is recursively enumerable (r.e.). B: One is r.e. but nonrecursive and the other is not r.e. C: Both are r.e. but nonrecursive. D: Both are recursive.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

1. Method and setup. A recognizer may loop forever on a nonmember, whereas a decider must halt on every input. If recognizers exist for both complementary sides, simulate their steps alternately. Every input belongs to exactly one side, so one simulation eventually accepts, allowing a halting membership decision.

2. Work through the result and its assumptions. If both a language and its complement have recognizers, dovetail them on the input; exactly one eventually accepts, deciding membership. Both would therefore be recursive. Hence both being r.e. but nonrecursive is impossible, C. The other possibilities occur, including non-r.e./non-co-r.e. languages.

Original paper, page 16 · Answer key