GATE CSE · Theory Of Computation
Generate GATE-level questions covering decidable and undecidable problems, halting problem, reductions, and recursively enumerable languages. Include proof and reduction-based questions.
Concept summary for GATE CSE 2027 · 18 practice questions available
Decidable ⊂ Semi-decidable (RE) ⊂ All Languages
HP: Given TM M and input w, does M halt on w?
Proof sketch (Diagonalization):
Assume TM H decides HP. Build TM D: on input M, run H(M,M):
For Regular Languages (all decidable):
For CFLs (partially decidable):
| Problem | Status |
|---|---|
| Halting Problem | RE, Undecidable |
| Emptiness of TM: L(TM) = ∅? | Co-RE, Undecidable |
| Membership for TM | RE, Undecidable |
| Equivalence of two TMs | Undecidable, not RE |
| Post Correspondence Problem (PCP) | Undecidable |
| CFG ambiguity | Undecidable |
| CFG equivalence | Undecidable |
| L(CFG) = Σ* | Undecidable |
| Intersection of two CFGs non-empty | Undecidable |
Any non-trivial property of the language recognized by a TM is undecidable.
If A reduces to B (A ≤ B):
Rice's theorem is the fastest way to prove undecidability - check if property is about the language (not the TM machine itself) and is non-trivial. Halting problem is the standard reduction target. If L is undecidable RE, then L̄ is not RE - this is directly tested. "Does TM halt on empty input?" - undecidable by Rice's theorem.