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 . This is not an impossibility bound for other algorithms: the asymptotic approximation scheme of Fernandez
de la Vega and Lueker (1981) achieves
bins for every fixed
, where
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 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
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
and an unconditional configuration linear programming
gap of
. The additive
term divided by
tends to zero as
in little-O notation.
Here
denotes the iterated logarithm. Item sizes
may lie arbitrarily close to
while remaining between
and
. 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.