Skip to content
Official PYQ · 2015

GATE CS 2015 Set 1 Q3 — Turing Machines

Explain with AI

For any two languages L1L_{1} and L2L_{2} such that L1L_{1} is context-free and L2L_{2} is recursively enumerable but not recursive, which of the following is/are necessarily true?

  1. Lˉ1\bar{L}_{1} ( Complement of L1L_{1}) is recursive
  2. Lˉ2\bar{L}_{2} ( Complement of L2L_{2}) is recursive
  3. Lˉ1\bar{L}_{1} is context-free
  4. Lˉ1\bar{L}_{1} ∪ L2L_{2} is recursively enumerable
Choose one option
View worked solution

Answer: D

We analyze each statement based on the closure properties of language families:

  • Statement I: Every context-free language is also a recursive language. Since recursive languages are closed under complementation, if L1L_1 is context-free, then Lˉ1\bar{L}_1 must be recursive. This statement is true.
  • Statement II: If Lˉ2\bar{L}_2 were recursive, then its complement L2L_2 would also be recursive. Since we are given that L2L_2 is not recursive, Lˉ2\bar{L}_2 cannot be recursive. This statement is false.
  • Statement III: Context-free languages are not closed under complementation. Thus, Lˉ1\bar{L}_1 is not necessarily context-free. This statement is false.
  • Statement IV: Since L1L_1 is context-free, Lˉ1\bar{L}_1 is recursive, which implies Lˉ1\bar{L}_1 is recursively enumerable (RE). Since L2L_2 is RE and RE languages are closed under union, Lˉ1∪L2\bar{L}_1 \cup L_2 must be recursively enumerable. This statement is true.

Hence, only statements I and IV are necessarily true.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Turing Machines questions