Approximation Algorithms for scheduling

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

1 Ordinary Load Balancing

Lecture 2: Scheduling on Parallel Machines

Linear Programming. Scheduling problems

Embedded Systems 15. REVIEW: Aperiodic scheduling. C i J i 0 a i s i f i d i

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

Flow Shop and Job Shop Models

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

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

Lecture 13. Real-Time Scheduling. Daniel Kästner AbsInt GmbH 2013

Embedded Systems Development

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

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

On Machine Dependency in Shop Scheduling

Approximation Schemes for Parallel Machine Scheduling Problems with Controllable Processing Times

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

HYBRID FLOW-SHOP WITH ADJUSTMENT

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

All-norm Approximation Algorithms

Single Machine Models

The Power of Preemption on Unrelated Machines and Applications to Scheduling Orders

Multiprocessor Scheduling I: Partitioned Scheduling. LS 12, TU Dortmund

Scheduling Parallel Jobs with Linear Speedup

Single Machine Problems Polynomial Cases

Machine scheduling with resource dependent processing times

2 Martin Skutella modeled by machine-dependent release dates r i 0 which denote the earliest point in time when ob may be processed on machine i. Toge

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

Optimal on-line algorithms for single-machine scheduling

Recoverable Robustness in Scheduling Problems

RCPSP Single Machine Problems

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

Polynomially solvable and NP-hard special cases for scheduling with heads and tails

Deterministic Models: Preliminaries

Santa Claus Schedules Jobs on Unrelated Machines

This means that we can assume each list ) is

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

SCHEDULING UNRELATED MACHINES BY RANDOMIZED ROUNDING

CS521 CSE IITG 11/23/2012

Preemptive Online Scheduling: Optimal Algorithms for All Speeds

Minimizing Mean Flowtime and Makespan on Master-Slave Systems

Average-Case Performance Analysis of Online Non-clairvoyant Scheduling of Parallel Tasks with Precedence Constraints

Heuristics Algorithms For Job Sequencing Problems

CMSC 722, AI Planning. Planning and Scheduling

Scheduling jobs on two uniform parallel machines to minimize the makespan

Dependency Graph Approach for Multiprocessor Real-Time Synchronization. TU Dortmund, Germany

Real-Time Systems. Event-Driven Scheduling

Scheduling: Open Shop Problems. R. Chandrasekaran

Embedded Systems - FS 2018

A Framework for Scheduling with Online Availability

Transportation Problem

Lecture 4 Scheduling 1

A new ILS algorithm for parallel machine scheduling problems

The 2-valued case of makespan minimization with assignment constraints

Scheduling to Minimize Total Weighted Completion Time via Time-Indexed Linear Programming Relaxations

1 Basic Definitions. 2 Proof By Contradiction. 3 Exchange Argument

Improved Bounds for Flow Shop Scheduling

IBM Research Report. Minimizing Makespan in No-Wait Job Shops

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

Scheduling with Constraint Programming. Job Shop Cumulative Job Shop

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

Algorithms Design & Analysis. Approximation Algorithm

An approximation algorithm for the minimum latency set cover problem

CSC2420: Algorithm Design, Analysis and Theory Spring (or Winter for pessimists) 2017

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

MINIMIZING SCHEDULE LENGTH OR MAKESPAN CRITERIA FOR PARALLEL PROCESSOR SCHEDULING

More Approximation Algorithms

Scheduling Lecture 1: Scheduling on One Machine

Combinatorial Structure of Single machine rescheduling problem

An on-line approach to hybrid flow shop scheduling with jobs arriving over time

Combinatorial Algorithms for Minimizing the Weighted Sum of Completion Times on a Single Machine

Real-Time Systems. Event-Driven Scheduling

Logic-based Benders Decomposition

Online Scheduling with Bounded Migration

APTAS for Bin Packing

princeton univ. F 17 cos 521: Advanced Algorithm Design Lecture 6: Provable Approximation via Linear Programming

Memorandum COSOR 97-23, 1997, Eindhoven University of Technology

Approximation algorithms for scheduling problems with a modified total weighted tardiness objective

Two Processor Scheduling with Real Release Times and Deadlines

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

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

Complexity analysis of the discrete sequential search problem with group activities

Marjan van den Akker. Han Hoogeveen Jules van Kempen

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

Basic Scheduling Problems with Raw Material Constraints

Chapter 7 Network Flow Problems, I

Task Models and Scheduling

CIS 4930/6930: Principles of Cyber-Physical Systems

Deterministic Scheduling. Dr inż. Krzysztof Giaro Gdańsk University of Technology

APPROXIMATION BOUNDS FOR A GENERAL CLASS OF PRECEDENCE CONSTRAINED PARALLEL MACHINE SCHEDULING PROBLEMS

Networked Embedded Systems WS 2016/17

(Almost) Optimal Coordination Mechanisms for Unrelated Machine Scheduling

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

A New Approximation Algorithm for Unrelated Parallel Machine Scheduling Problem with Release Dates

- Well-characterized problems, min-max relations, approximate certificates. - LP problems in the standard form, primal and dual linear programs

Bin packing and scheduling

4 Sequencing problem with heads and tails

A comparison of sequencing formulations in a constraint generation procedure for avionics scheduling

Network Design and Game Theory Spring 2008 Lecture 6

Selfish Multi-User Task Scheduling

Combinatorial optimization problems

Transcription:

Approximation Algorithms for scheduling Ahmed Abu Safia I.D.:119936343, McGill University, 2004 (COMP 760)

Approximation Algorithms for scheduling Leslie A. Hall The first Chapter of the book entitled Approximation Algorithms for NP-Hard problems edited by Dorit S. Hochbaum Introduction Sequencing with release dates to minimize Lateness Jackson s Rule A simple 3/2 approximation algorithms Identical Parallel Machines Unrelated Parallel Machines Conclusion ג Introduction The problem: We have a set of n jobs J 1,..J n and m identical machines. M 1,..., M m. Each job J j must be processed without interruption for a time p j > 0 on one of the m machines, each of which can process at most one job at a time. List scheduling (LS) Whenever a machine becomes available the next job on the list is assigned to begin processing on that machine. claim: The total makespan (the last job s finish time) of this schedule is at most 2 - (1/m) times the makespan of the optimal schedule. proof Let us denote the starting time and completion time of job J j in the heuristic schedule as s j and C j, respectively, for j = 1,...,n. see (fig-1) If we focus on the last job to complete processing (call it J k ), then no machines can be idle at any time prior to s k, since otherwise job J k would have been processed there. C max p k C max (1/m) n j=1 C LS max = C k = s k + p k (1/m) j k p j + p k p j 2

n = (1/m) p j + (1 1/m)p k j=1 C max + (1 1/m)C max = (2 1/m)C max Sequencing with release dates to minimize Lateness Remember: Once a job begins processing on a machine it must complete its processing without interruption, which contrasts with preemptive scheduling models. Problems are described by three fields: The first: represents the machine environment, the second describes any special conditions or constraints in the model, and the third describes the objective function criterion. P = p j here we consider a single machine, each job J j has a delivery time q j, as well as processing time p j > 0. We define the lateness of a job as the delivery completion time. L j = s j + p j + q j Our goal is to find a schadule that minimizes the maximaum lateness over all jobs, L max = max 1 j n L j On a single machine we can see that an optimal ordering of the jobs to minimize L max is given by ordering the jobs according to non-increasing delivery time. Lets introduce, job release dates into the model, each job J j can not begin its processing before its release date r j. This model is an example of 1 r j L max. This problem is strongly NP-hard, yet one of the easiest. We will use the following lower bounds of the single-machine problem: Jackson s Rule L max P L max r j + p j + q j, j = 1,..., n Lets looks at a generalized version of List Scheduling Theorem: L LS max < 2L max and this bound is tight Proof: Let J k be the job whose lateness attains that of the schedule, i.e.,l LS max = C k +q k. Since there is no idel time on the machine between time r k and s k, we have: L LS max = s k + p k + q k < (r k + P ) + p k + q k = r k + p k + q k + P 2L max Jackson s Rule apply list scheduling to a list ordered by non-increasing delivery times. Corollary: L J max < 2L max and this bound is tight Let s examine this heuristic in more details. We have ane instance of 1 r j L max and a schedule given by Jackson s rule. Define: critical job J c : one whose lateness attains that of the schedule 3

critical sequence: Those jobs tracing backward from J c in J a : the first job in. S: the set of jobs in the critical sequence. L J max = L c = r a + P (S) + q c Observe that for every job J j in the critical sequence, r a r j. For any set of jobs S L max min J j S r j + P (S) + min J j S q j if q c q j for all J j S then the schedule is optimal. L J max L max + q c How does Jackson s Rule go wrong?? If S contains a job J b with q b < q c, then the sequence might not be optimal. Let J b be the last job in S with q b < q c, we call it an interference job, then: L J max L max + p b proof: consider a sub set S S of those jobs processed after J b. By the way J b was chosen, q j q c for all jobs J j S, implies q j q b for all jobs J j S, implies that no job J j S could have been available at time s b, else it would have been taken priority over J b. Thus, r j > s b for all J j S. So, L max min r J j S j + P (S ) + min q J j S j > s b + P (S ) + q k and L J max = s b + p b + P (S ) + q k < L max + p b A simple 3/2 approximation algorithms Due to Nowicki and Smutnicki. consider an instance of 1 r j L max. Let job J d, if it exists, be the unique job with p d > P/2. In no such a job exists, then the schedule given by Jackson s satisfies L J max L max + P/2 (3/2)L max Define: A = {J j : j d, r j q j, j = 1,..., n} When J d exists, clearly P (A) + P (B) < P/2 Algorithm NS B = {J j : j d, r j > q j, j = 1,..., n} step-1: Construct a schedule by Jackson s rule, and determine a critical job J c and a critical sequence. If there exists no interference job J b, then stop and return this schedule. step-2: If min{p b, q c } P/2, then stop and return the schedule of step-1. Otherwise order the jobs of A according to nondecreasing release dates and of B according to non-increasing delivery times. Construct a schedule given by the ordered set A, followed by J b, followed by the ordered set B. Return the better of this schedule and that constructed in step-1. Identical Parallel Machines Theorem: List scheduling is a 2-approximation algorithm for the scheduling problem P r j, prec L max. proof is left to you as an exercise 4

Unrelated Parallel Machines Due to Lenstra, Shmoys, and Tardos. Based on a 2-relaxed decision procedure; that is given a target length of T, the procedure with either correctly deduce that no schedule exits, or it will construct a schedule with make span at most 2T. We will binary search on T. Given T, construct the following: for each job J j : for each machine M i : M(j) := {i : p ij T } J(i) := {j : p ij T } Now consider the following linear feasibility system x ij = 1, j = 1,..., n; i M(j) j J(i) p ij x ij T, i = 1,..., m; x ij 0, i = 1,..., m, j = 1,..., n. A basic feasible solution has at most n+m variables are positive and at most m jobs split (fractional) assignment. As before construct it in two phases: first assign each un-split job to its prober machine and then we focus on assigning the jobs with fractional assignment. If we construct a matching of the fractional jobs to the machines in such a way that each job gets matched to a machine it is already partially assigned to, then we will have constructed an assignment of the fractional jobs that is guaranteed to have length at most T. Fortunately, the feasibility system explained is an example of a generalized assignment problem, whose basic feasible solutions are well known to have a very special form. Construct a graph whose nodes are the jobs and machines of the instances, and whose edges (i,j) correspond to those variables x ij > 0. If the solution x is basic, then the graph constructed will consist of a forest of trees and 1-trees., in which job nodes and machine nodes alternate. delete the job nodes with integral assignment from the graph. (see fig-2), Our task is to construct a matching in this graph, in which every job node gets matched. This matching will corresponds to the desired assignment. HOW Conclusion The results presented here are the most basic models in scheduling. There is a massive literature and if you are interested then there is a list provided by the author and can be found at the end of the chapter. 5