Decidability and Decision Problems

Context: FIT2014_MOC · the class of languages a Turing machine settles with a guaranteed halt · sits one tier above regular ⊊ context-free and is the launchpad for reductions (Mapping Reductions)

Quick Revision

  • 🎯 Objective: a decider halts on every input ➔ is decidable iff for some decider ; a Yes/No problem is decidable iff its YES-input language is.
  • ⚠️ Key Constraint: decidable ≠ merely accepted. Acceptance tolerates ; decidable demands — halting on the No-instances is the entire content of the word.

📝 Core

  • Decider ➔ a TM that halts for every input, so splits into exactly two parts, and , with (partition from Turing Machines).
  • Decidable language is decidable iff for some decider — in which case for free: one machine settles both sides.
  • Synonymsdecidable recursive solvable, and often computable — but “computable” has carried other meanings too, so decidable is the safe word in an answer.
  • Decision problem ➔ a problem where, for each input, the answer is Yes or No. A decider solves it iff it Accepts every Yes-input and Rejects every No-input.
  • Known decidable ➔ every regular language, every context-free language, and (built in Building Turing Machines) — the last is not context-free, so this tier strictly exceeds the CFLs.

🔁 Problem ⟷ language

  • Problem language ➔ collect the YES-instances: , each encoded as a string.
  • Language problemInput: a string (usually representing some object). Question: is ?
  • The bridge ➔ a decider solves a decision problem iff it is a decider for the corresponding language ⟹ “decidable problem” and “decidable language” are one statement in two vocabularies, and either may be quoted in a proof.
  • Encoding ➔ a TM’s input and output are always strings, so an object enters as and a tuple as — this is the device that lets a graph, an automaton or a grammar be an input at all (see Encoding Turing Machines (Code Words) for a concrete encoding).

🗺️ Where decidable sits

🧮 Proof Blueprint — closure of the decidable languages

Theorem. If is decidable then so is . If and are decidable then so are , , and .

Strategy ➔ build a new decider that runs the old ones as subroutines. Every subroutine call is guaranteed to return, so the composite halts — this guaranteed return is the only property being spent, and it is exactly what “decider” buys.

⚠️ Common Mistakes

  • 💡 “It accepts ” is weaker than “it decides ➔ a machine may accept exactly yet loop forever on some non-member. Only earns the word decidable.
  • 💡 Complement is free only for deciders needs to halt on every input; without that, contains the loopers and no machine has been exhibited for it.
  • 💡 Don’t skip ➔ writing instead of loses the point that the object must be serialised before a TM can touch it.
  • 💡 Yes/No, not output ➔ a decision problem returns a verdict, never a constructed object; “find the shortest path” is not a decision problem, “is there a path?” is.

🧠 Active Recall