Average-case analysis of the Modified Harmonic algorithm

  • Prakash Ramanan
  • Kazuhiro Tsuga
Session 3 Algorithms
Part of the Lecture Notes in Computer Science book series (LNCS, volume 241)


In this paper, we analyze the average-case performance of the Modified Harmonic algorithm for bin packing. We first analyze the average-case performance for arbitrary distribution of item sizes over (0, 1]. This analysis is based on the following result. Let f1 and f2 be two linear combinations of random variables {ni} n=1 k , where the Nis have a joint multinomial distribution for each \(n = \sum\limits_{i = 1}^k {N_i }\). Let E(f1)≠0, and E(f2)↮0. Then \(\mathop {\lim }\limits_{n \to \infty }\)E(max(f1, f2))/n=\(\mathop {\lim }\limits_{n \to \infty }\)max(E(f1), E(f2))/n. We then consider the special case when the item sizes are uniformly distributed over (0, 1], and obtain optimal values for the parameters of the algorithm. For these values of the parameters, the average-case performance ratio is less than 1.19. This compares well with the performance ratio 1.2865... of the Harmonic algorithm.


Performance Ratio Item Size Harmonic Algorithm Joint Multinomial Distribution 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Bentley, J. L., Johnson, D. S., Leighton, F. T., McGeoch, C. C., and McGeoch, L. A., Some unexpected expected behavior results for bin packing, Proc. 16th Ann. ACM Symp. on Theory of Computing, May 1984, 279–288.Google Scholar
  2. 2.
    Chernoff, H., A measure of asymptotic efficiency for tests of a hypothesis based on the sum of observations, Annals of Math. Statistics 23 (1952), 493–507.Google Scholar
  3. 3.
    Coffman, E. G. Jr, Garey, M. R., and Johnson D. S., Approximation algorithms for bin packing — An updated survey, Analysis and Design of Algorithms in Combinatorial Optimizations, G. Ausiello and M. Lucertini, Editors, Springer-Verlag, New York, 1984.Google Scholar
  4. 4.
    Coffman, E. G. Jr., So, K., Hofri, M., and Yao, A. C., A stochastic model of binpacking, Information and Control 44 (1980), 105–115.Google Scholar
  5. 5.
    Frederickson, G. N., Probabilistic analysis for simple one and two-dimensional bin packing algorithms, Information Process. Lett. 11 (1980), 156–161.Google Scholar
  6. 6.
    Garey, M. R., and Johnson, D. S., Computers and Intractability: A Guide to the Theory of NP-Completeness, W. H. Freeman and Co., San Francisco, 1979.Google Scholar
  7. 7.
    Johnson, D. S., Near-optimal bin packing algorithms, Technical Report MAC TR-109 (1973), Project MAC, Massachusetts Institute of Technology, Cambridge, Mass.Google Scholar
  8. 8.
    Johnson, D. S., Demers, A., Ullman, J. D., Garey, M. R., and Graham, R. L., Worstcase performance bounds for simple one-dimensional packing algorithms, SIAM J. Comput. 3 (1974), 299–325.Google Scholar
  9. 9.
    Karmarkar, N., Probabilistic analysis of some bin-packing problems, Proc. 23rd Ann. IEEE Symp. on Foundations of Computer Science, Nov. 1982, 107–111.Google Scholar
  10. 10.
    Karmarkar, N., and Karp, R. M., An efficient approximation scheme for the one-dimensional bin packing problem, Proc. 23rd Ann. IEEE Symp. on Foundations of Computer Science, Nov. 1982, 312–320.Google Scholar
  11. 11.
    Lee, C. C., and Lee, D. T., A simple on-line packing algorithm, J. Assoc. Comput. Mach. 32 (1985), 562–572.Google Scholar
  12. 12.
    Ramanan, P., Brown, D. J., Lee, C. C., and Lee, D. T., On-line bin packing in linear time, J. Algorithms, to appear.Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 1986

Authors and Affiliations

  • Prakash Ramanan
    • 1
  • Kazuhiro Tsuga
    • 1
  1. 1.Department of Computer ScienceUniversity of CaliforniaSanta Barbara

Personalised recommendations