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 moreOracle 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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesIntroduction to Graph TheoryPropositional Logic FoundationsLogical EquivalencesBoolean AlgebraBoolean Type and Truth ValuesComparison Operators and Boolean TestsLogical Operators and Boolean AlgebraBoolean Algebra and Fundamental LawsLogic Gates FundamentalsImplementing Boolean Functions with GatesKarnaugh Map SimplificationCombinational Circuit DesignFlip-Flops and LatchesFinite State Machines (FSMs)Deterministic Finite Automata (DFA)Nondeterministic Finite Automata (NFA)Two-Way Finite AutomataNFA to DFA Conversion (Subset Construction)DFA Properties and Minimization AlgorithmsRegular Languages: Definition and CharacterizationContext-Free Grammars (CFGs)Pushdown Automata (PDA)Equivalence of CFGs and Pushdown AutomataClosure Properties of Context-Free LanguagesLimitations of Context-Free LanguagesPumping Lemma for Context-Free LanguagesTuring MachinesVariants of Turing Machines and EquivalenceUniversal Turing Machine and Self-SimulationChurch-Turing Thesis and ComputabilityDecidable Languages

Longest path: 96 steps · 443 total prerequisite topics

Prerequisites (6)

Leads To (2)