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

Recursive Languages: The Decidable Languages

College Depth 86 in the knowledge graph I know this Set as goal
25topics build on this
479prerequisites beneath it
See this on the map →
Formal Models of Computation: Turing Machines and Lambda CalculusSet Theory Fundamentals+3 moreRecursively Enumerable Languages: Semi-Decidability
decidability recursive formal-languages algorithms

Core Idea

A language is recursive (or decidable) if there exists a Turing machine that halts on every input and accepts exactly those strings in the language. Recursive languages form a proper subset of recursively enumerable languages; they represent problems that can be completely solved by algorithms.

Explainer

You already know what a Turing machine is and what it means for a machine to accept or reject a string. The class of recursive (decidable) languages is defined by a stricter requirement: not just that the machine accepts the right strings, but that it *always halts*. A decider for a language L is a Turing machine that, for every input, either accepts (if the input is in L) or rejects (if not), and always terminates. This "always halts" condition is what separates recursion from mere recognizability.

The distinction from recursively enumerable (RE) languages is crucial. An RE language only needs a machine that accepts members — it is allowed to run forever on non-members. This asymmetry means RE recognition is a weaker guarantee: you can confirm membership but never confirm non-membership (the machine might just be running slowly). A recursive language is symmetric: membership and non-membership are both decidable in finite time. Equivalently, a language is recursive if and only if both it and its complement are RE — recognizers for both sides can be run in parallel, and whichever halts first gives the answer.

Concrete examples ground the concept. The language of palindromes is recursive: a TM scans the input, compares first and last characters repeatedly, and always halts. The language of strings of the form aⁿbⁿcⁿ is recursive. Regular and context-free languages are all recursive — membership in these classes is decidable by finite automata and pushdown automata, which always halt. Contrast these with the halting problem: no TM can decide, for all pairs (M, w), whether M halts on w. The halting problem is RE but not recursive.

Recursive languages correspond precisely to the class of problems solvable by algorithms in the informal sense — the Church-Turing thesis equates "algorithmically solvable" with "recursive." This is why the class is also called decidable. When you study complexity theory next, you will refine decidability further by asking not just whether a problem is solvable, but how efficiently — with polynomial-time deciders corresponding to the class P. The recursive languages form the outer boundary of tractability; the study of what lies outside (RE but not recursive, or not even RE) is the study of undecidability.

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 AlgebraIntroduction to Propositional LogicIntroduction to Predicate Logic (First-Order Logic)First-Order Logic SyntaxZFC Axioms OverviewAxiom Schema of SeparationAxiom Schema of ReplacementVon Neumann OrdinalsHereditarily Finite SetsRecursive Definitions on Finite SetsNatural Numbers in Set Theory: Iterative ConstructionFormal Arithmetic and ExpressibilityPrimitive Recursive FunctionsAckermann FunctionGeneral Recursive Functions and the μ-OperatorMu-Recursive FunctionsThe Church-Turing ThesisFormal Models of Computation: Turing Machines and Lambda CalculusRecursive Languages: The Decidable Languages

Longest path: 87 steps · 479 total prerequisite topics

Prerequisites (5)

Leads To (1)