Reduce Partition to Bin Packing and Locate the 3/2 Barrier
Map an equal-split question onto bins of capacity S/2, trap the optimum in the gap 2 or 3, and read off the absolute inapproximability constant.
Problem
BIN-PACKING receives items , a bin capacity , and asks for the smallest number of capacity- bins holding every item. Reduce PARTITION to it by taking with , prove that the produced instances always have optimum or , and deduce that no polynomial-time algorithm achieves absolute approximation ratio below unless . State precisely which ratio the barrier constrains.
Prerequisites
Know the unit definitions and how resources are measured against encoded input length. Distinguish a conditional theorem, a reduction, and an algorithm. Distinguish an absolute approximation ratio from an asymptotic one.
Hint 1
With capacity the two bins of a legal two-bin packing have no slack at all.
Hint 2
In a First-Fit packing, any two bins together hold more than .
Hint 3
If the optimum only ever takes the values and , a ratio strictly below separates them by integrality alone.
Partition → Bin Packing and the 3/2 barrier
Full solution
The reduction. Given a multiset of positive integers with , first dispose of two degenerate cases. If is odd there is no equal split, and if some that item cannot lie inside a part of sum ; in either case output a fixed no-instance. Otherwise output the bin-packing instance with the same items, capacity , and bin budget . Computing and comparing it against each takes polynomially many binary operations, and no number grows, so the mapping is polynomial.
Correctness. The items total . If splits into two parts of sum , each part is exactly one full bin, so two bins suffice. Conversely, if two bins of capacity hold items of total , neither bin can carry less than without pushing the other above , so each carries exactly and the two bins exhibit an equal split. Hence
The gap. On every instance the reduction produces, the optimum lies in .
Lower bound: the items total , so one bin never suffices, giving , with equality exactly when the partition exists.
Upper bound: run First-Fit. Fix two bins of its output and let be the first item placed in bin . When was placed, bin already existed and did not fit into it, so the contents of bin at that moment plus exceeded . Contents never shrink, so the final loads satisfy . If First-Fit used four or more bins, pairing and would give total load greater than , contradicting the fact that the items total exactly . Therefore First-Fit uses at most three bins and .
The barrier. Suppose some polynomial-time algorithm has absolute approximation ratio , meaning it outputs at most bins on every instance. Run it on a Partition-derived instance. If then outputs at most bins; bin counts are integers and no algorithm beats the optimum, so it outputs exactly . If then outputs at least . Reading the returned bin count therefore decides PARTITION in polynomial time, and PARTITION is NP-complete, so . Contrapositively, unless no polynomial-time algorithm has absolute ratio below .
A worked pair. Take , the multiset produced by the Subset Sum to Partition reduction. Here , , and and each sum to , so . Change one item, , and has , , and no subset at all of sum ; exhaustive search over every assignment of six items to bins confirms . First-Fit in the listed order returns loads with pairwise sums , all above , which is exactly the pairwise property that forbids a fourth bin.
What still beats it. The barrier constrains the absolute ratio and nothing else, and the following coexist with it without contradiction.
- First-Fit uses at most bins, because two bins each at most half full would contradict the pairwise property, so at most one bin is half empty. Its tight asymptotic ratio is . It is not a decision procedure: on in the listed order it opens three bins although .
- First-Fit-Decreasing satisfies , and its absolute ratio is exactly . It meets the barrier and does not cross it. On it does find the optimal packing and .
- There is an asymptotic PTAS: for every a polynomial-time algorithm packs into bins. The Karmarkar–Karp algorithm packs into bins.
Neither asymptotic guarantee contradicts the barrier, because both allow an additive term that dominates precisely on the tiny instances the reduction produces, where . Saying "bin packing cannot be approximated below " without the word absolute is therefore false.
Checkpoints
Check both logical directions, halting of every relevant branch, and that output length and construction time are polynomial in the encoded input length. Check additionally that the degenerate cases odd and are answered before the mapping runs, and that every approximation claim names the ratio it constrains.
Common mistakes
- Concluding that bin packing is inapproximable below in the asymptotic sense as well; the asymptotic PTAS and Karmarkar–Karp refute that reading.
- Forgetting the guard , which leaves an item that fits in no bin at all.
- Using alone and never proving , which is what makes the gap two-valued.
- Treating First-Fit as a decision procedure for PARTITION because it satisfies .
Sources and verification
- Garey-Johnson, SR1 (bin packing)
- Lecture 9 First-Fit questions in data/canonical_questions.json
- Corpus coverage note: lecture 9 asks directly about First-Fit bin packing (CQ-0199, CQ-0211, CQ-0212, CQ-0224); the barrier itself is textbook material and is not stated in the merged summary.
- Catalog mapping:
data/exercises.json; statements and solutions are independently written; personal submissions are non-authoritative.
Provenance and confidence
The exercise is an original synthesis. Confidence reflects verification of the mathematical claim against the textbook sources listed above; course sources are used only where direct coverage is identified. Every displayed number was recomputed by brute force before it was written down.
Open in the visualization gallery: Partition → Bin Packing and the 3/2 barrier