1 Windows Scheduling as a Restricted Version of Bin-packing. Amotz Bar-Noy Brooklyn College Richard Ladner Tami Tamir University of Washington.

Slides:



Advertisements
Similar presentations
Class-constrained Resource Allocation Problems Tami Tamir Thesis advisor: Hadas Shachnai.
Advertisements

Tight Bounds for Online Class- constrained Packing Hadas Shachnai Bell Labs and The Technion IIT Tami Tamir The Technion IIT.
Algorithm Design Methods (I) Fall 2003 CSE, POSTECH.
Algorithm Design Methods Spring 2007 CSE, POSTECH.
Bin Packing First fit decreasing algorithm
 Review: The Greedy Method
CS223 Advanced Data Structures and Algorithms 1 Greedy Algorithms Neil Tang 4/8/2010.
1 Cutting Plane Technique for Solving Integer Programs.
Combinatorial Algorithms
Online Algorithms Amrinder Arora Permalink:
Online Scheduling with Known Arrival Times Nicholas G Hall (Ohio State University) Marc E Posner (Ohio State University) Chris N Potts (University of Southampton)
2007/3/6 1 Online Chasing Problems for Regular n-gons Hiroshi Fujiwara* Kazuo Iwama Kouki Yonezawa.
1 Better Scalable Algorithms for Broadcast Scheduling Ravishankar Krishnaswamy Carnegie Mellon University Joint work with Nikhil Bansal and Viswanath Nagarajan.
Errol Lloyd Design and Analysis of Algorithms Approximation Algorithms for NP-complete Problems Bin Packing Computer Networks.
Windows Scheduling Problems for Broadcast System 1 Amotz Bar-Noy, and Richard E. Ladner Presented by Qiaosheng Shi.
June 3, 2015Windows Scheduling Problems for Broadcast System 1 Amotz Bar-Noy, and Richard E. Ladner Presented by Qiaosheng Shi.
Online Algorithms – II Amrinder Arora Permalink:
1 IOE/MFG 543 Chapter 3: Single machine models (Sections 3.1 and 3.2)
1 Staleness vs.Waiting time in Universal Discrete Broadcast Michael Langberg California Institute of Technology Joint work with Jehoshua Bruck and Alex.
1 Class Constrained Packing We need to pack items into bins. All the bins have the same capacity. Each bin can accommodate items from a bounded number.
Integer Programming Difference from linear programming –Variables x i must take on integral values, not real values Lots of interesting problems can be.
Week 2: Greedy Algorithms
D1: Bin Packing Algorithms. D1: Bin-Packing Algorithms Bin-packing algorithms can be used to find ways to complete a number of tasks in given time slots,
Priority Models Sashka Davis University of California, San Diego June 1, 2003.
Minimizing Flow Time on Multiple Machines Nikhil Bansal IBM Research, T.J. Watson.
Online Function Tracking with Generalized Penalties Marcin Bieńkowski Institute of Computer Science, University of Wrocław, Poland Stefan Schmid Deutsche.
 On-line problem  Input arrives one at a time, and a decision is made (and cannot be changed).  In the minADM problem: lightpaths arrive one at a time,
Paging for Multi-Core Shared Caches Alejandro López-Ortiz, Alejandro Salinger ITCS, January 8 th, 2012.
Improved results for a memory allocation problem Rob van Stee University of Karlsruhe Germany Leah Epstein University of Haifa Israel WADS 2007 WAOA 2007.
1/24 Algorithms for Generalized Caching Nikhil Bansal IBM Research Niv Buchbinder Open Univ. Israel Seffi Naor Technion.
Integer programming Branch & bound algorithm ( B&B )
Load Balancing Tasks with Overlapping Requirements Milan Vojnovic Microsoft Research Joint work with Dan Alistarh, Christos Gkantsidis, Jennifer Iglesias,
Chapter 12 Coping with the Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
Yossi Azar Tel Aviv University Joint work with Ilan Cohen Serving in the Dark 1.
Why is bin packing interesting?
Round and Approx: A technique for packing problems Nikhil Bansal (IBM Watson) Maxim Sviridenko (IBM Watson) Alberto Caprara (U. Bologna, Italy)
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.
Optimal Scheduling of File Transfers with Divisible Sizes on Multiple Disjoint Paths Mugurel Ionut Andreica Polytechnic University of Bucharest Computer.
© 2009 IBM Corporation 1 Improving Consolidation of Virtual Machines with Risk-aware Bandwidth Oversubscription in Compute Clouds Amir Epstein Joint work.
Approximation Algorithms for Knapsack Problems 1 Tsvi Kopelowitz Modified by Ariel Rosenfeld.
Packing Rectangles into Bins Nikhil Bansal (CMU) Joint with Maxim Sviridenko (IBM)
Online Algorithms By: Sean Keith. An online algorithm is an algorithm that receives its input over time, where knowledge of the entire input is not available.
Competitive Queue Policies for Differentiated Services Seminar in Packet Networks1 Competitive Queue Policies for Differentiated Services William.
An Analysis of First-Fit N.S. Narayanaswamy (IITM) Work with R. Subhash Babu.
On the Approximability of Geometric and Geographic Generalization and the Min- Max Bin Covering Problem Michael T. Goodrich Dept. of Computer Science joint.
Outline Introduction Minimizing the makespan Minimizing total flowtime
A Membrane Algorithm for the Min Storage problem Dipartimento di Informatica, Sistemistica e Comunicazione Università degli Studi di Milano – Bicocca WMC.
A Optimal On-line Algorithm for k Servers on Trees Author : Marek Chrobak Lawrence L. Larmore 報告人:羅正偉.
Loss-Bounded Analysis for Differentiated Services. By Alexander Kesselman and Yishay Mansour Presented By Sharon Lubasz
The Analysis of Optimal Stream Merging Solutions for Media-on- Demand Amotz Bar-Noy CUNY and Brooklyn College Richard Ladner University of Washington.
Computability NP complete problems. Space complexity. Homework: [Post proposal]. Find PSPACE- Complete problems. Work on presentations.
Scheduling Techniques for Media-on-Demand Amotz Bar-Noy Brooklyn College Richard Ladner Tami Tamir University of Washington.
NP Completeness Piyush Kumar. Today Reductions Proving Lower Bounds revisited Decision and Optimization Problems SAT and 3-SAT P Vs NP Dealing with NP-Complete.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
1 Scheduling Techniques for Broadcasting Popular Media. Amotz Bar-Noy Brooklyn College Richard Ladner Tami Tamir University of Washington.
Competitive Queueing Policies for QoS Switches Nir Andelman Yishay Mansour An Zhu TAUTAUStanford.
Errol Lloyd Design and Analysis of Algorithms Approximation Algorithms for NP-complete Problems Bin Packing Networks.
BIN SORTING Problem Pack the following items in bins of size Firstly, find the lower bound by summing the numbers to be packed.
Bin Packing First fit decreasing algorithm
Algorithm Design Methods
Greedy Algorithms / Caching Problem Yin Tat Lee
Exam 2 LZW not on syllabus. 73% / 75%.
Bin Packing First fit decreasing algorithm
Bin packing – First fit algorithm
A new and improved algorithm for online bin packing
Polynomial time approximation scheme
Bin Packing First fit decreasing algorithm
Bin Packing First fit decreasing algorithm
Algorithm Design Methods
An Optimal Lower Bound for Buffer Management in Multi-Queue Switches
Presentation transcript:

1 Windows Scheduling as a Restricted Version of Bin-packing. Amotz Bar-Noy Brooklyn College Richard Ladner Tami Tamir University of Washington

2 The Bin Packing Problem  Input: Items of sizes at most 1  Output: A feasible packing in bins of size 1  Goal: minimize number of bins used Example: Input: A packing in 3 bins:

3 The Windows Scheduling Problem  Input: A set W={w 1,w 2,…,w n } of requests for periodic broadcast. A request with window w i needs to be broadcasted at least once in any window of w i time-slots.  Output: A feasible windows scheduling of W.  Goal: minimize number of channels used. Example: Input: W={2,4,5} Output: one channel … There is at least one transmission of in any window of 5 time-slots 5 There is at least one transmission of in any window of 4 time-slots 4

4 The Windows Scheduling Problem Windows Scheduling has applications in media delivery systems, and in machine maintenance. - Client-server-provider. - QoS in push system. - Periodic job-scheduling. - MoD systems. Transmit the weather at least once in any 3 time-slots. Replace batteries at least once a week

5 Windows Scheduling vs. Bin Packing  It is possible to schedule W={2,4,5} on one channel. It must be that  In particular, it is possible to pack in a single bin … Bandwidth requests 1/21/41/5 A packing A schedule

6 Windows Scheduling vs. Bin Packing  In general, if W={w 1,w 2,…,w n } can be scheduled on h channels then and the schedule induces a packing.  However, it might be possible to pack {1/w i } into h bins, but not to schedule W on h channels. Example: W={2,3,6} /21/31/6 A packing No schedule

7 Unit Fractions Bin Packing  A Unit Fraction: A fraction of the form 1/w for an integer w.  Windows Scheduling (WS) is a restricted version of Unit Fractions Bin Packing (UFBP).  Our work considers:  The relationship between BP and UFBP.  The relationship between UFBP and WS.  Offline and Online versions of both problems. UFBP isolates the ‘partition’ problem of WS. WS is UFBP with additional requirements.

8 Offline UFBP  Input: integers W={w 1,w 2,…,w n }.  Goal: Bin packing of {1/w 1, 1/w 2,…,1/w n }.  Is it NP-hard? We only know it is NP-hard for bins of arbitrary size.  Let. Clearly, OPT(W)  H(W).  We show: An algorithm that uses at most H(W)+1 bins (additive error of one for any input).

9 Any-fit Decreasing for Offline UFBP 1.Sort the items such that 1/w 1  1/w 2    1/w n 2.Pack the items in this order, each item is placed in any open bin that can accommodate it, or in a new bin, if none exists. Theorem: The number of bins used is at most Proof idea: After packing all the items of size at least 1/k : (i) There are at most k-1 non-full bins, and (ii) Each of the non-full bins is at least 1-1/k full.

10 Any-fit Decreasing for Offline UFBP Remark: The analysis is tight (the alg. is not optimal) Example: - in decreasing order. - Can be packed in two bins: - Will be packed in three bins:

11 On-line UFBP  Input: a sequence of integers  = w 1, w 2,…, w n  Goal: Online Bin packing of 1/w 1, 1/w 2,…, 1/w n (Pack 1/w i with n, w i+1, w i+2,…, w n unknown)  Recall: For regular BP, there are close lower and upper bounds on the competitive ratio of any online algorithm (1.54 [van Vliet] and 1.59 [Seiden]).  Can we do better with unit fractions?

12 On-line UFBP  Recall:  Lower Bound: H(  ) +  (ln H(  ))  Upper Bound: An algorithm.  Performance of traditional ‘fit’ algorithms:  Next-fit is 2-competitive (like BP)  First-fit, Best-fit are 1.2-competitive (1.7 for BP [JDUGG 74]) For any on-line algorithm A, and for any integer h > 0, there exists a sequence  such that H(  ) > h and A uses at least H(  )+  (ln H(  )) bins.

13 On-line Windows Scheduling  Input: a sequence of integers  = w 1,w 2,….  Goal: On-line windows scheduling of w 1, w 2,…. on a minimal number of channels.  Example:  A better one:

14 Algorithm for On-line WS Building blocks: Optimal on-line algorithms for ‘easy’ sequences: - For any odd c we present an algorithm A c such that: For any sequence  in which for all i,, A c schedules  on H(  ) channels. Specifically: A 1 schedules optimally sequences over {1, 2, 4,…,2 j }. A 3 schedules optimally sequences over {3, 6, 12,…, 3·2 j }. A c schedules optimally sequences over {c, 2c, 4c,…, c·2 j }.

15 Algorithm A * for On-line WS 1.Each request w in the (arbitrary) on-line sequence, is rounded down to a number w’=c2 v, c  {1,3,…,2k-1}, such that w-w’ is minimized. 2.All the requests rounded to c2 v’ (for some v’) are packed (optimally) by A c Theorem: The total number of channels used is at most Due to the rounding (bandwidth loss) One for each possible choice of ‘c’ k

16 Example : A * Input: In A 2 * each request is rounded to the nearest 2 v or 3·2 v 5 - rounded to 4, packed by A 1. A 1 : {1, 2, 4,…,2 j } A 3 : {3,6,12,…,3 · 2 j } - rounded to 3, packed by A rounded to 6, packed by A rounded to 8, packed by A rounded to 6, packed by A 3. - rounded to 2, packed by A rounded to 8, packed by A

17 The Algorithm A * Recall: The total number of channels used by A k * is at most If H(  ) is known, then minimizes the number of channels for this algorithm. In A *, k is increased dynamically as H(  ) is increased. At each time (k-1) 2 < H(  )  k 2. Theorem: The number of channels used by A * to schedule  is at most What is a good choice of k?

18 Summary of Results: UFBP vs. WS Off-lineOn-line Lower bound (UFBP and WS) H(  ) H(  ) +  (ln H(  )) UFBP upper bound H(  ) + 1 WS upper bound H(  ) + O(ln H(  )) [BL02] APX-hard (reduction from 3D3M).

19 Open Problems Off-lineOn-line Lower bound (UFBP and WS) H(  ) H(  ) +  (ln H(  )) UFBP upper bound H(  ) + 1 WS upper bound H(  ) + O(ln H(  )) [BL02] hardness unknown Same for UFBP and WS? Reduce it? Increase for WS? WS with migrations