skip to main content
article

On the Sum-of-Squares algorithm for bin packing

Published:01 January 2006Publication History
Skip Abstract Section

Abstract

In this article we present a theoretical analysis of the online Sum-of-Squares algorithm (SS) for bin packing along with several new variants. SS is applicable to any instance of bin packing in which the bin capacity B and item sizes s(a) are integral (or can be scaled to be so), and runs in time O(nB). It performs remarkably well from an average case point of view: For any discrete distribution in which the optimal expected waste is sublinear, SS also has sublinear expected waste. For any discrete distribution where the optimal expected waste is bounded, SS has expected waste at most O(log n). We also discuss several interesting variants on SS, including a randomized O(nB log B)-time online algorithm SS* whose expected behavior is essentially optimal for all discrete distributions. Algorithm SS* depends on a new linear-programming-based pseudopolynomial-time algorithm for solving the NP-hard problem of determining, given a discrete distribution F, just what is the growth rate for the optimal expected waste.

References

  1. Albers, S., and Mitzenmacher, M. 1998. Average-case analyses of first fit and random fit bin-packing. In Proceedings of the 9th Annual ACM-SIAM Symposium on Discrete Algorithms. SIAM, Philadelphia, PA, 290--299.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Alon, N., and Spencer, J. H. 1992. The Probabilistic Method. Wiley Interscience, New York, NY.]]Google ScholarGoogle Scholar
  3. Applegate, D. L., Buriol, L., Dillard, B., Johnson, D. S., and Shor, P. W. 2003. The cutting-stock approach to bin-packing: Theory and experiments. In Proceedings of the 5th Workshop on Algorithm Engineering and Experimentation. SIAM, Philadelphia, PA, 1--15.]]Google ScholarGoogle Scholar
  4. Coffman, Jr., E. G., Courcoubetis, C., Garey, M. R., Johnson, D. S., McGeoch, L. A., Shor, P. W., Weber, R. R., and Yannakakis, M. 1991. Fundamental discrepancies between average-case analyses under discrete and continuous distributions. In Proceedings of the 23rd Annual ACM Symposium on Theory of Computing. ACM, New York, 230--240.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Coffman, Jr., E. G., Courcoubetis, C., Garey, M. R., Johnson, D. S., Shor, P. W., Weber, R. R., and Yannakakis, M. 2000. Bin packing with discrete item sizes, Part I: Perfect packing theorems and the average case behavior of optimal packings. SIAM J. Disc. Math. 13, 384--402.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Coffman, Jr., E. G., Courcoubetis, C., Garey, M. R., Johnson, D. S., Shor, P. W., Weber, R. R., and Yannakakis, M. 2002. Perfect packing theorems and the average-case behavior of optimal and online bin-packing. SIAM Review 44, 95--108. (Updated version of Coffman, Jr. et al. {200}).]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Coffman, Jr., E. G., Johnson, D. S., McGeoch, L. A., Shor, P. W., and Weber, R. R. 2005. Bin packing with discrete item sizes, Part III: Average case behavior of FFD and BFD. In preparation.]]Google ScholarGoogle Scholar
  8. Coffman, Jr., E. G., Johnson, D. S., Shor, P. W., and Weber, R. R. 1993. Markov chains, computer proofs, and average-case analysis of Best Fit bin-packing. In Proceedings of the 25th Annual ACM Symposium on Theory of Computing. ACM, New York, 412--421.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Coffman, Jr., E. G., Johnson, D. S., Shor, P. W., and Weber, R. R. 1997. Bin packing with discrete item sizes, Part II: Tight bounds on first fit. Rand. Struct. Alg. 10, 69--101.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Courcoubetis, C., and Weber, R. R. 1990. Stability of online bin-packing with random arrivals and long-run average constraints. Prob. Eng. Inf. Sci. 4, 447--460.]]Google ScholarGoogle ScholarCross RefCross Ref
  11. Csirik, J., Johnson, D. S., and Kenyon., C. 2001. Better approximation algorithms for bin covering. In Proceedings of the 12th Annual ACM-SIAM Symposium on Discrete Algorithms. SIAM, Philadelphia, PA, 557--566.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Csirik, J., Johnson, D. S., and Kenyon, C. 2005. On the worst-case performance of the sum-of-squares algorithm for bin-packing. E-Print arXiv:cs.DS/0509031, arXiv.org e-Print archive (http://arxiv.org/archive/cs).]]Google ScholarGoogle Scholar
  13. Csirik, J., Johnson, D. S., Kenyon, C., Shor, P. W., and Weber, R. R. 1999. A self organizing bin-packing heuristic. In Proceedings 1999 Workshop on Algorithm Engineering and Experimentation, M. Goodrich and C. C. McGeoch, Eds. Lecture Notes in Computer Science, vol. 1619, Springer-Verlag, Berlin, Germany, 246--265.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Garey, M. R., and Johnson, D. S. 1979. Computers and Intractability: A Guide to the Theory of NP-completeness. Freeman, New York.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Gilmore, P. C., and Gomory, R. E. 1961. A linear programming approach to the cutting stock problem. Oper. Res. 9, 849--859.]]Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Gilmore, P. C., and Gomory, R. E. 1963. A linear programming approach to the cutting stock program---Part II. Oper. Res. 11, 863--888.]]Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. Grötschel, M., Lovasz, L., and Schrijver, A. 1981. The ellipsoid method and its consequences in combinatorial optimization. Combinatorica 1, 169--197.]]Google ScholarGoogle ScholarCross RefCross Ref
  18. Hajek, B. 1982. Hitting-time and occupation-time bounds implied by drift analysis with applications. Adv. Appl. Prob. 14, 502--525.]]Google ScholarGoogle ScholarCross RefCross Ref
  19. Johnson, D. S., Demers, A., Ullman, J. D., Garey, M. R., and Graham, R. L. 1974. Worst-case performance bounds for simple one-dimensional packing algorithms. SIAM J. Comput. 3, 299--325.]]Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. Karmarkar, N., and Karp, R. M. 1982. An efficient approximation scheme for the one-dimensional bin-packing problem. In Proceedings of the 23rd Annual IEEE Symposium on Foundations of Computer Science. IEEE Computer Society, Los Alamitos, Calif., 312--320.]]Google ScholarGoogle Scholar
  21. Karp, R. M., and Papadimitriou, C. H. 1982. On the linear characterization of combinatorial optimization problems. SIAM J. Comput. 11, 620--632.]]Google ScholarGoogle ScholarCross RefCross Ref
  22. Kenyon, C., and Mitzenmacher, M. 2002. Linear waste of best fit bin-packing on skewed distributions. Random Structures and Algorithms 20, 441--464. (Preliminary version in Proceedings of the 41st Annual IEEE Symposium on Foundations of Computer Science. IEEE Computer Society, Las Alamitos, CA, 2000, 582--589.)]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. Kenyon, C., Rabani, Y., and Sinclair, A. 1998. Biased random walks, Lyapunov functions, and stochastic analysis of best fit bin-packing. J. Algorithms 27, 218--235. (Preliminary version in Proceedings of the 7th Annual ACM-SIAM Symposium on Discrete Algorithms. SIAM, Philadelphia, PA, 1996, 351--358.)]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. Rhee, W. T. 1988. Optimal bin-packing with items of random sizes. Math. Oper. Res. 13, 140--151.]]Google ScholarGoogle ScholarCross RefCross Ref
  25. Rhee, W. T., and Talagrand, M. 1993a. On line bin-packing with items of random size. Math. Oper. Res. 18, 438--445.]]Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. Rhee, W. T., and Talagrand, M. 1993b. On line bin-packing with items of random sizes---II. SIAM J. Comput. 22, 1251--1256.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  27. Vaidya, P. M. 1989. Speeding-up linear programming using fast matrix multiplication. In Proceedings of the 30th Annual IEEE Symposium on Foundations of Computer Science. IEEE Computer Society, Los Alamitos, CA, 332--337.]]Google ScholarGoogle ScholarDigital LibraryDigital Library
  28. Valério de Carvalho, J. M. 1999. Exact solutions of bin-packing problems using column generation and branch and bound. Ann. Oper. Res. 86, 629--659.]]Google ScholarGoogle ScholarCross RefCross Ref
  29. van Vliet, A. 1992. An improved lower bound for online bin-packing algorithms. Inf. Proc. Lett. 43, 277--284.]] Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. On the Sum-of-Squares algorithm for bin packing

          Recommendations

          Comments

          Login options

          Check if you have access through your login credentials or your institution to get full access on this article.

          Sign in

          Full Access

          • Published in

            cover image Journal of the ACM
            Journal of the ACM  Volume 53, Issue 1
            January 2006
            206 pages
            ISSN:0004-5411
            EISSN:1557-735X
            DOI:10.1145/1120582
            Issue’s Table of Contents

            Copyright © 2006 ACM

            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 1 January 2006
            Published in jacm Volume 53, Issue 1

            Permissions

            Request permissions about this article.

            Request Permissions

            Check for updates

            Qualifiers

            • article

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader