GATE / CS ARCHIVE

GATE CSE 2008 / QUESTION 13

Recognizable language and recognizable complement

Theory of Computation · Decidability & Computability · Full GATE CSE 2008 paper

GATE 2008, Q13 1 mark · MCQ
Report issue

Decidability & Computability

Question 13, GATE 2008: If both L and its complement are recursively enumerable, L is necessarily:

(A) Regular
(B) Context-free
(C) Context-sensitive
(D) Recursive
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Run recognizers for L and its complement in dovetailing fashion, alternating simulation steps so neither can prevent the other from progressing.
2. Every input lies in exactly one of the two languages, so exactly one recognizer eventually accepts. Accept if it is the L recognizer and reject otherwise.
3. This constructed decider halts on every input, making L recursive, D. Nothing here guarantees regularity, context-freeness or a linear-space bound.

Original paper, page 3