A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Decidable Languages

Graduate Depth 95 in the knowledge graph ☐ I know this ☆ Set as goal
31topics build on this
443prerequisites beneath it
See this on the map →
Turing MachinesCardinality and Countability+4 more→→Oracle Turing MachinesThe Halting Problem
decidable Turing-decidable recognizable algorithms

Core Idea

A language is *Turing-decidable* (or just decidable) if some Turing machine halts on every input and correctly accepts or rejects. A language is *Turing-recognizable* if some TM halts and accepts on every string in the language, but may loop on strings outside it. Decidable languages are a proper subset of recognizable languages. Examples of decidable languages include all regular and context-free languages. The distinction between recognizable and decidable becomes crucial when studying the limits of computation: some problems can be semi-solved (recognized) but not fully solved (decided).

How It's Best Learned

Build TMs that decide specific languages (e.g., ATM for the same-length palindrome) and contrast with TMs that only recognize. Understanding why a decider must *halt on rejection* — not just loop — is the key conceptual bridge to undecidability.

Common Misconceptions

Explainer

From your study of Turing machines, you know that a TM can read, write, and move along an infinite tape, giving it the power to simulate any algorithm. But here is the critical question: when you run a Turing machine on an input, does it always eventually stop and give you an answer? The distinction between machines that always halt and machines that might run forever is the heart of decidability.

A decider is a Turing machine that halts on *every* input — it always reaches either an accept state or a reject state in finite time. A language is decidable if some decider exists for it. By contrast, a recognizer is a Turing machine that halts and accepts every string in the language but might loop forever on strings not in the language. A language is Turing-recognizable if some recognizer exists for it. The difference is subtle but profound: with a decider, you are guaranteed an answer (yes or no) in finite time. With a mere recognizer, a "yes" answer comes in finite time, but a "no" answer might never come — the machine just keeps running, and you can never be sure whether it will eventually halt or loop forever.

Every decidable language is automatically recognizable (a decider is a recognizer that happens to always halt), but the converse is false — some recognizable languages are not decidable. Where do familiar languages fall? All regular languages are decidable: you can simulate a DFA, which always halts after reading the input. All context-free languages are decidable: the CYK algorithm always terminates with a yes-or-no answer. So for the language classes you have studied so far, decidability comes for free. The interesting territory begins with questions *about* Turing machines themselves — like "does this TM accept this input?" — where recognizability and decidability diverge.

The reason decidability matters is that it draws a sharp, provable boundary around what algorithms can accomplish. It is not a matter of cleverness or computing power: some problems have no algorithm that always halts with a correct answer, and this can be *proven* — no future hardware or software breakthrough will change it. The halting problem, which you will study next, is the canonical example. Understanding the decidable/recognizable distinction equips you to ask the right question about any computational problem: not just "can I solve it?" but "can I *always* solve it and know when I am done?"

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals → Implementing Boolean Functions with Gates → Karnaugh Map Simplification → Combinational Circuit Design → Flip-Flops and Latches → Finite State Machines (FSMs) → Deterministic Finite Automata (DFA) → Nondeterministic Finite Automata (NFA) → Two-Way Finite Automata → NFA to DFA Conversion (Subset Construction) → DFA Properties and Minimization Algorithms → Regular Languages: Definition and Characterization → Context-Free Grammars (CFGs) → Pushdown Automata (PDA) → Equivalence of CFGs and Pushdown Automata → Closure Properties of Context-Free Languages → Limitations of Context-Free Languages → Pumping Lemma for Context-Free Languages → Turing Machines → Variants of Turing Machines and Equivalence → Universal Turing Machine and Self-Simulation → Church-Turing Thesis and Computability → Decidable Languages

Longest path: 96 steps · 443 total prerequisite topics

Prerequisites (6)

Leads To (2)