the gap between OPT = 2 and OPT = 3

PARTITION ≤p BIN-PACKING-OPT

If a polynomial algorithm for bin packing achieves an absolute approximation ratio below 32\tfrac32 — in particular ratio 1.491.49 — then P=NP\mathrm{P}=\mathrm{NP}.

The construction

Where the 3/23/2 comes from. The reduction PARTITION≤pBIN-PACKING\mathrm{PARTITION}\le_p\mathrm{BIN\text{-}PACKING} produces an instance whose items sum to exactly 22, each in (0,1](0,1]. On such an instance:

  • OPT≥2\mathrm{OPT}\ge2 always, since bin capacity is 11 and the items total 22, so two bins is the least possible;
  • OPT=2\mathrm{OPT}=2 if and only if an equal split exists — i.e. iff the original instance is in PARTITION\mathrm{PARTITION};
  • otherwise OPT≥3\mathrm{OPT}\ge3.

So the optimum takes only one of two values, 22 or 33, and telling them apart is equivalent to deciding PARTITION\mathrm{PARTITION}. This is a classical "gap": the intermediate values are empty.

The algorithm. Suppose for contradiction an approximation AA exists with absolute ratio ρ<32\rho<\tfrac32. Build a decider for PARTITION\mathrm{PARTITION}:

  1. On input (a1,…,an)(a_1,\dots,a_n), run the reduction PARTITION≤pBIN-PACKING\mathrm{PARTITION}\le_p\mathrm{BIN\text{-}PACKING} to get an instance (b1,…,bn)(b_1,\dots,b_n) summing to 22.
  2. Run AA on it, obtaining a bin count ALG\mathrm{ALG}.
  3. If ALG≤2\mathrm{ALG}\le2 — accept; otherwise — reject.

Visualization

Guided construction

Bin packing: the 3/2 absolute barrier

Step 1 of 7
bᵢ = 2aᵢ/S · Σbᵢ = 2 · bᵢ ∈ (0,1] · capacity 1
Two normalized bin-packing instances totalling two, and the integer axis on which the optimum is either two or threeOn the left a yes-instance whose six items split into two bins filled exactly to capacity one; on the right a no-instance needing three bins with visible slack. Below, an axis marked only at whole numbers shows the optimum at two or three, the empty band between them, and the value 2 rho equal to 2.98 collapsing down to 2.Normalized items, bᵢ = 2aᵢ/S, total 20.060.100.120.220.780.72A ∈ PARTITIONA = {3, 5, 6, 11, 39, 36}, S = 100capacity = 10.060.080.120.240.780.72A″ ∉ PARTITIONA″ = {3, 4, 6, 12, 39, 36}, S = 100capacity = 1
Normalized item bᵢBin capacity 1

Correctness — both directions

PARTITION ∈ ⟹ BIN-PACKING-OPT ∈

Suppose (a1,…,an)∈PARTITION(a_1,\dots,a_n)\in\mathrm{PARTITION}. By correctness of the reduction the constructed instance packs into two bins, i.e. OPT=2\mathrm{OPT}=2.

Since AA is a ρ\rho-approximation for a minimization problem, ALG  ≤  ρ⋅OPT  =  2ρ  <  2⋅32  =  3.\mathrm{ALG}\;\le\;\rho\cdot\mathrm{OPT}\;=\;2\rho\;<\;2\cdot\tfrac32\;=\;3 . The bin count is an integer, and ALG<3\mathrm{ALG}<3 forces ALG≤2\mathrm{ALG}\le2. So step 3 accepts.

This is where integrality of the bin count does all the work: the gap between 22 and 33 cannot be bridged by an intermediate value.

BIN-PACKING-OPT ∈ ⟹ PARTITION ∈

Suppose (a1,…,an)∉PARTITION(a_1,\dots,a_n)\notin\mathrm{PARTITION}. By correctness of the reduction the constructed instance does not pack into two bins, and since OPT≥2\mathrm{OPT}\ge2 always, OPT≥3\mathrm{OPT}\ge3.

An approximation algorithm returns a feasible solution, i.e. a legal packing, and a legal packing cannot use fewer bins than the optimum. So ALG  ≥  OPT  ≥  3  >  2,\mathrm{ALG}\;\ge\;\mathrm{OPT}\;\ge\;3\;>\;2 , and step 3 rejects.

Conclusion. The algorithm decides PARTITION\mathrm{PARTITION} in polynomial time (the reduction is polynomial, AA is polynomial by definition, the comparison is constant). But PARTITION\mathrm{PARTITION} is NP-hard, so NP⊆P\mathrm{NP}\subseteq\mathrm{P}, i.e. P=NP\mathrm{P}=\mathrm{NP}.

Cost of the reduction

TimeO(|x|²) plus one call to A
SpaceO(|x|)
Output sizeO(|x|)

The cost is exactly that of the reduction PARTITION≤pBIN-PACKING\mathrm{PARTITION}\le_p\mathrm{BIN\text{-}PACKING} (O(∣x∣2)O(|x|^2)), plus a single call to AA and one comparison.

What it buys

No polynomial algorithm for bin packing achieves an absolute ratio better than 32\tfrac32, unless P=NP\mathrm{P}=\mathrm{NP}. Note this does not contradict the First-Fit algorithm at ratio 22, nor asymptotic approximation schemes — the result bounds the absolute ratio only, and that distinction is the whole point.

Pitfalls

  • Absolute versus asymptotic ratio. The result rests entirely on instances with OPT∈{2,3}\mathrm{OPT}\in\{2,3\} — small numbers. An asymptotic ratio concerns behaviour as OPT→∞\mathrm{OPT}\to\infty, where this bound says nothing. Conflating the two is the standard mistake on this question.

  • Integrality of the bin count is the critical step. ALG<3\mathrm{ALG}<3 forces ALG≤2\mathrm{ALG}\le2 only because bin counts are integers. For a minimization problem with continuous values the same argument would fail — which is why this barrier belongs specifically to bin packing.

The chain

Where this was read from

  • Lesson 25תרגיל 7: קירוב 1.491.49 ל-BIN-PACKING\mathrm{BIN\text{-}PACKING} גורר P=NP\mathrm{P}=\mathrm{NP}
  • Lesson 12משפט 5 (בונוס של אותה הוכחה): BIN-PACKING\mathrm{BIN\text{-}PACKING} נשארת NP-hard גם כאשר k=2k=2 קבוע
  • Guided exercisebin-packing-approximation