LPT rule: Whenever a machine becomes free for assignment, assign that job whose. processing time is the largest among those jobs not yet assigned.

Similar documents
Partition is reducible to P2 C max. c. P2 Pj = 1, prec Cmax is solvable in polynomial time. P Pj = 1, prec Cmax is NP-hard

Lecture 2: Scheduling on Parallel Machines

P C max. NP-complete from partition. Example j p j What is the makespan on 2 machines? 3 machines? 4 machines?

Algorithm Design. Scheduling Algorithms. Part 2. Parallel machines. Open-shop Scheduling. Job-shop Scheduling.

Scheduling on Unrelated Parallel Machines. Approximation Algorithms, V. V. Vazirani Book Chapter 17

Chapter 11. Approximation Algorithms. Slides by Kevin Wayne Pearson-Addison Wesley. All rights reserved.

This means that we can assume each list ) is

Single Machine Models

1 Ordinary Load Balancing

arxiv: v1 [cs.ds] 6 Jun 2018

Chapter 11. Approximation Algorithms. Slides by Kevin Wayne Pearson-Addison Wesley. All rights reserved.

CS521 CSE IITG 11/23/2012

Bin packing and scheduling

Approximation Algorithms for scheduling

Minimizing Mean Flowtime and Makespan on Master-Slave Systems

4 Sequencing problem with heads and tails

A note on semi-online machine covering

Linear Programming. Scheduling problems

Online Scheduling of Parallel Jobs on Two Machines is 2-Competitive

More Approximation Algorithms

Dynamic Programming( Weighted Interval Scheduling)

An improved approximation algorithm for two-machine flow shop scheduling with an availability constraint

Scheduling Parallel Jobs with Linear Speedup

Metode şi Algoritmi de Planificare (MAP) Curs 2 Introducere în problematica planificării

University of Twente. Faculty of Mathematical Sciences. Scheduling split-jobs on parallel machines. University for Technical and Social Sciences

Preemptive Online Scheduling: Optimal Algorithms for All Speeds

Single Machine Problems Polynomial Cases

Algorithms Design & Analysis. Approximation Algorithm

Algorithms. Outline! Approximation Algorithms. The class APX. The intelligence behind the hardware. ! Based on

No-Idle, No-Wait: When Shop Scheduling Meets Dominoes, Eulerian and Hamiltonian Paths

Machine Minimization for Scheduling Jobs with Interval Constraints

APTAS for Bin Packing

CS 580: Algorithm Design and Analysis. Jeremiah Blocki Purdue University Spring 2018

Combinatorial Structure of Single machine rescheduling problem

CSE101: Design and Analysis of Algorithms. Ragesh Jaiswal, CSE, UCSD

Recoverable Robustness in Scheduling Problems

Deterministic Models: Preliminaries

Scheduling: Open Shop Problems. R. Chandrasekaran

A polynomial-time approximation scheme for the two-machine flow shop scheduling problem with an availability constraint

A Framework for Scheduling with Online Availability

RCPSP Single Machine Problems

Algorithm Design and Analysis

Ideal preemptive schedules on two processors

Worst-case analysis of the LPT algorithm for single processor scheduling with time restrictions

Real-time Scheduling of Periodic Tasks (2) Advanced Operating Systems Lecture 3

Single processor scheduling with time restrictions

Machine scheduling with resource dependent processing times

HEURISTICS FOR TWO-MACHINE FLOWSHOP SCHEDULING WITH SETUP TIMES AND AN AVAILABILITY CONSTRAINT

Complexity of preemptive minsum scheduling on unrelated parallel machines Sitters, R.A.

these durations are not neglected. Little is known about the general problem of scheduling typed task systems: Jae [16] and Jansen [18] studied the pr

Single Machine Scheduling with Job-Dependent Machine Deterioration

Improved Bounds for Flow Shop Scheduling

Single machine scheduling with forbidden start times

CS 374: Algorithms & Models of Computation, Spring 2017 Greedy Algorithms Lecture 19 April 4, 2017 Chandra Chekuri (UIUC) CS374 1 Spring / 1

Single Machine Scheduling with a Non-renewable Financial Resource

Single machine batch scheduling with release times

Scheduling Lecture 1: Scheduling on One Machine

Batch delivery scheduling with simple linear deterioration on a single machine 1

STABILITY OF JOHNSON S SCHEDULE WITH LIMITED MACHINE AVAILABILITY

Multiprocessor jobs, preemptive schedules, and one-competitive online algorithms

hal , version 1-27 Mar 2014

Approximation Algorithms (Load Balancing)

Online Appendix for Coordination of Outsourced Operations at a Third-Party Facility Subject to Booking, Overtime, and Tardiness Costs

The makespan problem of scheduling multi groups of jobs on multi processors at different speeds

Approximation schemes for parallel machine scheduling with non-renewable resources

Lecture 4 Scheduling 1

Research Article Batch Scheduling on Two-Machine Flowshop with Machine-Dependent Setup Times

Logic-based Benders Decomposition

15.1 Proof of the Cook-Levin Theorem: SAT is NP-complete

On Two Class-Constrained Versions of the Multiple Knapsack Problem

Non-clairvoyant Scheduling Games

Heuristics for two-machine flowshop scheduling with setup times and an availability constraint

arxiv:cs/ v1 [cs.ds] 18 Oct 2004

Chapter 4. Greedy Algorithms. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

Contents college 5 and 6 Branch and Bound; Beam Search (Chapter , book)! general introduction

CS325: Analysis of Algorithms, Fall Final Exam

Common-Deadline Lazy Bureaucrat Scheduling Problems

Approximation Schemes for Parallel Machine Scheduling Problems with Controllable Processing Times

1 Maximum Budgeted Allocation

JOB SEQUENCING WITH DEADLINES

UNRESTRICTED scheduling on parallel processors

Santa Claus Schedules Jobs on Unrelated Machines

Techniques for Proving Approximation Ratios in Scheduling

arxiv: v2 [cs.ds] 27 Nov 2014

Time-optimal scheduling for high throughput screening processes using cyclic discrete event models

FH2(P 2,P2) hybrid flow shop scheduling with recirculation of jobs

Priority-driven Scheduling of Periodic Tasks (1) Advanced Operating Systems (M) Lecture 4

Scheduling jobs on two uniform parallel machines to minimize the makespan

Scheduling chains of operations on a batching machine with disjoint sets of operation compatibility

Proofs for all the results presented in the body of the article are presented below: ProofofLemma1:Consider a Nash schedule S where x O i > P i

Chapter 4. Greedy Algorithms. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

A Robust APTAS for the Classical Bin Packing Problem

Minimizing the weighted completion time on a single machine with periodic maintenance

This is an auxiliary note; its goal is to prove a form of the Chinese Remainder Theorem that will be used in [2].

CSE 421 Greedy Algorithms / Interval Scheduling

Data Structures and Algorithms

Shop problems in scheduling

CS 161: Design and Analysis of Algorithms

arxiv: v2 [cs.dm] 2 Mar 2017

HYBRID FLOW-SHOP WITH ADJUSTMENT

Transcription:

LPT rule Whenever a machine becomes free for assignment, assign that job whose processing time is the largest among those jobs not yet assigned. Example m1 m2 m3 J3 Ji J1 J2 J3 J4 J5 J6 6 5 3 3 2 1 3 5 6 7 J1 J6 J2 J5 J4 Optimal schedule p i = 20 p i / m = 20 / 3 = 6.67 Optimal schedule length must be an integer. Thm Let TS be a set of n independent jobs and m be the number of machines. We have t LPT (TS, m) / t opt (TS, m) 4/3 1/(3m), where t LPT (TS, m) and t opt (TS, m) denote the Cmax of the LPT schedule and the optimal schedule, respectively. Moreover, the bound is achievable for every m. CS 537 Scheduling Algorithms 25

m = 2 3, 3, 2, 2, 2 LPT 0 3 5 7 3 2 2 3 2 OPT 0 6 2 2 2 3 3 m = 3 5, 5, 4, 4, 3, 3, 3 LPT 5 3 3 5 3 4 4 11 OPT 0 9 5 4 5 4 3 3 3 General m 2m+1 jobs P 1 = P 2 = 2m - 1 P 3 = P 4 = 2m 2 P 5 = P 6 = 2m 3 P 2m-1 = P 2m = P 2m+1 = m CS 537 Scheduling Algorithms 26

For m even, we have 3m-1 4m-1 LPT J 1 J 2m J 2m+1 J 2 J 2m-1 J 3 J 2m-2 J 4 J 2m-3 J m-1 J m+2 J m J m+1 3m OPT J m-1 J 1 J 2m-2 J 2 J 2m-3 J 3 J 2m-4 J 4 J 2m-5 J m J 2m-1 J 2m J 2m+1 CS 537 Scheduling Algorithms 27

Proof The theorem is trivially true for m = 1. Assume m 2. The proof is by contradiction. 1. Assume TS is the smallest (in terms of number of jobs) set of jobs that violates the bounds. Assume the jobs are ordered in descending order of their processing times, i.e. p 1 p 2 p n. Let s i (S LPT ) and f i (S LPT ) denote the starting time and finishing time of J i in S LPT, respectively. Note that s i (S LPT ) s i+1 (S LPT ) for 1 i n. 2. Claim 1 1. f n (S LPT ) = t LPT (TS,m) 2. f i (S LPT ) < t LPT (TS,m) 1 i n-1 Proof Suppose not. Let Jr(r<n) be such that f r (S LPT ) = t LPT (TS,m). Consider TS = {J 1,, J r }. Clearly t LPT (TS,m) = t LPT (TS,m). On the other hand, t OPT (TS,m) t OPT (TS,m). Therefore, t LPT (TS,m) / t OPT (TS,m) t LPT (TS,m) / t OPT (TS,m) > 4/3 1/3m Therefore TS is a smaller set of jobs that violates the bound. Contradiction! CS 537 Scheduling Algorithms 28

Claim 2 In an optimal schedule for TS, no machine can execute more than 2 jobs. Proof t OPT (TS, m) 1/m (j= 1 to n) p j S n (S LPT ) 1/m (j= 1 to n-1) p j t LPT (TS, m) = S n (S LPT ) + p n 1/m (j= 1 to n-1) p j + p n = 1/m (j= 1 to n) p j + (1 1/m) p n Therefore, t LPT (TS, m) / t OPT (TS, m) [1/m p j (j= 1 to n) + (1 1/m) p n ] / t OPT (TS, m) 1 + [(1 1/m) p n / t OPT (TS, m)] Since, t LPT (TS, m) / t OPT (TS, m) > 4/3 1/(3m), we have 1 + (1 1/m) p n / t OPT (TS, m) > 4/3 1/(3m) or t OPT (TS, m) < 3 p n Since P n is the smallest processing time, the optimal schedule can have at most 2 jobs on each machine. CS 537 Scheduling Algorithms 29

We will transform the optimal schedule in such a way that the schedule length (makespan) will never be increased. Finally, it is shown that the transformed schedule is isomorphic to the LPT schedule. since we assume that t LPT (TS, m) / t OPT (TS, m) > 4/3 1/3m > 1 Type I operation M k > M k No change in schedule length Type II operation M k M l > CS 537 Scheduling Algorithms 30

M k M l No change in schedule length Type III Operation M k M l > > M k M l No change in schedule length Apply Types I, II, and III operations exhaustively until none can be applied. We obtain the following type of schedule (by rearranging machines if necessary) CS 537 Scheduling Algorithms 31

Pk 1 Pk 2 Pk s 1 1 2 2 t t Pk 1 Pk 2 Pk s 1 2 t Since no Type I operation can be applied, we have l l 1 l t Since no Type II operation can be applied, we have Pk s 1 Since no Type III operation can be applied, we have t t-1 1 Therefore Pk 1 Pk 2 Pk s l t t 1 The transformed schedule looks very much like the LPT schedule. In fact, they can be different only in the assignment of the second layer jobs. CS 537 Scheduling Algorithms 32

Consider 2 machines, both of which have 2 jobs assigned p p p q q q p q q p And p > q + q LPT rule would assign p to machine q. But this means that there is an optimal schedule with 1 machine having 3 jobs. to claim 2. Hence, we conclude that the transformed schedule is isomorphic to S LPT. Therefore t LPT (TS,m) = t OPT (TS,m). To show that at most a finite number of Type I, II, or III operations can be applied. Define Ij(S) to be the last time t such that machine j becomes idle in S. Let J(S) = (1 i < j m) I i (s) I j (s) 1. If S is obtained from S by a Type I operation, then J(S ) = J(S) CS 537 Scheduling Algorithms 33

2. If S is obtained from S by a Type II or III operation, then J(S ) < J(S) Between any Type II or III operations, there are at most m Type I operation that can be applied. Only a finite number of Type II or III operations can be applied because of conditions (2) and because there are only a finite number of schedules. P prmp Cmax P2 prmp, prec Cmax P prmp, intree Cmax P prmp, outtree Cmax ** All the above can be solved in polynomial time ** P prmp, prec Cmax is NP-hard Pm prmp, prec Cmax is open for fixed m > 2 CS 537 Scheduling Algorithms 34

P prmp Cmax can be solved by McNaughton s Rule 1. Compute t = max { max {}, 1/m ( i = 1 to n) } t is a lower bound for the optimal makespan 2. Schedule jobs one by one (wrap around if needed) J 4 J 1 J 2 J 2 J 3 J 4 t CS 537 Scheduling Algorithms 35