GATE / CS ARCHIVE

GATE CSE 2010 / QUESTION 17

Differences of recursive and enumerable languages

Theory of Computation · Closure Properties & Language Hierarchy · Full GATE CSE 2010 paper

GATE 2010, Q17 1 mark · MCQ
Report issue

Closure Properties & Language Hierarchy

Question 17, GATE 2010: L₁ is recursive. L₂ and L₃ are recursively enumerable but not recursive. Which statement is not necessarily true?
Options: (A) L₂−L₁ is recursively enumerable; (B) L₁−L₃ is recursively enumerable; (C) L₂∩L₃ is recursively enumerable; (D) L₂∪L₃ is recursively enumerable.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

L₂−L₁=L₂∩complement(L₁) is recursively enumerable because L₁ is decidable and its complement is decidable. Recursively enumerable languages are also closed under union and intersection, proving C and D. But take L₁=Σ* and L₃ an undecidable recursively enumerable language: L₁−L₃ is its complement and cannot be recursively enumerable, or L₃ would be decidable by dovetailing both recognizers. Therefore B is not necessarily true.

To recognize an intersection of two recursively enumerable languages, simulate both recognizers in parallel and accept only after both accept; for a union accept after either does. For L₂−L₁, first decide nonmembership in L₁, then run the L₂ recognizer. This construction fails for L₁−L₃ because nonmembership in undecidable L₃ cannot generally be recognized.

Original paper, page 4