© 2010 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property. Bin Packing: From Theory to.

Slides:



Advertisements
Similar presentations
Tight Bounds for Online Class- constrained Packing Hadas Shachnai Bell Labs and The Technion IIT Tami Tamir The Technion IIT.
Advertisements

1 Chapter 8 Approximation Algorithms (Part II). 2 Outline Scheduling Independent tasks Bin packing.
On the Density of a Graph and its Blowup Raphael Yuster Joint work with Asaf Shapira.
15-853:Algorithms in the Real World
Computing Classic Closeness Centrality, at Scale Edith Cohen Joint with: Thomas Pajor, Daniel Delling, Renato Werneck Microsoft Research.
Computing Kemeny and Slater Rankings Vincent Conitzer (Joint work with Andrew Davenport and Jayant Kalagnanam at IBM Research.)
CSE332: Data Abstractions Lecture 14: Beyond Comparison Sorting Dan Grossman Spring 2010.
Assignment of Different-Sized Inputs in MapReduce Shantanu Sharma 2 joint work with Foto N. Afrati 1, Shlomi Dolev 2, Ephraim Korach 2, and Jeffrey D.
CSC 2300 Data Structures & Algorithms March 16, 2007 Chapter 7. Sorting.
On the Spread of Viruses on the Internet Noam Berger Joint work with C. Borgs, J.T. Chayes and A. Saberi.
The number of edge-disjoint transitive triples in a tournament.
PTAS for Bin-Packing. Special Cases of Bin Packing 1. All item sizes smaller than Claim 1: Proof: If then So assume Therefore:
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2001 Midterm Review Fri. Oct 26.
Asymptotic Growth Rate
Parameterized Approximation Scheme for the Multiple Knapsack Problem by Klaus Jansen (SODA’09) Speaker: Yue Wang 04/14/2009.
AT&T Labs1 The Sensor Cover Problem Alon Efrat (U. Arizona) Adam Buchsbaum (AT&T Labs) Shaili Jain (Harvard) Suresh Venkatasubramanian (AT&T Labs) Ke Yi.
Tirgul 8 Universal Hashing Remarks on Programming Exercise 1 Solution to question 2 in theoretical homework 2.
1 Data Structures A program solves a problem. A program solves a problem. A solution consists of: A solution consists of:  a way to organize the data.
CSE 830: Design and Theory of Algorithms Dr. Eric Torng.
Structure and Phase Transition Phenomena in the VTC Problem C. P. Gomes, H. Kautz, B. Selman R. Bejar, and I. Vetsikas IISI Cornell University University.
The k-server Problem Study Group: Randomized Algorithm Presented by Ray Lam August 16, 2003.
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
© J. Christopher Beck Lecture 18: Timetabling with Workforce Capacity.
Quantum Algorithms II Andrew C. Yao Tsinghua University & Chinese U. of Hong Kong.
The Simplified Partial Digest Problem: Hardness and a Probabilistic Analysis Zo ë Abrams Ho-Lin Chen
Lower Bounds for Comparison-Based Sorting Algorithms (Ch. 8)
Improved results for a memory allocation problem Rob van Stee University of Karlsruhe Germany Leah Epstein University of Haifa Israel WADS 2007 WAOA 2007.
Computer Algorithms Lecture 11 Sorting in Linear Time Ch. 8
Chapter Complexity of Algorithms –Time Complexity –Understanding the complexity of Algorithms 1.
Bold Stroke January 13, 2003 Advanced Algorithms CS 539/441 OR In Search Of Efficient General Solutions Joe Hoffert
Why is bin packing interesting?
Approximation schemes Bin packing problem. Bin Packing problem Given n items with sizes a 1,…,a n  (0,1]. Find a packing in unit-sized bins that minimizes.
© 2009 IBM Corporation 1 Improving Consolidation of Virtual Machines with Risk-aware Bandwidth Oversubscription in Compute Clouds Amir Epstein Joint work.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 4.
2.1 Computational Tractability. 2 Computational Tractability Charles Babbage (1864) As soon as an Analytic Engine exists, it will necessarily guide the.
Preference elicitation Communicational Burden by Nisan, Segal, Lahaie and Parkes October 27th, 2004 Jella Pfeiffer.
Arrays Tonga Institute of Higher Education. Introduction An array is a data structure Definitions  Cell/Element – A box in which you can enter a piece.
Quantum Computing MAS 725 Hartmut Klauck NTU
© 2010 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property. Case Studies: Bin Packing.
Packing Rectangles into Bins Nikhil Bansal (CMU) Joint with Maxim Sviridenko (IBM)
CSE332: Data Abstractions Lecture 14: Beyond Comparison Sorting Dan Grossman Spring 2012.
Approximation Algorithms
Formal Engineering Research with Models Abstractions and Transformations FERMAT Low Power Hardware Synthesis from Concurrent Action Oriented Specifications.
Nov Chung-Hsien Hsu1 Round Robin with Look Ahead: A New Scheduling Algorithm for Bluetooth Daqing Yang, Gouri Nair, Balaji Sivaramakrishnan, Harishkumar.
More Computational Complexity Shirley Moore CS4390/5390 Fall August 29,
On the Approximability of Geometric and Geographic Generalization and the Min- Max Bin Covering Problem Michael T. Goodrich Dept. of Computer Science joint.
A Membrane Algorithm for the Min Storage problem Dipartimento di Informatica, Sistemistica e Comunicazione Università degli Studi di Milano – Bicocca WMC.
Asymptotic Analysis CSE 331. Definition of Efficiency An algorithm is efficient if, when implemented, it runs quickly on real instances Implemented where?
Forrelation: A Problem that Optimally Separates Quantum from Classical Computing.
The bin packing problem. For n objects with sizes s 1, …, s n where 0 < s i ≤1, find the smallest number of bins with capacity one, such that n objects.
Computability NP complete problems. Space complexity. Homework: [Post proposal]. Find PSPACE- Complete problems. Work on presentations.
1 What happens to the location estimator if we minimize with a power other that 2? Robert J. Blodgett Statistic Seminar - March 13, 2008.
Approximation Algorithms based on linear programming.
Ch03-Algorithms 1. Algorithms What is an algorithm? An algorithm is a finite set of precise instructions for performing a computation or for solving a.
Theory of Computational Complexity Probability and Computing Ryosuke Sasanuma Iwama and Ito lab M1.
Theory of Computational Complexity M1 Takao Inoshita Iwama & Ito Lab Graduate School of Informatics, Kyoto University.
BIN SORTING Problem Pack the following items in bins of size Firstly, find the lower bound by summing the numbers to be packed.
Assignment Problems of Different- Sized Inputs in MapReduce Foto N. Afrati 1, Shlomi Dolev 2, Ephraim Korach 2, Shantanu Sharma 2, and Jeffrey D. Ullman.
Bin Packing First fit decreasing algorithm
Chart Packing Heuristic
Georgina Hall Princeton, ORFE Joint work with Amir Ali Ahmadi
Bin Packing First fit decreasing algorithm
PTAS for Bin-Packing.
György Dósa, University of Pannonia, Veszprém, Hungary
Bin Packing First fit decreasing algorithm
Bin Packing First fit decreasing algorithm
Selfish Load Balancing
Dimension versus Distortion a.k.a. Euclidean Dimension Reduction
ICS 353: Design and Analysis of Algorithms
Bin Packing Michael T. Goodrich Some slides adapted from slides from
Presentation transcript:

© 2010 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property. Bin Packing: From Theory to Experiment and Back Again David S. Johnson AT&T Labs – Research

Applications Packing commercials into station breaks Packing files onto floppy disks Packing MP3 songs onto CDs Packing IP packets into frames, SONET time slots, etc. Packing telemetry data into fixed size packets Standard Drawback: Bin Packing is NP-complete

OUTLINE Worst-Case Performance Average-Case Performance –Classical Models Experiments  Theory –Discrete Distributions Theory  Experiments  Theory

First Fit (FF): Put each item in the first bin with enough space Best Fit (BF): Put each item in the bin that will hold it with the least space left over First Fit Decreasing, Best Fit Decreasing (FFD,BFD): Start by reordering the items by non-increasing size. 

Worst-Case Bounds Theorem [Ullman, 1971]. For all lists L, BF(L), FF(L) ≤ (17/10)OPT(L) + 3. Theorem [Johnson, 1973]. For all lists L, BFD(L), FFD(L) ≤ (11/9)OPT(L) + 4. (Note 1: 11/9 = …) (Note 2: These bounds are asymptotically tight.)

Lower Bounds: FF and BF ½ +  ½ -  OPT: N bins ½ -  ½ +  FF, BF: N/2 bins + N bins = 1.5 OPT

Lower Bounds: FF and BF 1/2 +  1/3 +  OPT: N bins ½ +  FF, BF: N/6 bins + N/2 bins + N bins = 5/3 OPT 1/6 - 2  1/3 + 

Lower Bounds: FF and BF 1/2 +  1/3 +  OPT: N bins 1/7 +  1/ , etc. 1/43 + , FF, BF = N(1 + 1/2 + 1/6 + 1/42 + 1/ … )  ( ) OPT

“Improving” on FF and BF

“Improving” on FFD and BFD

Average-Case Performance

Progress?

Progress: Faster Computers  Bigger Instances

Definitions

Definitions, Continued

Theorems for U[0,1]

Proof Idea for FF, BF: View as a 2-Dimensional Matching Problem

Distributions U[0,u] Item sizes uniformly distributed in the interval (0,u], 0 < u < 1

Average Waste for BF under U(0,u]

Measured Average Waste for BF under U(0,.01]

Conjecture

FFD on U(0,u] Experimental Results from [Bentley, Johnson, Leighton, McGeoch, 1983] N = FFD(L) – s(L ) u =.6 u =.5 u =.4

FFD on U(0,u], u  0.5

FFD on U(0,u], 0.5  u  1

OUTLINE Worst-Case Performance Average-Case Performance –Classical Models Experiments  Theory –Discrete Distributions Theory  Experiments  Theory   

Discrete Distributions

Courcoubetis-Weber

y x z (0,0,0) (2,1,1) (0,2,1) (1,0,2)

Courcoubetis-Weber Theorem

A Flow-Based Linear Program

Theorem [Csirik et al. 2000] Note: The LP’s for (1) and (3) are both of size polynomial in B, not log(B), and hence “pseudo-polynomial”

/3 1 2/3 Discrete Uniform Distributions U{3,4} U{6,8} U{12,16}U(0,¾]

Theorem [Coffman et al. 1997] (Results analogous to those for the corresponding U(0,u])

Experimental Results for Best Fit 0 ≤ u ≤ 1, 1 ≤ j ≤ k = 51 Averages of 25 trials for each distribution, N = 2,048,000

Average Waste under Best Fit (Experimental values for N = 100,000,000 and 200,000,000) [GJSW, 1993] [KRS, 1996] Holds for all j = k-2

Theorem [Kenyon & Mitzenmacher, 2000]

Average w BF (L)/s(L) for U{j,85}

Average w BFD (L)/s(L) for U{j,85}

Averages on the Same Scale

The Discrete Distribution U{6,13}

“Fluid Algorithm” Analysis: U{6,13} Size = Amount = β β β β β β Bin Type = Amount = 6 6 β/ β/3 β/6 β/ β/8 β/ ¾β¾β

Expected Waste

Theorem [Coffman, Johnson, McGeoch, Shor, & Weber, ]

U{j,k} for which FFD has Linear Waste j k

Minumum j/k for which Waste is Linear k j/k

Values of j/k for which Waste is Maximum k j/k

Waste as a Function of j and k (mod 6)

K = 8641 =

Pairs (j,k) where BFD beats FFD k j

Pairs (j,k) where FFD beats BFD k j

Beating BF and BFD in Theory

Plausible Alternative Approach

The Sum-of-Squares Algorithm (SS)

SS on U{j,100} for 1 ≤ j ≤ 99 j SS(L)/s(L) BF for N = 10M SS for N = 1M SS for N = 100K SS for N = 10M

Discrete Uniform Distributions II

j h

K = 101 j h

K = 120 j h

j h K = 100 h = 18

Results for U{18..j,k} j A(L)/s(L) BF SS OPT

Is SS Really this Good?

Conjectures [Csirik et al., 1998]

Why O(log n) Waste?

Theorem [Csirik et al., 2000]

Proving the Conjectures: A Key Lemma

Linear Waste Distributions

Good News

SS F for U{18.. j,100}

Handling Unknown Distributions --

SS * for U{18.. j,100}

Other Exponents

Variants that Don’t Always Work B = 10, S = {1,3,4,5,8}, p(1) = p(3) = p(5) = 1/4, p(4) = p(8) = 1/8. Distribution = (1/8) ( {8,1,1} + {4,3,3} + {5,5} )

Offline Packing Revisited: The Cutting-Stock Problem

Gilmore-Gomory vs Bin Packing Heuristics

Some Remaining Open Problems