Everwhy Open Everwhy
Computing

Are there problems no computer could ever solve, however fast?

Theory of Computation · about 15 minutes a level

An upper-level undergraduate course on what computers can and cannot do. You study finite automata and regular expressions, context-free grammars and pushdown automata, and the pumping lemmas that show their limits. Then come Turing machines and the Church–Turing thesis, decidability, the halting problem and reductions, and complexity theory: P, NP, NP-completeness and space complexity.

Open in Everwhy Continue on the web

Go deeper, level by level

  1. Finite automata: Alphabets, strings and languages, Deterministic finite automata, Nondeterminism and the subset construction
  2. Regular languages: Regular expressions and Kleene's theorem, Closure properties of regular languages, The pumping lemma for regular languages, Minimisation and the Myhill–Nerode theorem
  3. Context-free languages: Context-free grammars, Chomsky normal form and parsing, Pushdown automata, Limits of context-free languages
  4. Turing machines: Turing machines, Variants and the Church–Turing thesis, Encodings and the universal Turing machine
  5. Decidability: Decidable languages, The halting problem and diagonalisation, Reductions and undecidability, Rice's theorem
  6. Time complexity: Time complexity and the class P, The class NP, NP-completeness and the Cook–Levin theorem, A web of NP-complete problems
  7. Beyond NP: Space complexity, Hierarchy theorems and logarithmic space, Randomness, approximation and open problems

Every lesson shows its sources and how sure we are, and is checked by Everwhy.