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.

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.
Fakultät für informatik informatik 12 technische universität dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund,
On the Complexity of Scheduling
Class-constrained Resource Allocation Problems Tami Tamir Thesis advisor: Hadas Shachnai.
Tight Bounds for Online Class- constrained Packing Hadas Shachnai Bell Labs and The Technion IIT Tami Tamir The Technion IIT.
ECE 667 Synthesis and Verification of Digital Circuits
Class-constrained Packing Problems with Application to Storage Management in Multimedia Systems Tami Tamir Department of Computer Science The Technion.
Fast Algorithms For Hierarchical Range Histogram Constructions
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
ISE480 Sequencing and Scheduling Izmir University of Economics ISE Fall Semestre.
Online Scheduling with Known Arrival Times Nicholas G Hall (Ohio State University) Marc E Posner (Ohio State University) Chris N Potts (University of Southampton)
Polynomial Time Approximation Schemes Presented By: Leonid Barenboim Roee Weisbert.
Parallel Scheduling of Complex DAGs under Uncertainty Grzegorz Malewicz.
Truthful Approximation Mechanisms for Scheduling Selfish Related Machines Motti Sorani, Nir Andelman & Yossi Azar Tel-Aviv University.
1 IOE/MFG 543 Chapter 3: Single machine models (Sections 3.1 and 3.2)
1 IOE/MFG 543 Chapter 5: Parallel machine models (Sections )
Completion Time Scheduling Notes from Hall, Schulz, Shmoys and Wein, Mathematics of Operations Research, Vol 22, , 1997.
Parameterized Approximation Scheme for the Multiple Knapsack Problem by Klaus Jansen (SODA’09) Speaker: Yue Wang 04/14/2009.
1 Single Machine Deterministic Models Jobs: J 1, J 2,..., J n Assumptions: The machine is always available throughout the scheduling period. The machine.
Krakow, Jan. 9, Outline: 1. Online bidding 2. Cow-path 3. Incremental medians (size approximation) 4. Incremental medians (cost approximation) 5.
1 Set # 3 Dr. LEE Heung Wing Joseph Phone: Office : HJ639.
Polynomial time approximation scheme Lecture 17: Mar 13.
1 On Approximately Fair Allocations of Indivisible Goods Elchanan Mossel Amin Saberi Richard Lipton Vangelis Markakis Georgia Tech AUEB U. C. Berkeley.
Truthful Mechanisms for One-parameter Agents Aaron Archer, Eva Tardos Presented by: Ittai Abraham.
1 Set # 4 Dr. LEE Heung Wing Joseph Phone: Office : HJ639.
Job Scheduling Lecture 19: March 19. Job Scheduling: Unrelated Multiple Machines There are n jobs, each job has: a processing time p(i,j) (the time to.
Ecole Polytechnique, Nov 11, List Scheduling on Related Machines processors Related machines: machines may have different speeds  0.25 
1 Introduction to Approximation Algorithms Lecture 15: Mar 5.
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
1 Fair Allocations of Indivisible Goods Part I: Minimizing Envy Elchanan Mossel Amin Saberi Richard Lipton Vangelis Markakis Georgia Tech CWI U. C. Berkeley.
A Model for Minimizing Active Processor Time Jessica Chang Joint work with Hal Gabow and Samir Khuller.
1 The Santa Claus Problem (Maximizing the minimum load on unrelated machines) Nikhil Bansal (IBM) Maxim Sviridenko (IBM)
1 Approximation Algorithm Instructor: yedeshi
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.
Great Theoretical Ideas in Computer Science.
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.
Packing Rectangles into Bins Nikhil Bansal (CMU) Joint with Maxim Sviridenko (IBM)
Genome Rearrangements [1] Ch Types of Rearrangements Reversal Translocation
1 Combinatorial Algorithms Parametric Pruning. 2 Metric k-center Given a complete undirected graph G = (V, E) with nonnegative edge costs satisfying the.
Princeton University COS 423 Theory of Algorithms Spring 2001 Kevin Wayne Approximation Algorithms These lecture slides are adapted from CLRS.
1 Short Term Scheduling. 2  Planning horizon is short  Multiple unique jobs (tasks) with varying processing times and due dates  Multiple unique jobs.
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.
Outline Introduction Minimizing the makespan Minimizing total flowtime
Operational Research & ManagementOperations Scheduling Economic Lot Scheduling 1.Summary Machine Scheduling 2.ELSP (one item, multiple items) 3.Arbitrary.
Rounding scheme if r * j  1 then r j := 1  When the number of processors assigned in the continuous solution is between 0 and 1 for each task, the speed.
1 BECO 2004 When can one develop an FPTAS for a sequential decision problem? with apologies to Gerhard Woeginger James B. Orlin MIT working jointly with.
1 Online Scheduling With Precedence Constraints Yumei Huo Department of Computer Science College.
Problems in Combinatorial Optimization. Linear Programming.
The geometric GMST problem with grid clustering Presented by 楊劭文, 游岳齊, 吳郁君, 林信仲, 萬高維 Department of Computer Science and Information Engineering, National.
Feb 23, 2010 University of Liverpool Minimizing Total Busy Time in Parallel Scheduling with Application to Optical Networks Michele Flammini – University.
Progress Report 07/30. Virtual Core Scheduling Problem For every time period, the hypervisor scheduler is given a set of virtual cores with their operating.
Single Machine Scheduling Problem Lesson 5. Maximum Lateness and Related Criteria Problem 1|r j |L max is NP-hard.
Approximation Algorithms for Scheduling Lecture 11.
Linear program Separation Oracle. Rounding We consider a single-machine scheduling problem, and see another way of rounding fractional solutions to integer.
Approximation Algorithms for Scheduling
Some Topics in OR.
Parallel Machines (Q||ΣCi , Q|pmtn|ΣCi , R||ΣCi , R|pmtn|Cmax, R|pmtn|Lmax) Lesson 8.
CprE 458/558: Real-Time Systems
On Scheduling in Map-Reduce and Flow-Shops
Approximation Algorithms
Chapter 6: CPU Scheduling
Integer Programming (정수계획법)
Integer Programming (정수계획법)
Selfish Load Balancing
Topic 15 Job Shop Scheduling.
György Dósa – M. Grazia Speranza – Zsolt Tuza:
List Scheduling Given a list of jobs (each with a specified processing time), assign them to processors to minimize makespan (max load) In Graham’s notation:
Ch 4. Periodic Task Scheduling
Presentation transcript:

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 J. Woeginger Univ. of Twente

2 Generalized Multiprocessor Scheduling We need to schedule n jobs on m uniform machines. J j can be preempted at most a j times, a j  0. The machine M i has the rate u i  1. The job J j has processing time t j. Non-preemptive (a j =0). Preemptive (a j =  ). The goal: Minimum makespan Generalizes the classic preemptive and non-preemptive scheduling problems

3 What is Known:  The non-preemptive scheduling problem (  j, a j = 0) is strongly NP-hard (admits PTAS [HS88, ES99]).  The preemptive scheduling problem (  j, a j =  ) can be solved optimally, using at most 2(m-1) preemptions [GS78] (at most m-1 preemptions on identical machines). Note: Similar solvability/approximability results in the identical and uniform machine environments. Question: How many preemptions (in total, or per job) suffice in order to guarantee an optimal polynomial time algorithm?

4 We Investigate this Hardness Gap: 1.The GMS problem (generalized multiprocessor scheduling): Minimize the makespan, where we have job-wise or total bound on the number of preemptions throughout a feasible schedule. 2.The MPS problem (minimum preemptions scheduling): The only feasible schedules are preemptive schedules with smallest possible makespan.The goal is to find a feasible schedule that minimizes the overall number of preemptions.

5 Our Results Hardness of GMS for  j, a j =1 and for any total < 2(m-1). For MPS, matching upper and lower bound on the number of preemptions required by any optimal schedule. J j can be processed simultaneously by  j machines (i.e.,  j,  j  1). A PTAS for GMS instances with fixed number of machines. The scheme has linear running time, and can be applied to instances with release dates, unrelated machines, and arbitrary preemption costs. PTASs for arbitrary number of machines, and a bound on the total number of preemptions. (A distinction between the uniform and identical machine environments)

6 The Power of Unlimited Preemption For a given instance I, with a j  0 and m uniform machines, let w denote the minimum makespan of a schedule with preemptions. Theorem 1: It is easy to compute w (a function of the t j ’s and the u i ’s). Consider the LPT algorithm, that assigns jobs of I to the machines in order of non-increasing processing times. This is a feasible non-preemptive schedule of I. Theorem 2: Any LPT schedule yields a 2-approximation for w. Holds also for parallelizable jobs (i.e.,  j,  j  1).

7 The Power of Unlimited Preemption This 2 bound is tight already for identical jobs and identical machines: Consider an instance with m machines and m+1 jobs,  j, a j  0, t j =t.  i, u i =1. preemptive Makespan = t(1+1/m). Non-preemptive Makespan = 2t.

8 A PTAS for GMS: Overview  ‘Guess’ the minimum makespan, T opt, and the maximum load on any machine, P, to within factor of (1+  ).  Partition the jobs to the sets ‘big’, ‘small’ and ‘tiny’ (as in [SW-98] ). Find a feasible preemptive schedule of the big jobs in the interval [0, T opt (1+  )]. The small jobs have non-negligible processing times; however, the overall processing time of the set is small relative to an optimal solution. Schedule the small jobs non-preemptively. Add the tiny jobs greedily, with no preemptions.

9 A PTAS for GMS (Cont.) big 0 P u 1  u 2  u 3  u 4 ; after scheduling B: C 1 = C 2 = C 3 = C 4 = T opt small tiny a 1 = 3 a 2 = 6

10 Analysis of the Scheme  The big jobs can be scheduled optimally with preemptions in [0, T opt (1+  )] in polynomial time, by taking B= {J j | t j >  P}, (for some   (0,1]). Use a fixed number of scheduling points, and a fixed number of segment sizes. Lemma : There exists    ( ,m)  (0,1], such that taking S= {J j |  ·  P < t j   P}, we get that  t j   P. Jj  S  We may add all the small jobs at the end of the schedule on the fastest machine. Let  =  ( , m) be a parameter.

11 Analysis of the Scheme (Cont.)  The tiny jobs contribute at most  P processing units to the maximally loaded machine, since the number of tiny jobs that extend the schedule is bounded by the number of ‘holes’ on any machine. We take T= {J j | t j   P/m}. Theorem: The above scheme yields a (1+  )-approximation to the minimum makespan, in O( ) steps.

12 Minimizing the Number of Preemptions We count the number of segments, N s (I), generated for an instance I. N s (I) = #preemptions(I) + n. 1. Lower Bound:  m,b, there exists an instance, I, in which  j,  j  b, and in any optimal schedule of I, N s (I)  m+n+  m/b  Upper Bound: We present an algorithm that produces for any m,b, and any instance I in which  j,  j  b, an optimal schedule with N s (I)  m+n+  m/b  -2

13 Upper Bound Proof (Algorithm) Assume that  j,  j =1. Step 1: calculate w (the optimal makespan). Step 2: schedule the jobs one after the other, each job is scheduled on one DPS. A DPS (Disjoint Processor System): a union of disjoint idle-segments of r machines with non-decreasing rates, such that the union of the idle segments is the interval [0,w]. 0 w An idle machine forms a DPS (r=1) 0 w Two machines that form a DPS (r=2) idle

14 1/2 Upper Bound Proof (Algorithm) An Example: 3 machines, with rates 2,3,5 3 jobs, with lengths 4,3,3. In this case, w=  t j /  u i = 1. Initially, each machine forms a DPS M3M2M1M3M2M1 M 2,3 M The longest job (t=4) is scheduled for 1/2 time unit on each of the machines M 2, M 3. Available DPSs The remainders of M2 and M3 form a new DPS.

15 2/3 1/2 Upper Bound Proof (Algorithm) M3M2M1M3M2M1 M 2,3 M Available DPSs The next (t=3) is scheduled on a DPS consisting of M 2,3 and M 1. We need to solve one equation in order to find the time 2/3 (3 = 3*1/2 + 5*1/6 + 2*1/3). We are left with one DPS, consisting of the remaining idle segments of M 1,M 3. The last job is scheduled on this DPS (3 = 2*2/3 + 5*1/3). M3M2M1M3M2M1 M 1,3 52

16 Algorithm Analysis Using amortized analysis, we show that the total number of segments allocated by the algorithm is at most n+2(m-1). Since each job is scheduled on a single DPS, the requirement  j,  j =1 is preserved. For arbitrary values of  j ’s the algorithm schedules each job on at most  j consecutive DPSs, and by similar arguments we have N s (I)  n+m+  m/b  -2. For the special case of  j,  j =1, our algorithm and its analysis are simpler than the known algorithm [GS-78].

17 Related Work Preemptive scheduling (a j = ,  j). ( Horvath, Lam and Sethi, 1977 ). Non-preemptive scheduling (a j =0,  j).  LPT is 2-optimal ( Gonzalez, Ibarra and Sahni, 1977 )  PTASs (Hochbaum and Shmoys, 1987; Hochbaum and Shmoys, 1988; Epstein and Sgall, 1999) MPS for non-parallelizable jobs (Gonzalez and Sahni, 1978) A wide literature on scheduling parallelizable jobs

18 What is Known:  The non-preemptive scheduling problem (  j, a j = 0) is strongly NP-hard (admits PTAS [Hochbaum and Shmoys, 1987, 1988; Epstein and Sgall, 1999] ).  The preemptive scheduling problem (  j, a j =  ) can be solved optimally [Horvath, Lam and Sethi, 1977], using at most 2(m-1) preemptions [Gonzalez and Sahni 1978] (at most m-1 preemptions on identical machines [McNaughton 1959] ). Note: Similar solvability/approximability results in the identical and uniform machine environments. Question: How many preemptions (in total, or per job) suffice in order to guarantee an optimal polynomial time algorithm?

19 The Power of Unlimited Preemption This 2 bound is tight already for identical jobs and identical machines: Consider an instance with m machines and m+1 jobs,  j, a j  0, t j =t.  i, u i =1. Preemptive, C max =t(1+1/m).Non-preemptive, C max = 2t. This result extends the result known for non- preemptive scheduling [ Gonzalez, Ibarra and Sahni, 1977].