skip to main content
article
Free Access

A simple on-line bin-packing algorithm

Published:01 July 1985Publication History
Skip Abstract Section

Abstract

The one-dimensional on-line bin-packing problem is considered, A simple O(1)-space and O(n)-time algorithm, called HARMONICM, is presented. It is shown that this algorithm can achieve a worst-case performance ratio of less than 1.692, which is better than that of the O(n)-space and O(n log n)-time algorithm FIRST FIT. Also shown is that 1.691 … is a lower bound for all 0(1)-space on-line bin-packing algorithms. Finally a revised version of HARMONICM , an O(n)-space and O(n)- time algorithm, is presented and is shown to have a worst-case performance ratio of less than 1.636.

References

  1. 1 BROWN, D.J.A lower bound for on-line one-dimensional bin packing algorithms. Tech. Rep. No. R-864, Coordinated Sci. Lab., Univ. of Illinois, Urbana, I11., 1979.Google ScholarGoogle Scholar
  2. 2 COFFMAN, E.G., jR., GAREY, M.R., AND JOHNSON, D.S. Approximation algorithms for binpackingmAn updated survey. Bell Laboratories, Murray Hill, N.J., Oct. I983.Google ScholarGoogle Scholar
  3. 3 GAREY, M.R., AND JOHNSON, D.S.Computers and Intractability: A Guide to the Theory of NP- completeness. W. H. Freeman & Co., San Francisco, Calif., 1979. Google ScholarGoogle Scholar
  4. 4 GAREY, M. R., AND JOHNSON, D. S. Approximation algorithms for bin packing problems: A survey. In Analysis and Design of Algorithms in Combinatorial Optimization, G. Ausiello and M. Lucertini, Eds. Springer-Verlag, New York, 1981.Google ScholarGoogle Scholar
  5. 5 JOHNSON, D.S.Near optimal bin packing algorithms. Ph.D. dissertation, MIT, Cambridge, Mass., June 1973.Google ScholarGoogle Scholar
  6. 6 JOHNSON, D.S.Fast algorithms for bin packing. J. Comput. Syst. Sci. 8 (1974), 272-314.Google ScholarGoogle Scholar
  7. 7 JOHNSON, D.S., DEMERS, A., ULLMAN, J.D., GAREY, M.R., AND GRAHAM, R.U Worst-case performance bounds for simple one-dimensional bin packing algorithms. SIAM J. Comput. 3 (1974), 299-325.Google ScholarGoogle Scholar
  8. 8 KARP, R.M. Reducibility among combinatorial problems. In Complexity of Computer Computations, R.E. Miller and J.M. Thatcher, Eds. Plenum Press, New York, 1972, pp. 85-103.Google ScholarGoogle Scholar
  9. 9 LEE, C.C., AND LEE, D.T. A new algorithm for on-line bin packing. Tech. Rep. No. 83-03-FC- 02, Dept. of Electrical Engineering and Computer Science, Northwestern Univ., Evanston, I11., Nov. 1983.Google ScholarGoogle Scholar
  10. 10 LEE, C.C., AND LEE, D.T.Robust on-line bin packing algorithms. Submitted for publication.Google ScholarGoogle Scholar
  11. 11 LIANG, F. M. A lower bound for on-line bin packing. Inf. Proc. Lett. 10 (1980), 76-79.Google ScholarGoogle Scholar
  12. 12 YAO, A.C. New algorithms for bin packing. J. ACM. 27 (1980), 207-227. Google ScholarGoogle Scholar

Index Terms

  1. A simple on-line bin-packing algorithm

                Recommendations

                Reviews

                Michael R. Garey

                In the classical one-dimensional bin packing problem, one is given a list a 1, a 2, . . . , a n of items, each with a size between 0 and 1, and is asked to pack these items into as few bins as possible so that no bin contains items whose sizes sum to more than 1. This NP-hard problem arises in a wide variety of applications and has been studied extensively from the point of view of proving theoretical performance bounds for fast approximation algorithms. This paper concentrates on on-line algorithms for such problems, i.e., algorithms that decide where to pack each item before seeing any of the items that appear later in the list. The main results are (1) a linear time, constant space algorithm that is guaranteed never to exceed the optimal number of bins by more than 69.2 percent, (2) a proof that no constant space algorithm can satisfy a significantly better performance bound than this, and (3) a linear time, linear space variant of the method that is guaranteed never to exceed the optimal number of bins by more than 63.6 percent. Recent (unpublished) results by the authors and P. Ramanan and D. J. Brown claim significant improvements over the performance bound in (3).

                Access critical reviews of Computing literature here

                Become a reviewer for Computing Reviews.

                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 32, Issue 3
                  July 1985
                  245 pages
                  ISSN:0004-5411
                  EISSN:1557-735X
                  DOI:10.1145/3828
                  Issue’s Table of Contents

                  Copyright © 1985 ACM

                  Publisher

                  Association for Computing Machinery

                  New York, NY, United States

                  Publication History

                  • Published: 1 July 1985
                  Published in jacm Volume 32, Issue 3

                  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