GATE / CS ARCHIVE

GATE CSE 2018 / QUESTION 7

Closure of recognizable languages

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

GATE 2018, Q7 1 mark · MCQ
Report issue

Closure Properties & Language Hierarchy

Question 7, GATE 2018: For recursively enumerable languages, choose the true statement: A closed under complement; B closed under intersection; C all are recursive; D there are uncountably many.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Method

A recognizer may run forever when the input is not in its language. For intersection, sequential simulation is sufficient: run the first recognizer and, if it accepts, run the second and accept only if it also accepts. An input in both languages reaches both acceptances; if the first simulation loops, that input is outside the intersection, where looping is permitted. Dovetailing is another valid construction, not a requirement here. Unlike intersection, union requires avoiding a loop in one recognizer that hides acceptance by the other. Finite machine descriptions are countable, and recognizable but undecidable languages refute C.

Solution

To recognize the intersection of two recursively enumerable languages, dovetail their recognizers on the same input and accept when both accept. Hence intersection closure holds. Complement closure would make every recognizable language decidable, which is false; encodings of recognizers are countable. Thus B.

Original paper, page 5 · Answer key