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

Computability and Complexity: Overview and Connections

College Depth 84 in the knowledge graph ☐ I know this ☆ Set as goal
34topics build on this
451prerequisites beneath it
See this on the map →
Mu-Recursive Functions→→Complexity Classes and the Complexity HierarchyFormal Models of Computation: Turing Machines and Lambda Calculus+2 more
overview foundations computability complexity-theory

Core Idea

Computability theory asks which problems can be solved algorithmically at all (decidability), while complexity theory asks which solvable problems can be solved efficiently. Together, they form the foundations of theoretical computer science, connecting mathematical logic to questions about practical computation limits.

How It's Best Learned

Start with a high-level chronology: early undecidable problems, then complexity results starting from P vs NP. Connecting Gödel's incompleteness theorems to uncomputability helps build intuition.

Common Misconceptions

Explainer

The field of theoretical computer science begins with a question that preceded computers themselves: what can be computed at all? Alan Turing answered this in 1936 by defining a model of computation — the Turing machine — and showing that some problems cannot be solved by any algorithm whatsoever. This is the domain of computability theory: it identifies the outer boundary of algorithmic possibility, independent of time, space, or hardware. The classic example is the halting problem: no algorithm can correctly decide, for all program-input pairs, whether the program halts or runs forever. This is not a practical limitation — it is a mathematical impossibility, proved by a diagonal argument that constructs a program that contradicts any hypothetical decider.

Once we know a problem is computable, a second question arises: how *efficiently* can it be computed? This is the domain of complexity theory, which developed in the 1960s and 1970s. Complexity theory partitions decidable problems by the resources — primarily time and memory space — they require as input size grows. The complexity class P contains problems solvable in polynomial time; NP contains problems whose solutions can be *verified* in polynomial time. The central open question — whether P = NP — asks whether efficient verification always implies efficient solution. Most researchers believe P ≠ NP, but no proof exists either way.

The two fields share deep structural connections. Both use diagonalization — the technique Turing used to show the halting problem is undecidable — as a key proof method; the same idea yields the time and space hierarchy theorems in complexity. Both fields rely on reductions: transformations that convert one problem to another, preserving difficulty. In computability, many-one reductions define relative undecidability (if A reduces to B and A is undecidable, so is B). In complexity, polynomial-time reductions define NP-completeness. The Turing machine model is the foundation of both: computability asks whether a TM halts on a given input; complexity asks how quickly.

A useful mental map: imagine problems arranged by solvability. The outermost region is undecidable problems — no algorithm exists. Inside is the decidable region. Within that, the efficiently solvable ones form P. Complexity theory maps the interior of the decidable region in fine detail — PSPACE, the exponential classes, the NP-complete problems clustered on the boundary of P. Computability draws the outer boundary; complexity theory surveys the interior. Together they answer both halves of the fundamental question: what can be computed, and at what cost?

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 → Introduction to Propositional Logic → Introduction to Predicate Logic (First-Order Logic) → First-Order Logic Syntax → ZFC Axioms Overview → Axiom Schema of Separation → Axiom Schema of Replacement → Von Neumann Ordinals → Hereditarily Finite Sets → Recursive Definitions on Finite Sets → Natural Numbers in Set Theory: Iterative Construction → Formal Arithmetic and Expressibility → Primitive Recursive Functions → Ackermann Function → General Recursive Functions and the μ-Operator → Mu-Recursive Functions → Computability and Complexity: Overview and Connections

Longest path: 85 steps · 451 total prerequisite topics

Prerequisites (1)

Leads To (4)