∑GateAndNet
Practice MCQs
GATE CS / Theory of Computation
Edit
ADVANCED🔥 High-Yield Exam Topic 4 min read 5 views

Formal Languages Closure Properties & Decidability Master Matrix

One-stop matrix for Regular, DCFL, CFL, CSL, Recursive, and RE closure + Rice’s Theorem undecidability shortcuts.

Complete Closure Properties Table (Save 4 Marks Every Year!)

OperationRegularDCFLCFLRecursive (REC)Rec. Enumerable (RE)
Union (L1∪L2L_1 \cup L_2)✅ Yes❌ No✅ Yes✅ Yes✅ Yes
Intersection (L1∩L2L_1 \cap L_2)✅ Yes❌ No❌ No✅ Yes✅ Yes
Complement (L‾\overline{L})✅ Yes✅ Yes❌ No✅ Yes❌ No
Concatenation (L1⋅L2L_1 \cdot L_2)✅ Yes❌ No✅ Yes✅ Yes✅ Yes
Kleene Star (L∗L^*)✅ Yes❌ No✅ Yes✅ Yes✅ Yes
Intersection with Regular (L∩RL \cap R)✅ Yes✅ Yes✅ Yes✅ Yes✅ Yes
Homomorphism (h(L)h(L))✅ Yes❌ No✅ Yes❌ No✅ Yes

Decidable vs. Undecidable Decision Problems

ProblemRegularDCFLCFLREC / RE (Turing Machine)
Membership (w∈L?w \in L?)✅ Decidable✅ Decidable✅ Decidable (CYK O(n3)\mathcal{O}(n^3))✅ for REC / ❌ Undecidable for RE
Emptiness (L=∅?L = \emptyset?)✅ Decidable✅ Decidable✅ Decidable❌ Undecidable
**Finiteness ($L< \infty?$)**✅ Decidable✅ Decidable
Universality (L=Σ∗?L = \Sigma^*?)✅ Decidable✅ Decidable❌ Undecidable❌ Undecidable
Equivalence (L1=L2?L_1 = L_2?)✅ Decidable✅ Decidable❌ Undecidable❌ Undecidable
📐 Key Formula

Rice’s Theorem Shortcut: Every non-trivial semantic property of the language L(M)L(M) recognized by a Turing Machine MM is UNDECIDABLE! (e.g., "Is L(M)L(M) regular?", "Does MM accept ϵ\epsilon?", "Does L(M)L(M) contain at least 2 strings?" are ALL undecidable!). Watch out for syntactic machine questions like "Does MM have 15 states?" or "Does MM halt on ww within 100 steps?" — those ARE decidable!

📐 Quick Revision Formula Sheet
Complement of RE Language
L∈REC  ⟺  L∈RE and L‾∈REL \in \text{REC} \iff L \in \text{RE} \text{ and } \overline{L} \in \text{RE}
💡 If L is RE but not Recursive, its complement is NOT even RE!
#TOC#Closure#Decidability#Turing Machines

🎯 Practice PYQs on This Topic (3)

Q1.GATE CS MSQMSQHARD
+2 Marks • No Negative

Let L1L_1 be a Regular language, L2L_2 be a Deterministic Context-Free Language (DCFL), and L3L_3 be a Recursively Enumerable (RE) language. Which of the following statements are ALWAYS TRUE?

Q2.GATE CS TOCMCQEASY
+1 Marks • -0.33 Neg

Context-Free Languages (CFLs) are CLOSED under which of the following set of operations?

Q3.GATE CS TOCMCQMEDIUM
+2 Marks • -0.67 Neg

By Rice’s Theorem, which of the following problems about an arbitrary Turing Machine MM is DECIDABLE?

Previous TopicSorting Bounds, Stability, Inversions & P / NP / NP-Complete ReductionsNext Topic Minimal DFA Construction, Pumping Lemma, CFGs & Pushdown Automata