GATE / CS ARCHIVE

GATE CSE 2022 / QUESTION 23

GATE CSE 2022 Q23

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

GATE 2022, Q23 1 mark · MSQ
Report issue

Decidability & Computability

Question 23, GATE 2022: Select true statements: A every subset of a recursively enumerable language is recursive; B if L and its complement are recursively enumerable, L is recursive; C the complement of a context-free language is recursive; D the intersection of two regular languages is deterministic context-free.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B,C,D

A is false: a recursively enumerable language such as Σ* can have a subset that is not recursive. B is true because dovetailing recognizers for a language and its complement always finds one acceptance, giving a decider. C is true because CFL membership is decidable and decidable languages are closed under complement. D is true because a DPDA can track a regular-language DFA in its finite control without losing determinism. Thus B, C, D.

For B, alternate one step of each recognizer on the same input. Exactly one must eventually accept, so the procedure always halts with the correct yes/no result. For D, regular languages are closed under intersection using a product DFA; a deterministic PDA can simulate that DFA while ignoring its stack.

Original paper, page 19 · Answer key