01Chapter 1: Problems, Instances, and Decision VersionsBefore you can reduce one problem to another, you need a precise idea of what a "problem" is. This chapter fixes that idea. Every later chapter relies on it.3 min read
02Chapter 2: What It Means to Reduce One Problem to AnotherThis chapter assumes you can read short Python programs and know what a decision problem is: a question about an encoded instance whose answer is yes or no. The previous chapter covered that. Here we build the intuition for reductions. The formal definitions come in the next chapter.2 min read
03Chapter 3: Many-One Reductions and Proving Them CorrectThis chapter assumes you know the decision-problem view from earlier chapters: a problem is a set of encoded instances, and the yes-instances form a language. You should also be comfortable writing short "if and only if" proofs and reading Python.3 min read
04Chapter 4: Which Way Does It Go? Transferring Algorithms and HardnessThis chapter assumes you know what a decision problem is and how a many-one reduction works. A many-one reduction is a computable function f where x is a yes-instance of A exactly when f(x) is a yes-instance of B. We write this as A ≤ B. The question here is what such a reduction actually tells you,2 min read
05Chapter 5: First Examples: Independent Set, Vertex Cover, and CliqueThis chapter assumes you know basic graph vocabulary (vertices, edges, adjacency) and the definition of a many-one reduction from earlier chapters. All three problems below are decision problems on an undirected graph G = (V, E) with n vertices.3 min read
06Chapter 6: Polynomial-Time ReductionsThis chapter assumes you already know many-one reductions and how to prove them correct in both directions. It also assumes you can read big-O running times. Here we add one condition to the reduction, a limit on how long it may run. That condition is what makes reductions useful for studying effici2 min read
07Chapter 7: Chaining Reductions TogetherThis chapter assumes you know what a many-one reduction is, how to prove one correct in both directions, and what polynomial-time (Karp) reductions are. It also uses the Clique, Independent Set, and Vertex Cover reductions from the earlier chapters.2 min read
08Chapter 8: NP as Problems with Checkable CertificatesThis chapter assumes you know what a decision problem is, can read polynomial running times in Big-O notation, and recognize Independent Set and Vertex Cover from earlier chapters. NP is the class of problems where a correct "yes" answer can be checked quickly. Later chapters on NP-hardness need thi2 min read
09Chapter 9: NP-Hardness and NP-CompletenessThis chapter assumes you already know polynomial-time (Karp) reductions, that reductions compose by transitivity, and that NP is the class of decision problems whose "yes" answers have certificates you can check in polynomial time. With those three ideas in place, NP-hardness and NP-completeness tak3 min read
10Chapter 10: SAT and the Cook-Levin TheoremThis chapter assumes you know polynomial-time (Karp) reductions, the definition of NP through certificate verifiers, and what NP-hard and NP-complete mean. It also assumes you can read propositional formulas in conjunctive normal form (CNF).3 min read
11Chapter 11: Building Gadgets: Reducing 3-SAT to Independent SetThis chapter assumes you know polynomial-time reductions, the definition of NP-completeness, and that 3-SAT is NP-complete, which follows from Cook-Levin. You should also know the Independent Set problem from the earlier graph chapter.2 min read
12Chapter 12: Turing Reductions and OraclesThis chapter assumes you know many-one reductions, polynomial-time (Karp) reductions, and the Independent Set problem from earlier chapters. You should also be comfortable reading short Python functions.2 min read
13Chapter 13: Proving Undecidability by Reduction from the Halting ProblemThis chapter assumes you know three things from earlier chapters. A many-one reduction from A to B is a computable function f where x is in A exactly when f(x) is in B. Hardness moves along a reduction from A to B. The third is Turing's theorem: the halting problem is undecidable.2 min read
14Chapter 14: From Yes/No Answers to Actual SolutionsThis chapter assumes you already know Turing (oracle) reductions, the definition of NP-completeness, and the Independent Set problem from earlier chapters. It also assumes you can read basic Python.3 min read
16Chapter 16: Common Mistakes and How to Check a ReductionThis chapter assumes you know what many-one and polynomial-time reductions are, how NP-completeness proofs work, and how the 3-SAT to Independent Set gadget reduction is built. It covers the errors that most often break a reduction and gives a routine for catching them before you rely on a proof.2 min read
17Chapter 17: Further Directions: Approximation-Preserving and Fine-Grained ReductionsThis chapter assumes you know Karp reductions, NP-completeness, and the Independent Set and Vertex Cover reductions from earlier chapters. It is a short map of two areas where reductions have to carry more information than a yes or no answer.2 min read