GATE / CS ARCHIVE

GATE CSE 2024 SET 1 / QUESTION 23

Apply regular-language closure carefully

Theory of Computation · Closure Properties & Language Hierarchy · Full GATE CSE 2024 Set 1 paper

GATE 2024 Set 1, Q23 1 mark · MSQ
Report issue

Closure Properties & Language Hierarchy

Question 23, GATE 2024: L1 and L2 are regular languages and L3 is not regular, over a common alphabet. Which statements always hold? A L1=L2 iff L1∩complement(L2)=∅. B L1∪L3 is nonregular. C complement(L3) is nonregular. D complement(L1)∪complement(L2) is regular.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: C, D

Approach: Use closure under complement and union to prove universal claims, and a single legal counterexample to reject each false universal claim.
1. A is false. L1∩complement(L2)=∅ means only L1⊆L2. For instance L1=∅ and L2={a} satisfy this condition without being equal. Equality would require both inclusions.
2. B is false. Choose L1=Σ*, which is regular. Its union with any L3 is Σ*, so the union can be regular even though L3 is not.
3. C is true by contradiction. If complement(L3) were regular, complementing it again would make L3 regular, since regular languages are closed under complement. This contradicts the premise.
4. D is true because complement(L1) and complement(L2) are each regular, and their union is regular by union closure.
Answer: C and D. A nonregular input does not automatically make the result of every language operation nonregular.

Original paper, page 16 · Answer key