Skip to main content
Log in

Bin packing: On optimizing the number of pieces packed

  • Part I Computer Science
  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

Abstract

We consider bin-packing variations related to the well-studied problem of maximizing the total number of pieces packed into a fixed set of bins. We show that, when the objective is to minimize the total number of pieces packed subject to the constraint that no unpacked piece will fit, no polynomial-time relative approximation algorithm exists (unless, of course,P=NP). That is, we prove that it isNP-hard to guarantee packing no more than a constant multiple of the optimal number of pieces, for any constant. This appears to be the first bin-packing problem for which this property has been demonstrated. Furthermore, this result also holds for the allied packing variant which seeks to minimize the maximum number of pieces packed in any single bin. We find the situation to be markedly better for the problem of maximizing the minimum number of pieces in any bin. If all bins possess the same capacity, we prove that the familiar SPF rule is an absolute approximation algorithm with additive constant 1, and can therefore be regarded as a best possible heuristic. For the more general and difficult case in which bin capacities may differ, it turns out that SPF fails to qualify as even a relative approximation algorithm. However, we devise an implementation of the well-known FFD heuristic, which we show to be a relative approximation algorithm, yielding a worst-case performance ratio of 1/2 with additive constant 0. Moreover, we prove that (unlessP=NP) no polynomial-time algorithm can guarantee a higher ratio without sacrificing the additive constant.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. E. G. Coffman Jr., M. R. Garey and D. S. Johnson,Approximation algorithms for bin packing — an updated survey, inAlgorithm Design for Computer Systems Design (G. Ausiello, M. Lucertini, P. Serafini, editors), Springer-Verlag (1984), 49–106.

  2. E. G. Coffman Jr. and M. A. Langston,A performance guarantee for the greedy setpartitioning algorithm, Acta Informatica 21 (1984), 409–415.

    Article  Google Scholar 

  3. E. G. Coffman Jr. and J. Y.-T. Leung,Combinatorial analysis of an efficient algorithm for processor and storage allocation, SIAM J. Comput. 8 (1979), 202–217.

    Article  Google Scholar 

  4. E. G. Coffman Jr., J. Y.-T. Leung and D. W. Ting,Bin packing: maximizing the number of pieces packed, Acta Informatica 9 (1978), 263–271.

    Article  Google Scholar 

  5. D. K. Friesen and F. S. Kuhl,Analysis of a hybrid algorithm for packing unequal-sized bins, SIAM J. Comput., to appear.

  6. D. K. Friesen and M. A. Langston,Variable sized bin packing, SIAM J. Comput. 15 (1986), 222–230.

    Article  Google Scholar 

  7. id., Analysis of a compound bin-packing algorithm, to appear.

  8. M. R. Garey and D. S. Johnson,Computers and Intractability: A Guide to the Theory of NP-Completeness, W. H. Freeman and Co. (1979).

  9. E. Horowitz and S. Sahni,Fundamentals of Computer Algorithms, Computer Science Press (1979).

  10. N. Karmarkar and R. M. Karp,The differencing method of set partitioning, to appear.

  11. M. A. Langston,Performance of heuristics for a computer resource allocation problem, SIAM J. Alg. Disc. Meth. 5 (1984), 154–161.

    Google Scholar 

  12. id., A study of composite heuristic algorithms, J. Oper. Res. Soc., to appear.

  13. C. H. Papadimitriou and K. Steiglitz,Combinatorial Optimization: Algorithms and Complexity, Prentice-Hall (1982).

Download references

Author information

Authors and Affiliations

Authors

Additional information

This author's research is supported in part by the National Science Foundation under grants ECS-8403859 and MIP-8603879.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Friesen, D.K., Langston, M.A. Bin packing: On optimizing the number of pieces packed. BIT 27, 148–156 (1987). https://doi.org/10.1007/BF01934179

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01934179

CR Categories

Keywords

Navigation