
374 Joachim Gehweiler and Friedhelm Meyer auf der Heide
Analogously, for the second input sequence, we perceive that the number of
the boxes used (see (38.2)) is strictly less than
4
3
times the number of boxes
required for an optimal solution (2 · x). Formally:
2 · x + b
2
<
4
3
(2 · x) ⇒ b
2
<
2
3
· x. (38.4)
Now we end up in a contradiction because, as of (38.3)and(38.4), b
2
would
have to be both strictly less and strictly greater than
2
3
· x at the same time,
which is impossible. Thus, our assumption must have been wrong, and we
have proven:
Theorem 1
There is no α-competitive online algorithm for the bin packing problem with
α<
4
3
.
Now, knowing that even the best possible online strategy for bin packing
cannot be better than
4
3
-competitive, the 1.7-competitive strategy FirstFit
appears in a much more positive light. Okay, people, let’s get packing!
A further application for bin packing is, for example, to assign files to CDs
when backing up a huge amount of data. In this case, the above-described
strategies can even be applied directly, i.e., we don’t have to make simplify-
ing assumptions as there is no “clipping” problem when dealing with (one-
dimensional) data streams.
Further Reading
1. http://www-cg-hci-f.informatik.uni-oldenburg.de/
∼
da/iva/baer/
start/bin1.html
This Java applet interactively illustrates how the FirstFit algorithm
works.
2. D. Johnson: Fast algorithms for bin packing. Journal of Computer and
System Sciences 8 (1974), pp. 272–314.
This is the first publication on online bin packing.
3. S. Seiden: On the online bin packing problem.In:Proceedings of the
28th International Colloquium on Automata, Languages and Program-
ming (July 2001), Springer, pp. 237–249.
The best algorithm for online bin packing known so far (Harmonic++),
which is 1.58889-competitive, is introduced in this article.
4. A. van Vliet: An improved lower bound for online bin packing algorithms.
Information Processing Letters 43, 5 (October 1992), pp. 277–284.
In this article the value for α in Theorem 1 is improved from
4
3
to 1.5401.