Skip to content
Official PYQ · 2022

GATE CS 2022 Q13 — Regular and Context-free Languages

Explain with AI

Which of the following statements is/are TRUE?\text{TRUE}?

Select all correct options
View worked solution

Answer: B;C;D

Let us analyze each statement individually to determine its truth value:

  • Statement A: Every subset of a recursively enumerable language is recursive. (FALSE)
    Let Σ={a}\Sigma = \{a\}. The language L=Σ∗L = \Sigma^* is regular, which means it is also recursively enumerable (RE). However, the power set of Σ∗\Sigma^* is uncountable (2ℵ02^{\aleph_0}), whereas the set of all recursive (decidable) languages is countable (since there are only countably many Turing machines). Therefore, there exist uncountably many subsets of LL that are not even recursively enumerable, let alone recursive.

  • Statement B: If a language LL and its complement L‾\overline{L} are both recursively enumerable, then LL must be recursive. (TRUE)
    This is a fundamental theorem in computability theory (Post's Theorem). If both LL and L‾\overline{L} are RE, we can construct a decider for LL by running the Turing machine for LL and the Turing machine for L‾\overline{L} in parallel (interleaved fashion) on any input xx. Since xx must belong to either LL or L‾\overline{L}, one of the two machines is guaranteed to halt and accept. This makes LL decidable (recursive).

  • Statement C: Complement of a context-free language must be recursive. (TRUE)
    Every context-free language (CFL) is recursive (decidable). Since the class of recursive languages is closed under complementation, the complement of any recursive language (and hence any CFL) is guaranteed to be recursive.

  • Statement D: If L1L_1 and L2L_2 are regular, then L1∩L2L_1 \cap L_2 must be deterministic context-free. (TRUE)
    Regular languages are closed under intersection, so L1∩L2L_1 \cap L_2 is regular. Since every regular language is also a deterministic context-free language (DCFL), L1∩L2L_1 \cap L_2 is indeed a DCFL.

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

Published
Report a correction
Keep exploringMore Regular and Context-free Languages questions