Harmonic bin packing

From Wikipedia, the free encyclopedia

Harmonic bin-packing is a family of online algorithms for bin packing. The input to such an algorithm is a list of items of different sizes. The output is a packing - a partition of the items into bins of fixed capacity, such that the sum of sizes of items in each bin is at most the capacity. Ideally, we would like to use as few bins as possible, but minimizing the number of bins is an NP-hard problem.

The harmonic bin-packing algorithms rely on partitioning the items into categories based on their sizes, following a Harmonic progression. There are several variants of this idea.

The Harmonic-k algorithm partitions the interval of sizes harmonically into pieces for and such that . An item is called an -item, if .

The algorithm divides the set of empty bins into infinite classes for , one bin type for each item type. A bin of type is only used for bins to pack items of type . Each bin of type for can contain exactly -items. The algorithm now acts as follows:

  • If the next item is an -item for , the item is placed in the first (only open) bin that contains fewer than pieces or opens a new one if no such bin exists.
  • If the next item is an -item, the algorithm places it into the bins of type using Next-Fit.

This algorithm was first described by Lee and Lee.[1] It has a time complexity of where n is the number of input items. At each step, there are at most open bins that can be potentially used to place items, i.e., it is a k-bounded space algorithm.

Lee and Lee also studied the asymptotic approximation ratio. They defined a sequence , for and proved that for it holds that . For it holds that . Additionally, they presented a family of worst-case examples for that

Refined-Harmonic (RH)

Other variants

References

Related Articles

Wikiwand AI