>catreducibility-among-combinatorial-problems.md

Reducibility Among Combinatorial Problems

Karp's 1972 paper on 21 NP-complete problems, and what his reductions still do for algorithms and complexity theory

date

Richard Karp’s 1972 paper ‘Reducibility Among Combinatorial Problems’ established NP-completeness as the unifying notion for hard problems. Building on Cook’s theorem, Karp showed how hardness could be carried from one domain to another, giving polynomial-time many-one reductions that carry the hardness of SAT through a list of 21 natural problems (e.g. Clique, Vertex Cover, Hamiltonian Cycle, Set Cover).

The construction

Karp constructed explicit polynomial-time mappings x↦f(x)x \mapsto f(x) from one problem to another, such that

x∈SOURCE  ⟺  f(x)∈TARGETx \in \text{SOURCE} \iff f(x) \in \text{TARGET}

where ff is computable in polynomial time. Only a few of the reductions start from SAT itself, a problem already known to be NP-complete; most go from one of the other problems to the next, in a tree rooted at SAT. Because such reductions chain, each problem in the tree inherits NP-hardness. The network of reductions the paper laid down remains the canonical one in complexity theory.

What the reductions show

The 21 problems showed that combinatorial problems of very different kinds fall into equivalence classes under polynomial reduction, and the classification has a practical consequence. Membership in the NP-complete class indicates that, unless P = NP, a general polynomial-time algorithm is not to be had, and that the work must go instead into approximation algorithms, heuristics, parameterised approaches or the exploitation of special structure. The reductions also expose deep connections between domains that look unrelated (graph theory, satisfiability, combinatorial optimisation), so that algorithmic techniques and methods for proving lower bounds pass from one to another. Not least, the paper fixed the standard form of a hardness proof: a polynomial-time reduction from a known NP-complete problem, built from gadgets designed to preserve the structure of solutions.

The method is still fundamental to complexity theory. New variants of problems and domain-specific formulations are shown to be hard by systematic reduction; inapproximability results come from gap-preserving reductions, and fine-grained lower bounds from reductions conditioned on ETH and SETH. Less obviously, the same constructions inform how constraints are encoded in practice, where what is learnt from reductions guides the design of SAT and ILP formulations and their integration with solvers.

A scheduling encoding

Consider a job scheduling problem with machine conflicts, time windows and precedence constraints. Contemporary SAT, SMT and ILP encodings of such a problem employ techniques analogous to Karp’s constructions:

  1. Add Boolean variables xj,tx_{j,t} meaning ‘job jj starts at time tt’.
  2. Enforce a single start: for each job, forbid two distinct start times with clauses ¬xj,t∨¬xj,t′\lnot x_{j,t} \lor \lnot x_{j,t'} for t≠t′t \neq t'.
  3. Enforce machine capacity: for each machine and each pair of overlapping times, add clauses that prevent two jobs from occupying the machine at once.
  4. Encode precedence: if aa precedes bb, require bb to start after aa finishes, by means of implication clauses or linear constraints.

The encoding is a reduction in the opposite direction, from scheduling to SAT, and so says nothing about how hard scheduling is; that is known separately, from classical reductions into scheduling. What the encoding gives is access to efficient solver implementations. In this it shows the double use of Karp’s method, in which a reduction is at once a proof of hardness and a practical framework for encoding.