You can edit almost every page by Creating an account and confirming your email.

Refined first-fit bin packing

From EverybodyWiki Bios & Wiki


Refined-First-Fit (RFF) is an online algorithm for bin packing. Its input is a list of items of different sizes. Its 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 RFF algorithm uses a sophisticated heuristic that improves on the previously-developed first-fit bin packing algorithm. This algorithm was presented by Andrew Chi-Chih Yao.[1]

The algorithm

The items are categorized into four classes, according to their sizes:

  • A-piece - size in (1/2,1].
  • B1-piece - size in (2/5,1/2].
  • B2-piece - size in (1/3,2/5].
  • X-piece - size in (0,1/3].

Similarly, the bins are categorized into four classes: 1, 2, 3 and 4.

Let m∈{6,7,8,9} be a fixed integer. The next item i∈L is assigned into a bin in -

  • Class 1, if i is an A-piece,
  • Class 2, if i is an B1-piece,
  • Class 3, if i is an B2-piece, but not the (mk)th B2-piece seen so far, for any integer k≥1.
  • Class 1, if i is the (mk)th B2-piece seen so far,
  • Class 4, if i is an X-piece.

Once the class of the item is selected, it is placed inside items of that class using first-fit bin packing.

Note that RFF is not an Any-Fit algorithm since it may open a new bin despite the fact that the current item fits inside an open bin (from another class).

Approximation ratio

RFF has an approximation guarantee of RFF(L)≤(5/3)⋅OPT(L)+5. There exists a family of lists Lk with RFF(Lk)=(5/3)OPT(Lk)+1/3 for OPT(L)=6k+1.[1]

References

  1. ↑ 1.0 1.1 Yao, Andrew Chi-Chih (April 1980). "New Algorithms for Bin Packing". Journal of the ACM. 27 (2): 207–227. doi:10.1145/322186.322187. Unknown parameter |s2cid= ignored (help)



This article "Refined first-fit bin packing" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Refined first-fit bin packing. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.