An Efficient Approximation Scheme for the One-Dimensional Bin-Packing Problem II: Geometric Grouping with Residual LP RoundingResearch Paper
Motivation
One-dimensional bin packing asks for the fewest unit-capacity bins that hold a given list of items with sizes in . Deciding whether two bins suffice is NP-hard (it contains the partition problem), so no polynomial-time algorithm guarantees a ratio below unless P = NP. The natural question is therefore asymptotic: how small can the additive error be made, as a function of the optimum ?
- 1974: D. S. Johnson, A. Demers, J. D. Ullman, M. R. Garey and R. L. Graham analysed First Fit and First Fit Decreasing, with asymptotic ratios and (SIAM J. Comput. 3(4)).
- 1981: W. Fernandez de la Vega and G. S. Lueker gave an asymptotic approximation scheme: for every , bins in linear time (Combinatorica 1).
- 1982: N. Karmarkar and R. M. Karp replaced the multiplicative error by an additive one: bins in polynomial time (Proc. 23rd FOCS). This mission formalizes that bound.
- 2017: R. Hoberg and T. Rothvoss improved the additive error to (SODA 2017). Whether is achievable remains open.
Its main device, geometric grouping followed by rounding a linear program over bin configurations, recurs in later additive results and in cutting-stock problems.
Setting
An instance is a finite multiset of piece sizes in the open interval . Write for the number of pieces, for the number of distinct sizes, for the total size and for the smallest size. A packing is a multiset of bins whose union is and in each of which the sizes sum to at most ; its cost is the number of bins, and is the least cost.
A configuration is a nonempty multiset of sizes occurring in that fits in one bin. The fractional bin-packing problem is the linear program
with one variable per configuration, where counts the pieces of size in configuration and the pieces of size in . Its value is . A basic feasible solution is an extreme point of the feasible region.
Geometric grouping with parameter sorts the pieces in non-increasing order and cuts them into consecutive groups , each the shortest run of pieces of total size at least . Within each group () only as many of the largest pieces as has are kept; they are rounded up to the largest size in , giving . The rounded pieces form , and together with the unrounded leftovers form .
ALGORITHM 2 with a positive integer and a positive real :
- Eliminate all pieces of size .
- While : group the current instance into ; pack in at most bins; obtain a basic feasible solution of the LP of with cost at most ; open bins of each configuration , fill them with pieces, and delete the pieces so packed.
- Pack the remaining pieces in at most bins.
- Reinsert the eliminated pieces, using a new bin only when necessary.
Its cost on is written .
Formalization targets
Goal: Theorem 4 with explicit constants
For every instance with , every packing that ALGORITHM 2 with and can output is a packing of with
This is the paper's , with the constants that its proof yields.
The general bound for ALGORITHM 2
For integers , and :
Milestones
In attack order: Lemmas 1–3; Theorem 2 (items 1–3, the bound on , item 4 corrected); the per-iteration shrinking of ; the bound on the number of iterations; the telescoping of ; the bin count after Step 3; the general bound.
Significance
The bound gives a polynomial-time algorithm whose additive error is polylogarithmic in the optimum, hence a fully polynomial asymptotic approximation scheme (). Varying and trades running time for error, as the paper notes after Theorem 4. The scheme of solving the rounded LP, keeping its integer part and re-grouping the residual is reused by later additive results, including the bound of Hoberg and Rothvoss.
The result has been proved since 1982. No machine-checked proof of it, or of any bin-packing approximation guarantee of this kind, is known to exist in Lean or Mathlib. The mission produces a formal version whose hypotheses and constants are explicit. It also corrects two printed statements whose published forms are false: Theorem 2, item 4, and the chain of inequalities in the analysis that relies on it. The corrections are disclosed in the statements.
Difficulty
Rounding a single LP solution does not suffice. A basic solution of the configuration LP has at most fractional variables, and after rounding down, the leftover pieces form an instance of size at most . With linear grouping that leftover is of order and costs a constant factor. The difficulty is making the residual shrink geometrically. Geometric grouping must produce an instance with distinct sizes while discarding only in . The residual must then be re-grouped and re-solved. Each step must be accounted for simultaneously in , and , with an additive loss per iteration; the harmonic-sum estimate behind and the telescoping of across iterations carry most of the weight.
Formalization scope
- Model. An instance is a
Multiset ℝwith sizes in the open interval ; real sizes generalize the paper's rationals, and the interval is open because a group of size at least must contain more than pieces. Packings areMultiset (Multiset ℝ). and are infima over nonempty sets. LP solutions are finitely supported functions on configurations; "basic" means extreme point. - Subroutine contract. The Fractional Bin-Packing procedure is modelled only by its stated output: any basic feasible solution of cost at most . The ellipsoid method of §6 is not modelled.
- Runs. ALGORITHM 2 is a relation
Alg2Run k g I P, witnessed by a trace. Every bound holds for every run: every admissible subroutine output, every packing at Steps 2 and 3 within the prescribed counts, every choice of pieces for the principal bins (which must fill every available slot), and every order of the Step 4 insertion. A separate well-definedness item states that a run exists, so the bounds are not vacuous. - Explicit constants. in Theorem 4 is replaced by . The asymptotic threshold is made explicit as . is
Real.logand isReal.logb 2. - Corrected statements. The last group of geometric grouping may fall short of , which the paper ignores. For it, consists of the smallest pieces. Theorem 2, item 4 is stated as ; the printed version without fails for , . Theorem 2 is stated for integers , which its proof needs. The iteration bound is stated for and for the instance after Step 1.
- Out of scope. Running times, polynomiality, the function , the number of subroutine calls, §6, ALGORITHM 3 and Theorem 5.
- Ruling out trivial versions. "There exists a packing with at most bins" is trivially true and is not the goal. The goal bounds every output of the algorithm, and the existence item shows that outputs exist.
Contributions welcome: milestone proofs; a harmonic-sum bound ; extreme-point facts for (at most as many nonzero coordinates as rows; an optimal extreme point exists), reusable beyond bin packing; monotonicity of and under the piecewise order.
Selected references
- N. Karmarkar, R. M. Karp, An Efficient Approximation Scheme for the One-Dimensional Bin-Packing Problem, Proc. 23rd Annual Symposium on Foundations of Computer Science (SFCS 1982), IEEE, pp. 312–320, 1982. https://doi.org/10.1109/SFCS.1982.61
- W. Fernandez de la Vega, G. S. Lueker, Bin packing can be solved within 1 + ε in linear time, Combinatorica 1(4), 349–355, 1981. https://doi.org/10.1007/BF02579456
- D. S. Johnson, A. Demers, J. D. Ullman, M. R. Garey, R. L. Graham, Worst-case performance bounds for simple one-dimensional packing algorithms, SIAM J. Comput. 3(4), 299–325, 1974. https://doi.org/10.1137/0203025
- R. Hoberg, T. Rothvoss, A Logarithmic Additive Integrality Gap for Bin Packing, Proc. 28th ACM-SIAM SODA, 2616–2625, 2017. https://doi.org/10.1137/1.9781611974782.172