GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Bin covering problem

In the bin covering problem, items of different sizes must be packed into a finite number of bins or containers, each of which must contain at least a certain given total size, in a way that maximizes the number of bins used. This problem is a dual of the bin packing problem: in bin covering, the bin sizes are bounded from below and the goal is to maximize their number; in bin packing, the bin sizes are bounded from above and the goal is to minimize their number. The problem is NP-hard, but there are various efficient approximation algorithms: * Algorithms covering at least 1/2, 2/3 or 3/4 of the optimum bin count asymptotically, running in time O(n), O(n \log n), O(n {\log ^2 n)... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

In the bin covering problem, items of different sizes must be packed into a finite number of bins or containers, each of which must contain at least a certain given total size, in a way that maximizes the number of bins used. This problem is a dual of the bin packing problem: in bin covering, the bin sizes are bounded from below and the goal is to maximize their number; in bin packing, the bin sizes are bounded from above and the goal is to minimize their number. The problem is NP-hard, but there are various efficient approximation algorithms: Algorithms covering at least 1/2, 2/3 or 3/4 of the optimum bin count asymptotically, running in time O(n), O(n \log n), O(n {\log}^2 n) respectively. An asymptotic PTAS, algorithms with bounded worst-case behavior whose expected behavior is asymptotically-optimal for some discrete distributions, and a learning algorithm with asymptotically optimal expected behavior for all discrete distributions. An asymptotic FPTAS. t := \mathrm{BDF}(I) = the number of bins filled by the algorithm. B_1,\ldots,B_t := the t bins filled by the algorithm. Initial items - the t items that are inserted first into each of the t bins. Final items - the t items that are inserted last into each of the t bins. Middle items - all items that are neither initial nor final. w := the number of final items that are at most 1/2 (equivalently, t-w is the number of final items larger than 1/2). The sum of each bin B_1,\ldots,B_t is at least 1, but if the final item is removed from it, then the remaining sum is smaller than 1. Each of the first w bins B_1,\ldots,B_w contains an initial item, possibly some middle items, and a final item. Each of the last t-w bins B_{w+1},\ldots,B_t contains only an initial item and a final item, since both of them are larger than 1/2 and their sum is already larger than 1. The proof considers two cases. The easy case is w = t , that is, all final items are smaller than 1/2. Then, the sum of every filled B_i is at most 3/2, and the sum of remaining items is at most 1, so the sum of all items is at most 3t/2+1 . On the other hand, in the optimal solution the sum of every bin is at least 1, so the sum of all items is at least \mathrm{OPT}(I) . Therefore, \mathrm{OPT}(I) \leq 3t/2+1 as required. The hard case is w , that is, some final items are larger than 1/2. We now prove an upper bound on \mathrm{OPT}(I) by presenting it as a sum \mathrm{OPT}(I) = |K_0|+|K_1|+|K_2| where: K_0 := the optimal bins with no initial/final items (only middle items). K_1 := the optimal bins with exactly one initial/final item (and some middle items). K_2 := the optimal bins with two or more initial/final items (and some middle items). We focus first on the optimal bins in K_0 and K_1 . We present a bijection between the items in each such bin to some items in B_1,\ldots,B_t which are at least as valuable. The single initial/final item in the K_1 bins is mapped to the initial item in B_1,\ldots,B_ . Note that these are the largest initial items. The middle items in the K_0 and K_1 bins are mapped to the middle items in B_1,\ldots,B_{w} . Note that these bins contain all the middle items. Therefore, all items in K_0 and K_1 are mapped to all non-final items in B_1,\ldots,B_ , plus all middle items in B_ , plus all middle items in B_{|K_1|+1},\ldots,B_{w} , is at most |K_1| + (w-|K_1|)/2 = (|K_1|+w)/2 . The sum of each optimal bin is at least 1. Hence: |K_0| + |K_1| \leq (|K_1|+w)/2 , which implies 2 |K_0| + |K_1| \leq w \leq t . We now focus on the optimal bins in K_1 and K_2 . The total number of initial/final items in the K_1 and K_2 bins is at least |K_1| + 2|K_2| , but their total number is also 2 t since there are exactly two initial/final items in each bin. Therefore, |K_1| + 2|K_2|\leq 2 t . Summing the latter two inequalities implies that 2 \mathrm{OPT}(I) \leq 3 t , which implies \mathrm{OPT}(I) \leq 3 t/2 . The 2/3 factor is tight for BDF. Consider the following instance (where \epsilon>0 is sufficiently small): \begin{align} 1-6 k \epsilon, ~&~ \tfrac{1}{2}-\epsilon, \ldots, \tfrac{1}{2}-\epsilon, ~&~ \epsilon,\ldots,\epsilon \\ ~&~ \{\cdots 6k ~ \text{units} \cdots \} ~&~ \{ \cdots 6k ~ \text{units} \cdots \} \end{align} BDF initializes the first bin with the largest item and fills it with the 6k smallest items. Then, the remaining 6k items can cover bins only in triplets, so all in all 2k+1 bins are filled. But in OPT one can fill 3k bins, each of which contains two of the middle-sized items and two small items. In the above example, showing the tightness of BDF, the sets are: \begin{align} 1-6 k \epsilon, ~&~ \tfrac{1}{2}-\epsilon, \ldots, \tfrac{1}{2}-\epsilon, ~&~ \epsilon,\ldots,\epsilon \\ \{ |X|=1 \} ~&~ \{ \cdots |Y|=6k \cdots \} ~&~ \{ \cdots |Z|=6k \cdots \} \end{align} TCF attains the optimal outcome, since it initializes all 3k bins with pairs of items from Y, and fills them with pairs of items from Z. For any instance I, denote by \mathrm{OPT}(I) the number of bins in the optimal solution, and by \mathrm{TCF}(I) the number of full bins in the three-classes filling algorithm. Then \mathrm{TCF}(I) \geq (3/4) (\mathrm{OPT}(I) - 4) . The 3/4 factor is tight for TCF. Consider the following instance (where \epsilon>0 is sufficiently small): \begin{align} \tfrac{1}{2}-6 k \epsilon, \tfrac{1}{2}-6 k \epsilon, ~&~ \tfrac{1}{3}-\epsilon, \ldots, \tfrac{1}{3}-\epsilon, ~&~ \epsilon,\ldots,\epsilon \\ ~&~ \{\cdots 12k ~ \text{units} \cdots \} ~&~ \{ \cdots 12k ~ \text{units} \cdots \} \end{align} TCF initializes the first bin with the largest two items, and fills it with the 12k smallest items. Then, the remaining 12k items can cover bins only in groups of four, so all in all 3k+1 bins are filled. But in OPT one can fill 4k bins, each of which contains 3 middle-sized items and 3 small items.

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Bin covering problem". 1760096531. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1316102179

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·