Skip to main navigation Skip to search Skip to main content

Sum-of-squares heuristics for bin packing and memory allocation

  • Hofstra University
  • Stevens Institute of Technology
  • Stony Brook University

Research output: Contribution to journalArticlepeer-review

3 Scopus citations

Abstract

The sum-of-squares algorithm (SS) was introduced by Csirik, Johnson, Kenyon, Shor, and Weber for online bin packing of integral-sized items into integral-sized bins. First, we show the results of experiments from two new variants of the SS algorithm. The first variant, which runs in time O(nBlogB), appears to have almost identical expected waste as the sum-of-squares algorithm on all the distributions mentioned in the original papers on this topic. The other variant, which runs in O(nlogB) time, performs well on most, but not on all of those distributions. We also apply SS to the online memory-allocation problem. Our experimental comparisons between SS and Best Fit indicate that neither algorithm is consistently better than the other. If the amount of randomness in item sizes is low, SS appears to have lower waste than Best Fit, whereas, if the amount of randomness is high Best Fit appears to have lower waste than SS. Our experiments suggest that in both real and synthetic traces, SS does not seem to have an asymptotic advantage over Best Fit, in contrast with the bin-packing problem.

Original languageEnglish
Article number2.3
JournalACM Journal of Experimental Algorithmics
Volume12
DOIs
StatePublished - Jun 1 2008

Keywords

  • Bin packing
  • Memory allocation
  • Sum of squares

Fingerprint

Dive into the research topics of 'Sum-of-squares heuristics for bin packing and memory allocation'. Together they form a unique fingerprint.

Cite this