TOPICS
Search

Bin-Packing Problem


The bin-packing problem asks for a packing of a set of items into a number of bins such that the total weight, volume, etc. does not exceed some maximum value. A simple algorithm (the first-fit algorithm) takes items in the order they come and places them in the first bin in which they fit. In 1973, J. Ullman proved that this algorithm can differ from an optimal packing by as much at 70% (Hoffman 1998, p. 171). An alternative strategy first orders the items from largest to smallest, then places them sequentially in the first bin in which they fit. The asymptotic worst-case ratio of this first-fit decreasing strategy is 11/9. This is not an impossibility bound for other algorithms: the asymptotic approximation scheme of Fernandez de la Vega and Lueker (1981) achieves (1+epsilon)OPT+O_epsilon(1) bins for every fixed epsilon>0, where OPT is the minimum number of bins (Doron-Arad 2026).

There exist arrangements of items such that applying the packing algorithm after removing an item results in one more bin being required than the number obtained if the item is included (Hoffman 1998, pp. 172-173). The first such example was constructed by Sylvia Halasz and published in Graham (1976, pp. 223 and 225, Fig. 5.46).

OpenAI (2026) proved arbitrarily large additive gaps between OPT and both the item-type and individual-copy configuration linear programming optima. Approximation within any fixed additive constant is NP-hard even when all item sizes exceed 1/6 of bin capacity, so each bin holds at most five items. Doron-Arad (2026) reports stronger additive bounds with at most three items per bin: NP-hardness within o(log^*OPT) and an unconditional configuration linear programming gap of Omega(log^*OPT). The additive o(log^*OPT) term divided by log^*OPT tends to zero as OPT->infty in little-O notation. Here log^* denotes the iterated logarithm. Item sizes may lie arbitrarily close to 1/3 while remaining between 1/4 and 1/2. A polynomial time reduction for the individual-copy configuration relaxation, whose variables index subsets of actual items, transfers its general additive gap to this class up to an absolute multiplicative factor and additive constant. These conclusions build on OpenAI's construction. Doron-Arad credits ChatGPT with developing the results and proofs through dialogue.


See also

Cookie-Cutter Problem, Skiving Stock Problem, Tiling Problem

Explore with Wolfram|Alpha

References

Albers, S. and Mitzenmacher, M. "Average-Case Analyses of First Fit and Random Fit Bin Packing." Random Structures Alg. 16, 240-259, 2000.Coffman, E. G. Jr.; Garey, M. R.; and Johnson, D. S. "Approximation Algorithms for Bin-Packing--An Updated Survey." In Algorithm Design for Computer System Design. Vienna, Austria: Springer-Verlag, pp. 49-106, 1984.Doron-Arad, I. "Additive Omega(log^*OPT) Gap for Bin Packing with Three Items per Bin." 6 Nov 2026. https://arxiv.org/abs/2611.09447.Fernandez de la Vega, W. and Lueker, G. S. "Bin Packing Can Be Solved within 1+epsilon in Linear Time." Combinatorica 1, 349-355, 1981. https://doi.org/10.1007/BF02579456.Garey, M. R.; Graham, R. L.; and Ullman, J. D. "An Analysis of Some Packing Algorithms." In Combinatorial Algorithms. New York: Algorithmics Press, pp. 39-47, 1973.Graham, R. L. "Bounds on Performance of Scheduling Algorithms." In Computer and Job-Shop Scheduling Theory (Ed. E. G. Coffman Jr.). New York: Wiley, pp. 165-227, 1976.Hoffman, P. The Man Who Loved Only Numbers: The Story of Paul Erdős and the Search for Mathematical Truth. New York: Hyperion, 1998.Johnson, D. S. "Approximation Algorithms for Combinatorial Problems." In Fifth Annual ACM Symposium on Theory of Computing (Austin, Tex., 1973). New York: Assoc. Comput. Mach., pp. 38-49, 1973.Johnson, D. S. "Approximation Algorithms for Combinatorial Problems." In J. Comput. System Sci. 9, 256-278, 1974.OpenAI. "Additive Hardness and Unbounded Configuration Gaps in Bin Packing." Sep. 24, 2026. https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Additive-hardness-and-unbounded-configuration-gaps-in-bin-packing-September-24-2026/Additive-hardness-and-unbounded-configuration-gaps-in-bin-packing-September-24-2026.pdf.

Referenced on Wolfram|Alpha

Bin-Packing Problem

Cite this as:

Weisstein, Eric W. "Bin-Packing Problem." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Bin-PackingProblem.html

Subject classifications