Online and Approximation Algorithms for Bin-Packing and Knapsack Problems
Xin Han Iwama Lab, School of Informatics, Kyoto University, Kyoto 606-8501, Japan
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.1/57
Online and Approximation Algorithms for Bin-Packing and Knapsack - - PowerPoint PPT Presentation
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems Xin Han Iwama Lab, School of Informatics, Kyoto University, Kyoto 606-8501, Japan Online and Approximation Algorithms for Bin-Packing and Knapsack Problems p.1/57
Xin Han Iwama Lab, School of Informatics, Kyoto University, Kyoto 606-8501, Japan
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.1/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.2/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.3/57
I { A(I)
A of algorithm A is
A × Opt(I) + C,
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.4/57
A = (1 + ǫ) then A is APTAS, i.e.,
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.5/57
.... .... 1 1 1
Input: a collection of one dimensional items with size at
Output: minimize the number of bins required.
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.6/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.7/57
$ $ $ $ Knapsack
Input: a knapsack with a capacity B > 0 and a set of
Output: find a subset of the items whose total size is
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.8/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.9/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.10/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.11/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.12/57
....
Input: give a collection of rectangles with size at most 1, Output: minimize the number of unit square bins to pack
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.13/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.14/57
the number of bins plus the total cost
$ $ $
Input: a collection of items with a size and a rejected
Output: minimize the number of bins used plus the total
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.15/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.16/57
Input: a collection of rectangles with a profit Output: maximize the total profit of the rectangles
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.17/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.18/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.19/57
the number of bins plus the total cost
$ $ $
Input: a collection of items with a size and a rejected
Output: minimize the number of bins used plus the total
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.20/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.21/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.22/57
p
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.23/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.24/57
′
p and L
′
r.
′
r) ≤ (1 + ǫ)OPTr(L) + 1.
′
p ⇒ OPTp(L) bins.
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.25/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.26/57
ln n ln(1+ǫ)}
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.27/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.28/57
′
p .
′
r
r
p
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.29/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.30/57
1 1/n
X
n
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.31/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.32/57
h
′
r, where ai = (1+ǫ)i n
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.33/57
′
r, we have
′
r) ≤ (1 + O(ǫ))costr.
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.34/57
′
p ⇐ L − L
′
′
p
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.35/57
′
r such that
′
r) ≤ (1 + O(ǫ))costr, and the remaining items
′
r can be packed costp bins.
′
r and reject all items in L
′
r.
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.36/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.37/57
1 1
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.38/57
A = α if
A = 1 + ǫ.
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.39/57
A = 3.25 was given by Li and Cheng
A to (1.69103...)2 ≈ 2.8596
A was improved to 2.67, 2.64 by
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.40/57
A from 2 + ǫ to 1.69103,
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.41/57
... c c 1 1
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.42/57
.... .... 1 1 1
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.43/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.44/57
2 < x ≤ 1 then call it type-1.
....
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.45/57
3 < x ≤ 1 2 then call it type-2.
....
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.46/57
1 i+1 < x ≤ 1 i then call it type-i.
....
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.47/57
k then call it type-k and use NF algorithm to pack
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.48/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.49/57
1 i+1 < l ≤ 1 i , where 1 ≤ i < k.
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.50/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.51/57
i , wy, c),
X Z
1/3
y
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.52/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.53/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.54/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.55/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.56/57
Online and Approximation Algorithms for Bin-Packing and Knapsack Problems – p.57/57