01Chapter 1: Problems, Instances, and Decision VersionsA reduction turns one problem into another. Before you can build one, you need a precise idea of what a "problem" is. This chapter defines problems, instances, and encodings. It also shows why so much of complexity theory restricts itself to yes/no questions, and when that restriction costs you noth5 min read
02Chapter 2: What It Means to Reduce One Problem to AnotherThis chapter assumes you can read short Python programs, know what a function is in the mathematical sense, and have met decision problems as described in the previous chapter: questions with a yes or no answer about an encoded instance. Big-O notation helps in one section but is not essential.6 min read
03Chapter 3: Many-One Reductions and Proving Them CorrectThis chapter assumes you can read decision problems as languages, meaning sets of encoded yes-instances. It also assumes you can write a two-part "if and only if" proof and can read short Python programs. The previous chapter gave the informal idea of a reduction. Here we make it precise and learn h6 min read
04Chapter 4: Which Way Does It Go? Transferring Algorithms and HardnessThis chapter assumes you know the definition of a many-one reduction from the previous chapter: a computable function f with x ∈ A if and only if f(x) ∈ B. It also assumes you can read basic proofs and follow short Python programs. The goal here is to get one fact right every time. When A reduces to6 min read
05Chapter 5: First Examples: Independent Set, Vertex Cover, and CliqueThis chapter assumes you know what a decision problem is, how a many-one reduction is defined, and why proving one correct takes two directions. All of these come from the earlier chapters. You also need basic graph vocabulary: vertices, edges, and subsets of vertices. The running time of reductions6 min read
06Chapter 6: Polynomial-Time ReductionsThis chapter assumes you know what a many-one reduction is and how to prove one correct in both directions. It also assumes Big-O notation, the idea of input length measured in bits, and the Independent Set, Vertex Cover, and Clique reductions from the previous chapter. Here we add one more requirem6 min read
07Chapter 7: Chaining Reductions TogetherThis chapter assumes you know what a many-one reduction is, how to argue both directions of its correctness, and what makes a reduction polynomial-time. It also assumes you have seen the Clique, Independent Set, and Vertex Cover reductions from the earlier chapter. You should be comfortable composin5 min read
08Chapter 8: NP as Problems with Checkable CertificatesThe earlier chapters treated reductions as tools for moving algorithms and hardness between problems. Before we can use them to classify problems as "hard," we need a precise class of problems to work inside. That class is NP. This chapter defines NP through certificates and verifiers, works through6 min read
09Chapter 9: NP-Hardness and NP-CompletenessThis chapter assumes you already know three things from earlier chapters. A polynomial-time (Karp) reduction A ≤p B is a function f, computable in polynomial time, with x ∈ A exactly when f(x) ∈ B. Reductions compose: if A ≤p B and B ≤p C, then A ≤p C. NP is the class of decision problems whose yes-6 min read
10Chapter 10: SAT and the Cook-Levin TheoremThis chapter assumes you already know three things from earlier chapters. You should know the class NP, defined as the problems whose yes-instances have certificates that can be checked in polynomial time. You should know polynomial-time (Karp) reductions. You should also know the definitions of NP-6 min read
11Chapter 11: Building Gadgets: Reducing 3-SAT to Independent SetThis chapter assumes you know what a many-one reduction is and how to prove one correct in both directions. It also assumes you know that 3-SAT is NP-complete (from the Cook-Levin chapter) and that Independent Set is in NP. You should be able to read Python that uses itertools.5 min read
12Chapter 12: Turing Reductions and OraclesThis chapter assumes you have read the earlier chapters on many-one reductions, polynomial-time reductions, and NP-completeness. It also assumes you can read simple Python and are comfortable with the Independent Set problem. A many-one reduction is limited in two ways: it asks the target problem on6 min read
13Chapter 13: Proving Undecidability by Reduction from the Halting ProblemThis chapter assumes you know what a many-one reduction is and how to check both directions of its correctness. It also assumes you understand why hardness transfers backward along a reduction, and that you have seen the halting problem described as undecidable. You do not need any automata theory b6 min read
14Chapter 14: From Yes/No Answers to Actual SolutionsThis chapter assumes you already know decision problems, Turing (oracle) reductions, NP, and NP-completeness from earlier chapters. You should also be able to read short Python functions. It deals with a practical gap. A decision procedure tells you whether a solution exists, but in practice you usu5 min read
15Chapter 15: Reductions in Practice: Encoding Problems for SAT Solvers, LP, and Max FlowThis chapter assumes you know many-one reductions, how their direction works, and the Cook-Levin theorem from earlier chapters. You should also be comfortable reading Python and know the basic definitions of conjunctive normal form (CNF) and flow networks.5 min read
16Chapter 16: Common Mistakes and How to Check a ReductionThis chapter assumes you have worked through the earlier chapters on many-one and polynomial-time reductions, NP-completeness, the 3-SAT to Independent Set gadget, and Turing reductions. You should be comfortable reading Python and brute-force search code.6 min read
17Chapter 17: Further Directions: Approximation-Preserving and Fine-Grained ReductionsThis chapter assumes you already know polynomial-time (Karp) reductions, NP-completeness, and the Independent Set and Vertex Cover reductions from earlier chapters. It also assumes you can read Big-O bounds such as O(n²) and O(2ⁿ). The goal here is a map rather than a full course. You will see two w6 min read