Feb 23, 2010 University of Liverpool Minimizing Total Busy Time in Parallel Scheduling with Application to Optical Networks Michele Flammini – University.

Slides:



Advertisements
Similar presentations
Alexander Kononov Sobolev Institute of Mathematics Siberian Branch of Russian Academy of Science Novosibirsk, Russia.
Advertisements

On allocations that maximize fairness Uriel Feige Microsoft Research and Weizmann Institute.
 Review: The Greedy Method
Class-constrained Packing Problems with Application to Storage Management in Multimedia Systems Tami Tamir Department of Computer Science The Technion.
Properties of SPT schedules Eric Angel, Evripidis Bampis, Fanny Pascual LaMI, university of Evry, France MISTA 2005.
Approximation, Chance and Networks Lecture Notes BISS 2005, Bertinoro March Alessandro Panconesi University La Sapienza of Rome.
Approximative Kernelization: On the Trade-off between Fidelity and Kernel Size joint with Michael Fellows and Frances Rosamond Charles Darwin University.
Dynamic Wavelength Allocation and Wavelength Conversion.
Polynomial Time Approximation Schemes Presented By: Leonid Barenboim Roee Weisbert.
Parallel Scheduling of Complex DAGs under Uncertainty Grzegorz Malewicz.
Approximating the Traffic Grooming Problem Mordo Shalom Tel Hai Academic College & Technion.
The Stackelberg Minimum Spanning Tree Game Jean Cardinal · Erik D. Demaine · Samuel Fiorini · Gwenaël Joret · Stefan Langerman · Ilan Newman · OrenWeimann.
PTAS for Bin-Packing. Special Cases of Bin Packing 1. All item sizes smaller than Claim 1: Proof: If then So assume Therefore:
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
Introduction to Approximation Algorithms Lecture 12: Mar 1.
Parameterized Approximation Scheme for the Multiple Knapsack Problem by Klaus Jansen (SODA’09) Speaker: Yue Wang 04/14/2009.
1 Vertex Cover Problem Given a graph G=(V, E), find V' ⊆ V such that for each edge (u, v) ∈ E at least one of u and v belongs to V’ and |V’| is minimized.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
Preference Analysis Joachim Giesen and Eva Schuberth May 24, 2006.
Scheduling Jobs to Minimize Energy Samir Khuller Joint work with Jessica Chang and Hal Gabow.
Chapter 11: Limitations of Algorithmic Power
Distributed Combinatorial Optimization
1 Introduction to Approximation Algorithms Lecture 15: Mar 5.
(work appeared in SODA 10’) Yuk Hei Chan (Tom)
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
1 Spanning Tree Polytope x1 x2 x3 Lecture 11: Feb 21.
Approximation Algorithms
A Model for Minimizing Active Processor Time Jessica Chang Joint work with Hal Gabow and Samir Khuller.
Improved results for a memory allocation problem Rob van Stee University of Karlsruhe Germany Leah Epstein University of Haifa Israel WADS 2007 WAOA 2007.
Minimizing Makespan and Preemption Costs on a System of Uniform Machines Hadas Shachnai Bell Labs and The Technion IIT Tami Tamir Univ. of Washington Gerhard.
1 Distributed Computing Optical networks: switching cost and traffic grooming Shmuel Zaks ©
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
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.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
© 2009 IBM Corporation 1 Improving Consolidation of Virtual Machines with Risk-aware Bandwidth Oversubscription in Compute Clouds Amir Epstein Joint work.
Batch Scheduling of Conflicting Jobs Hadas Shachnai The Technion Based on joint papers with L. Epstein, M. M. Halldórsson and A. Levin.
Approximation schemes Scheduling problems. Polynomial Time Approximation Scheme (PTAS) Let Π be a minimization problem. An approximation scheme for problem.
Techniques for truthful scheduling Rob van Stee Max Planck Institute for Informatics (MPII) Germany.
Packing Rectangles into Bins Nikhil Bansal (CMU) Joint with Maxim Sviridenko (IBM)
1 §12.4 The Definite Integral The student will learn about the area under a curve defining the definite integral.
Approximation algorithms for TSP with neighborhoods in the plane R 郭秉鈞 R 林傳健.
Restricted Track Assignment with Applications 報告人:林添進.
Princeton University COS 423 Theory of Algorithms Spring 2001 Kevin Wayne Approximation Algorithms These lecture slides are adapted from CLRS.
1 On Completing Latin Squares Iman Hajirasouliha Joint work with Hossein Jowhari, Ravi Kumar, and Ravi Sundaram.
Approximation Schemes Open Shop Problem. O||C max and Om||C max {J 1,..., J n } is set of jobs. {M 1,..., M m } is set of machines. J i : {O i1,..., O.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
Outline Introduction Minimizing the makespan Minimizing total flowtime
1 Approximation Algorithm Updated at 2011/01/03. 2 Approximation Algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
The Dominating Set and its Parametric Dual  the Dominated Set  Lan Lin prepared for theory group meeting on June 11, 2003.
Operational Research & ManagementOperations Scheduling Economic Lot Scheduling 1.Summary Machine Scheduling 2.ELSP (one item, multiple items) 3.Arbitrary.
1 Convex Recoloring of Trees Reuven Bar-Yehuda Ido Feldman.
Unique Games Approximation Amit Weinstein Complexity Seminar, Fall 2006 Based on: “Near Optimal Algorithms for Unique Games" by M. Charikar, K. Makarychev,
The full Steiner tree problem Theoretical Computer Science 306 (2003) C. L. Lu, C. Y. Tang, R. C. T. Lee Reporter: Cheng-Chung Li 2004/06/28.
Vasilis Syrgkanis Cornell University
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.
1 The instructor will be absent on March 29 th. The class resumes on March 31 st.
The geometric GMST problem with grid clustering Presented by 楊劭文, 游岳齊, 吳郁君, 林信仲, 萬高維 Department of Computer Science and Information Engineering, National.
Approximation Algorithms based on linear programming.
Approximation Algorithms for Scheduling Lecture 11.
Timetable Problem solving using Graph Coloring
Linear program Separation Oracle. Rounding We consider a single-machine scheduling problem, and see another way of rounding fractional solutions to integer.
TU/e Algorithms (2IL15) – Lecture 11 1 Approximation Algorithms.
Lecture 32 CSE 331 Nov 16, 2016.
Greedy Algorithms / Interval Scheduling Yin Tat Lee
Computability and Complexity
Lecture 11 Overview Self-Reducibility.
Lecture 11 Overview Self-Reducibility.
Lecture 32 CSE 331 Nov 15, 2017.
NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and Johnson, W.H. Freeman and Company, 1979.
Objectives Approximate a definite integral using the Trapezoidal Rule.
Presentation transcript:

Feb 23, 2010 University of Liverpool Minimizing Total Busy Time in Parallel Scheduling with Application to Optical Networks Michele Flammini – University of L’Aquila Gianpiero Monaco – University of L’Aquila Luca Moscardelli – University of Chieti-Pescara Hadas Shachnai – Technion, Haifa Mordechai Shalom – Tel Hai Academic College Tami Tamir – IDC, Herzlia Shmuel Zaks – Technion, Haifa

Feb 23, 2010 University of Liverpool Problem Statement A job scheduling problem. Parallel machines. n jobs, each job given by an interval. Parallelism parameter g  1 : A machine can process at most g jobs at any given point in time. sjsj cjcj Job j

Feb 23, 2010 University of Liverpool Problem Statement Example: A feasible schedule for g=2 A machine is busy at time t if it processes at least one job at time t. The goal: Minimize the total busy time of all the machines.

Feb 23, 2010 University of Liverpool Problem Statement Solution 1: Cost =busy green + busy red + busy blue A better solution – total width of busy intervals is smaller:

Feb 23, 2010 University of Liverpool Previous Results Batch Scheduling: –The number of machines is given. –The cost function is different Maximum completion time as opposed to Total busy time The problem is NP-Hard even for g=2 –Winkler & Zhang 2003 –(implied by) Flammini et al. 2008

Feb 23, 2010 University of Liverpool Our Results An algorithm with approximation ratio between 3 and 4 for the general case. A 2-approximation algorithm for proper interval graphs. A (2+  )-approximation algorithm for bounded ratio integral instances.

Feb 23, 2010 University of Liverpool Definitions Given a time interval I=[s,c], the length of I is len(I)=c-s. For a set S of intervals, len(S)=  I  S len(I). For a set S of intervals, the span of S is span(S)=len(  I  S I).

Feb 23, 2010 University of Liverpool Properties of OPT For any instance J and parallelism parameter g  1, the optimal solution can be bounded as follows: 1.The parallelism bound: OPT(J)  len(J)/g. 2.The span bound: OPT(J)  span(J). W.l.o.g. no machine is idle (otherwise, split into machines with busy intervals with smaller total length).

Feb 23, 2010 University of Liverpool Algorithm FirstFit Sort jobs in non-increasing order of length, i.e. J 1 ≥ J 2 ≥… J n Start with an empty set of machines. for j=1 to n –Assign j j to the first machine that can accommodate it. –If no machine can accommodate j j, open a new machine and assign j j to this machine.

Feb 23, 2010 University of Liverpool FirstFit-Observation Let some job J be assigned to some machine M i and let 1≤k ≤ i, then There is some time t in J, in which there is “enough” load in M k ”around” t. MiMi MkMk

Feb 23, 2010 University of Liverpool FirstFit-Observation (cont’d) “enough” is g. len(J) “around” is the neighborhood len(J) of t. MiMi MkMk

Feb 23, 2010 University of Liverpool Lemma 2.3 (intuition) The “density” of M k around t is at least ½. span(M i ) can be divided into segments in which the density of M k is at least ½. MiMi MkMk

Feb 23, 2010 University of Liverpool Lemma 2.3 (intuition) The average density of M k on span(M i ) is at least 1/3. MiMi MkMk

Feb 23, 2010 University of Liverpool Lemma 2.3 J i – the set of jobs assigned to M i len( J k ) ≥ g * span( J i ) / 3 span( J i ) ≤ 3 * len( J k )/g In particular: –span( J i ) ≤ 3 * len( J i-1 )/g

Feb 23, 2010 University of Liverpool FirstFit is a 4-approximation –busy 2 = span( J 2 ) ≤ 3 * len( J 1 )/g –busy 3 = span( J 3 ) ≤ 3 * len( J 2 )/g –busy 4 = span( J 4 ) ≤ 3 * len( J 3 )/g –busy 5 = span( J 5 ) ≤ 3 * len( J 4 )/g –….. –FirstFit( J \ J 1 ) < 3 len( J ) / g ≤ 3 OPT( J ) –busy 1 = span( J 1 ) ≤ span( J ) ≤ OPT( J ) –FirstFit( J ) ≤ 4 OPT( J )

Feb 23, 2010 University of Liverpool FirstFit is not a (3-ε)-approximation All jobs have the same length l. g-1 jobs ….. FirstFit = g (3l – 2) OPT = 2 l + (g-1) l = (g+1) l For every g and ε one can find some l, big enough, to get a contradiction.

Feb 23, 2010 University of Liverpool Special Cases 1.Proper Interval Graph: no job interval is properly contained in another. yes no 2. Bounded Lengths Instances: for all 1  j  n, len(J j )  {1,2, …, d}, where d  1 is a fixed constant.

Feb 23, 2010 University of Liverpool Greedy Algorithm for Proper Interval Graphs 1.Sort the jobs in non-decreasing order by their starting points, i.e., s 1  s 2  …  s n. 2.Scan the list of jobs in the above order. If possible, assign the next job to the currently filled machine; else (adding the job forms a (g+1)-clique in the currently filled machine), open a new machine for the currently scheduled job.

Feb 23, 2010 University of Liverpool Greedy Algorithm for Proper Interval Graphs Theorem: Greedy is a 2-approximation for proper interval graphs. Note: FirstFit is not a 2-approximation for proper interval graphs. Greedy t – the number of machines used by Greedy at time t OPT t – the number of machines used by OPT at time t N t – the number of jobs at time t Claim: N t ≥ g (Greedy t – 2) + 2

Feb 23, 2010 University of Liverpool Greedy Algorithm for Proper Interval Graphs Claim: N t ≥ g (Greedy t – 2) + 2 Given time t, consider the Job J that caused Machine Greedy t to be opened M Greedyt J M 1 is processing at least one job J’ M1M1 J’ J’ starts (and therefore ends) before J t All other jobs J’’ that assigned to M 2, M 3, … started after J’, therefore still active

Feb 23, 2010 University of Liverpool Greedy Algorithm for Proper Interval Graphs N t ≥ g (Greedy t – 2) + 2 Using the parallelism bound: OPT t ≥ ceil(N t /g ) = Greedy t - 1 Summing up for all values of t: OPT( J ) ≥ Greedy( J ) – span( J ) Using the span bound: Greedy( J ) ≤ OPT( J ) + span( J ) ≤ 2 OPT( J )

Feb 23, 2010 University of Liverpool Let d be the upper bound on len(J). Divide the instance J into sub instances J 1, J 2, … such that each instance J i consists of jobs starting in [d.i+1, d.(i+1)] Solve each instance separately. This introduces a factor of at most 2 because instance J i is independent of J i+2 due to the bound on the lengths. We will show a PTAS for each instance Algorithm for Bounded Lengths Instances

Feb 23, 2010 University of Liverpool A PTAS for the sub-Instances The running time is polynomial in n,g but exponential in the length of the longest job. Main ideas: When job lengths are rounded, the number of ways to allocate machines to job-classes and to determine the machine’s busy intervals is polynomial. For each such allocation, use f-factor algorithms to assign efficiently independent sets of jobs to machines. Select the best solution among those considered.

Feb 23, 2010 University of Liverpool A PTAS for the sub-Instances Given a parameter ε. Guess the number of machines in an optimal solution. (n possibilities ) Guess the vector of busy times busy i with a relative error ε. (log 1+ ε 2d possibilities) and start times s i (d possibilities). Guess a partition of the jobs to independent sets IS j. –An independent set has at most d elements (constant). –The number of independent sets is bounded by a constant –The number of partitions to such sets is bounded by a constant

Feb 23, 2010 University of Liverpool A PTAS for the sub-Instances Check the feasibility of the guess (s i, busy i, IS j ): Build a bipartite (Machines, Independent Sets) graph. Each machine can accommodate at most g independent sets Each independent set can be assigned to at most one machine. Calculate maximum f-factor with these constrains.