GATE CS 2024 Set 1 — Question 23

MSQ+1 / -0MediumClosure Properties (Regular)Finite Automata & Regular LanguagesTheory of Computation

Theory of Computation → Finite Automata & Regular Languages → Closure Properties (Regular)

Last updated

Question

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?
A.
L1=L2L_1 = L_2 if and only if L1L2=L_1 \cap \overline{L_2} = \emptyset
B.
L1L3L_1 \cup L_3 is not regular
C.
L3\overline{L_3} is not regular
D.
L1L2\overline{L_1} \cup \overline{L_2} is regular

Correct answer

(C) L₃ is not regular; (D) L₁ ∪ L₂ is regular

Solution

Let L1,L2L_1, L_2 be regular languages and L3L_3 be a non-regular language.
  • Option (A): L1=L2L_1 = L_2 if and only if L1L2=L_1 \cap \overline{L_2} = \emptyset. This is false. L1L2=L_1 \cap \overline{L_2} = \emptyset is equivalent to L1L2L_1 \subseteq L_2. For L1=L2L_1 = L_2 to be true, we also need L2L1=L_2 \cap \overline{L_1} = \emptyset (i.e., L2L1L_2 \subseteq L_1).
  • Option (B): L1L3L_1 \cup L_3 is not regular. This is false. For example, if L1=ΣL_1 = \Sigma^* (which is regular) and L3L_3 is any non-regular language, then L1L3=ΣL_1 \cup L_3 = \Sigma^*, which is regular.
  • Option (C): L3\overline{L_3} is not regular. This is true. 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, which contradicts the given that L3L_3 is not regular.
  • Option (D): L1L2\overline{L_1} \cup \overline{L_2} is regular. This is true. Regular languages are closed under complementation and union. Since L1L_1 and L2L_2 are regular, L1\overline{L_1} and L2\overline{L_2} are regular, and their union L1L2\overline{L_1} \cup \overline{L_2} is also regular.
Therefore, the correct options are (C) and (D).

More questions on Finite Automata & Regular Languages

Practice GATE CS PYQs with adaptive difficulty

Timed practice, skill tracking, and AI explanations — free to start.

Start practicing free