Skip to content
Official PYQ · 2024

GATE CS 2024 Set 1 Q13 — Regular and Context-free Languages

Explain with AI

​Let L1,L2L_1, L_2 be two regular languages and L3L_3 a language which is not regular.

Which of the following statements is/are always TRUE?

Select all correct options
View worked solution

Answer: C;D

We are given that L1L_1 and L2L_2 are regular languages, and L3L_3 is a non-regular language.

Let's analyze each option systematically:

  • Option A: L1=L2L_1 = L_2 if and only if L1∩L2‾=ϕL_1 \cap \overline{L_2} = \phi
    The condition L1∩L2‾=ϕL_1 \cap \overline{L_2} = \phi is equivalent to L1⊆L2L_1 \subseteq L_2. This does not imply L1=L2L_1 = L_2.
    Counterexample: Let L1=ϕL_1 = \phi and L2=Σ∗L_2 = \Sigma^*. Both are regular. Here, L1∩L2‾=ϕ∩ϕ=ϕL_1 \cap \overline{L_2} = \phi \cap \phi = \phi, but L1≠L2L_1 \neq L_2. Thus, this statement is FALSE.

  • Option B: L1∪L3L_1 \cup L_3 is not regular
    The union of a regular language and a non-regular language can sometimes be regular.
    Counterexample: Let L1=Σ∗L_1 = \Sigma^* (regular) and L3={anbn∣n≥0}L_3 = \{a^n b^n \mid n \ge 0\} (non-regular).
    Then, L1∪L3=Σ∗L_1 \cup L_3 = \Sigma^*, which is regular. Thus, this statement is FALSE.

  • Option C: L3‾\overline{L_3} is not regular
    Regular languages are closed under complementation. If L3‾\overline{L_3} were regular, then its complement L3‾‾=L3\overline{\overline{L_3}} = L_3 would also be regular. Since we are given that L3L_3 is not regular, L3‾\overline{L_3} must also be non-regular. Thus, this statement is ALWAYS TRUE.

  • Option D: L1‾∪L2‾\overline{L_1} \cup \overline{L_2} is regular
    Since L1L_1 and L2L_2 are regular:
    • L1‾\overline{L_1} and L2‾\overline{L_2} are regular (closure under complementation).
    • L1‾∪L2‾\overline{L_1} \cup \overline{L_2} is regular (closure under union).
    Thus, this statement is ALWAYS TRUE.

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

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