2dg-binpacking sodatalk 20min
TRANSCRIPT
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 1/30
Improved Approximation
Algorithm forTwo-Dimensional Bin Packing
Arindam Khan (Georgia Tech)
Joint work with Nikhil Bansal (TU Eindhoven)
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 2/30
Bin Packing Problem: (One Dimension)
•
Given : items with sizes , 2 … , s.t. ∈(0,1] • Goal: Pack all items into min # of unit bins.
• Example: items {0.8, 0.6, 0.3, 0.2, 0.1} can bepacked in 2 unit bins: {0.8, 0.2} and {0.6, 0.3, 0.1}.
• NP Hardness from Partition
- Cannot distinguish in poly time if need 2 or 3 bins
- This does not rule out OPT+1 guarantee.
- Insightful to consider Asymptotic approximation ratio.
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 3/30
Asymptotic Approximation Ratio
•
(Absolute) Approximation Ratio: max { ()/()}
• Asymptotic Approximation Ratio (AAR):
lim→∞ sup{ | = }
• AAR ⇒ = . 1 . • Asymptotic Polynomial Time Approximation Scheme (APTAS):
If = ( 1 ) () ()
• 1 D Bin Packing: AAR . [Rothvoss FOCS’
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 4/30
Two-Dimensional Geometric Bin Packing
• Given: Collection of rectangles(by width, height)
• Goal: Pack them into minimum number of unit square bins.- Orthogonal Packing: rectangles packed parallel to bin edges.
- With 90 degree Rotations and without rotations.
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 5/30
Applications:
•
Cloth cutting, steel cutting, wood cutting• Placing ads in newspapers
• Memory allocation in paging systems
• Truck Loading
• Palletization by robots
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 6/30
A tale of Approximibility• Reduction from Partition: NP-hard to decide if we need 1 or 2 bins to pack all rectan
• Tight 2 (absolute) approximation Algorithm. [Harren VanStee Approx 2009]
• Algorithm: (Asymptotic Approximation)
• 2.125 [Chung Garey Johnson SIAM JADM1982]
• 2 [Kenyon Remilla FOCS 1996]
• 1.69 [Caprara FOCS 2002]
• 1.52 [Bansal-Caprara-Sviridenko FOCS 2006]
•1.5 [Jansen-Praedel SODA 2013]
• Hardness:
• No APTAS (from 3D Matching)[Bansal-Sviridenko SODA 2004],
• 3793/3792(with rotation), 2197/2196(w/o rotation) [Chlebik-Chlebikova]
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 7/30
Our Results: [Bansal,K.]
•
Algorithm:• (1 + ln(1.5)) = 1.405 Approximation Algorithm.
- using Round & Approx framework for rounding based algo- Jansen-Praedel 1.5 approximation algorithm as a subroutin
•
Hardness:• 4/3 for constant number of rounding based algorithm.
• 3/2 for input agnostic rounding based algorithms.
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 8/30
Configuration LP
• Bin packing problem can be viewed as a special case of set cover.
Set Cover:
Items , 2, … ; Sets , 2, … .
Choose fewest sets s.t. each item is covered.
Bin Packing:
Sets are implicit:
known as configurations.
Any subset of items that fit feasibly in a bin.
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 9/30
Configuration LP
• ℂ: set of configurations(possible way of feasibly packing a bin).
Primal:
min { : ≥ 1 ∈ , ≥ 0∋
( ∈ ℂ) }
Objective: min # configurations(bins)
Constraint:
For each item, at least one configuration
containing the item should be selected.
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 10/30
Configuration LP
• ℂ: set of configurations(possible way of feasibly packing a bin).
Primal:
min { : ≥ 1 ∈ , ≥ 0∋
( ∈ ℂ) }
Gilmore Gomory LP for multiple identical items:
Min {1: ≥ , ≥ 0 ( ∈ ℂ ) }
Columns: Feasible configurations
Rows: Items (or types of items)
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 11/30
Configuration LPGilmore Gomory LP:
Min {1: ≥ , ≥ 0 ( ∈ ℂ ) }
1/10/2014 Rothvoss ‘13
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 12/30
Configuration LPGilmore Gomory LP:
Min {1: ≥ , ≥ 0 ( ∈ ℂ ) }
1/10/2014 Rothvoss ‘1
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 13/30
Configuration LP
• ℂ: set of configurations(possible way of feasibly packing a bin).
Primal:
min { : ≥ 1 ∈ , ≥ 0∋
( ∈ ℂ) }
Dual:
max {: ≤ 1 ∈ ℂ , ≥ 0 ∈ }∈C∈
• Problem: Exponential number of configurations!
• Solution: Can be solved within (1) accuracy using separation problem fo
1/10/2014
Dual Separation pr
2-D Geometric Kna
problem:
Given one bin, pac
much area as poss
[BCJPS ISAAC 2009
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 14/30
General Framework [BCS FOCS 06]
•
Given a packing problem1. If can solve the configuration LP
min { : ≥ 1 ∈ , ≥ 0∋
( ∈ ℂ) }2. There is a ρ approximation subset-oblivious algorithm.
• Then there is (1+ln ρ) approximation.
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 15/30
Subset Oblivious Algorithms
• There exist
weight (
- dim) vectors
, 2
…
s.t.
For every subset of items ⊆ , and > 0
1) ≥ (
∈ )
2) ≤ (
∈ ) () (1)
• Based on dual weight function.
• Cumbersome and Complex!
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 16/30
Rounding based Algorithms:
•
Our Key Contribution:Subset Oblivious techniques work for any rounding based al
• Rounding based algorithms are ubiquitous in bin packing.
• Items are replaced by slightly larger items from O(1) types t# item types and thus #configurations.
• Example: Linear grouping, Geometric Grouping, Harmonic R• Jansen Praedel 1.5 Approximation algorithm is a nontrivial r
based algorithm.
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 17/30
Rounding based Algorithms• Classification of items into big, wide, long, medium and sma
defining two parameters
()(≪ ()) such that
volume of medium rectangles is .().
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 18/30
Rounding based Algorithms• Classification of items into big, wide, long, medium and sma
defining two parameters
()(≪ ()) such that
volume of medium rectangles is .().
1/10/2014
Negligible volum
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 19/30
Rounding based Algorithms
• Classification of items into big, wide, long, medium and smadefining two parameters ()(≪ ()) such thatvolume of medium rectangles is .().
1/10/2014
Rounded to O(1) types
Skewed items are p
containers where
(i) it has all items o(ii) has large size in
and
(iii) items are packe
with a negligible los
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 20/30
Round and Approx Framework (R & A)
• 1. Solve configuration LP using APTAS. Let ∗ = ∈
Primal:
min { : ≥ 1 ∈ , ≥ 0∋
( ∈ ℂ) }
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 21/30
Round and Approx Framework (R & A)
• 1. Solve configuration LP using APTAS. Let ∗ = ∈ℂ• 2. Randomized Rounding: For q iterations :
select a configuration ’ at random with probability
Primal:
min { : ≥ 1 ∈ , ≥ 0∋
( ∈ ℂ) }
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 22/30
Round and Approx Framework (R & A)
• 1. Solve configuration LP using APTAS. Let ∗ = ∈• 2. Randomized Rounding: For iterations :
select a configuration ’ at random with probabil
•
3. Approx: Apply a approximation rounding basedalgorithm A on the residual instance S.
• 4. Combine: the solutions from step 2 and 3.
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 23/30
R & A Rounding Based Algorithms
• Probability item
left uncovered after rand. rounding
= 1 − ∗∗∋
≤ by choosing q=⌈(ln)()⌉ .
• Number of items of each type shrinks by a factor
e.g., | ∩ = || .
• Concentration using Chernoff bounds.
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 24/30
Proof Sketch
• Rounding based Algo ∶ O 1 types of items
= (1) number of constraints in Configuration LP.• ≈ () ≈ (). • # items for each item type shrinks by , () ≈ +
• Approximation: ≤ 1 .
• ≈ () ≈ ().
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 25/30
Proof Sketch
• Thm: R&A gives a
(1 ln )approximation.
• Proof:
• Randomized Rounding ∶ q= ln .()
• Residual Instance S = ( 1 )()(1).
• Round + Approx => (ln 1 )()(1).
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 26/30
Hardness of 4/3: for Constant Rounding
1/10/2014
Items are rounded to
Only three rounded i
can be packed in a bi
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 27/30
Hardness of 3/2: for Input-Agnostic Rou
• Input agnostic rounding: Itrounded to values indepeninput values (e.g. Harmonirounding, JP rounding).
• At least 3m/2 bins are neepack 4m such items.
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 28/30
Open Problems:• Settle the gap between upper bound(1.405) and lower bound(1.0003).
• A 4/3 approximation algorithm based on constant rounding. => 1+ln(4/3) using R&
•Guillotine Cut: Edge to Edge cut across a bin
• There is an APTAS for Guillotine Packing [BLS FOCS 2005].
• Settle the ratio between best Guillotine Packing and best 2D general packing :
lower bound 1.33 and upper bound 1.69.
23
1 5
3
6
1
2
4
2-stage4-stage
1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 29/30
Questions!1/10/2014
7/23/2019 2DG-BinPacking SODATalk 20min
http://slidepdf.com/reader/full/2dg-binpacking-sodatalk-20min 30/30
1/10/2014