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

Similar documents
Linear Programming. Scheduling problems

Lecture 2: Scheduling on Parallel Machines

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

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

1 Ordinary Load Balancing

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

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

The 2-valued case of makespan minimization with assignment constraints

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

Bin packing and scheduling

This means that we can assume each list ) is

Santa Claus Schedules Jobs on Unrelated Machines

Approximation Algorithms

All-norm Approximation Algorithms

Approximation Algorithms for scheduling

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

15.1 Matching, Components, and Edge cover (Collaborate with Xin Yu)

Topics in Approximation Algorithms Solution for Homework 3

Machine Minimization for Scheduling Jobs with Interval Constraints

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

Duality of LPs and Applications

Iterative Rounding and Relaxation

3.3 Easy ILP problems and totally unimodular matrices

Scheduling Parallel Jobs with Linear Speedup

8 Knapsack Problem 8.1 (Knapsack)

Machine scheduling with resource dependent processing times

The Matching Polytope: General graphs

Lectures 6, 7 and part of 8

Integer Programming Methods LNMB

More on NP and Reductions

A General Framework for Designing Approximation Schemes for Combinatorial Optimization Problems with Many Objectives Combined into One

Separation Techniques for Constrained Nonlinear 0 1 Programming

Solving the MWT. Recall the ILP for the MWT. We can obtain a solution to the MWT problem by solving the following ILP:

6. Linear Programming

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

SDP Relaxations for MAXCUT

Lecture 23 Branch-and-Bound Algorithm. November 3, 2009

Combinatorial Optimization

Topics in Graph Theory

Mathematical Programs Linear Program (LP)

7.4 DO (uniqueness of minimum-cost spanning tree) Prove: if all edge weights are distinct then the minimum-cost spanning tree is unique.

CS675: Convex and Combinatorial Optimization Fall 2014 Combinatorial Problems as Linear Programs. Instructor: Shaddin Dughmi

Separating Hierarchical and General Hub Labelings

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

5 Integer Linear Programming (ILP) E. Amaldi Foundations of Operations Research Politecnico di Milano 1

CO759: Algorithmic Game Theory Spring 2015

On (1, ε)-restricted Assignment Makespan Minimization

Lecture 18: PCP Theorem and Hardness of Approximation I

Lecture 20: LP Relaxation and Approximation Algorithms. 1 Introduction. 2 Vertex Cover problem. CSCI-B609: A Theorist s Toolkit, Fall 2016 Nov 8

The minimum G c cut problem

Math 5707: Graph Theory, Spring 2017 Midterm 3

Integer Programming ISE 418. Lecture 8. Dr. Ted Ralphs

On (1, ε)-restricted Assignment Makespan Minimization

Approximation Algorithms and Hardness of Approximation. IPM, Jan Mohammad R. Salavatipour Department of Computing Science University of Alberta

The Steiner Network Problem

Combinatorische Optimalisering, Exam 25 March 2013

Lecture Semidefinite Programming and Graph Partitioning

Approximation Algorithms for Generalized Assignment Problems

1 Matroid intersection

Lecture 5 January 16, 2013

Topics in Theoretical Computer Science April 08, Lecture 8

Generating p-extremal graphs

1 T 1 = where 1 is the all-ones vector. For the upper bound, let v 1 be the eigenvector corresponding. u:(u,v) E v 1(u)

3. Linear Programming and Polyhedral Combinatorics

Recoverable Robustness in Scheduling Problems

Equitable and semi-equitable coloring of cubic graphs and its application in batch scheduling

CS675: Convex and Combinatorial Optimization Fall 2016 Combinatorial Problems as Linear and Convex Programs. Instructor: Shaddin Dughmi

ACO Comprehensive Exam March 17 and 18, Computability, Complexity and Algorithms

Week 8. 1 LP is easy: the Ellipsoid Method

Approximation Algorithms for Minimum-Load k-facility Location

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

On Two Class-Constrained Versions of the Multiple Knapsack Problem

3.10 Lagrangian relaxation

Approximation Algorithms

4 Packing T-joins and T-cuts

Agenda. Soviet Rail Network, We ve done Greedy Method Divide and Conquer Dynamic Programming

How to Assign Papers to Referees Objectives, Algorithms, Open Problems p.1/21

APPROXIMATION ALGORITHMS FOR SCHEDULING ORDERS ON PARALLEL MACHINES

GRAPH ALGORITHMS Week 7 (13 Nov - 18 Nov 2017)

5 Flows and cuts in digraphs

Corrigendum: The complexity of counting graph homomorphisms

Nowhere zero flow. Definition: A flow on a graph G = (V, E) is a pair (D, f) such that. 1. D is an orientation of G. 2. f is a function on E.

3. Linear Programming and Polyhedral Combinatorics

Chapter 7 Network Flow Problems, I

On Allocating Goods to Maximize Fairness

A An Overview of Complexity Theory for the Algorithm Designer

On Allocating Goods to Maximize Fairness

Two Applications of Maximum Flow

Graphs & Algorithms: Advanced Topics Nowhere-Zero Flows

The Constrained Minimum Weighted Sum of Job Completion Times Problem 1

3.7 Strong valid inequalities for structured ILP problems

Integer Programming Part II

An Improved Approximation Algorithm for Requirement Cut

Knapsack. Bag/knapsack of integer capacity B n items item i has size s i and profit/weight w i

arxiv: v1 [cs.ds] 2 Jan 2009

On the Approximability of Single-Machine Scheduling with Precedence Constraints

Lecture 17 (Nov 3, 2011 ): Approximation via rounding SDP: Max-Cut

CS Algorithms and Complexity

Ma/CS 6b Class 25: Error Correcting Codes 2

MVE165/MMG630, Applied Optimization Lecture 6 Integer linear programming: models and applications; complexity. Ann-Brith Strömberg

Transcription:

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

Description of the problem Problem 17.1 (Scheduling on unrelated parallel machines) Given a set J of jobs, a set M of machines, and for each j J and i M, pij Z + the time taken to process job j on machine i, the problem is to schedule the jobs on the machines so as to minimize the makespan, i.e., the maximum processing time for any machine. We will denote the number of jobs by n and the number of machines by m Unrelated machines No relation between the processing times of a job on the different machines Identical machines Each job j has the same running time, say p ij, on each of the machines Chapter 10 Minimum makespan scheduling (admits PTAS) Uniform machines The processing time for job j on machine i is pij = pj si, is the speed of machine i s i

Parametric Pruning in an LP setting Integer Program minimize subject to xij = 1, j J i M xp ij ij t, i M j J } x {0,1, i M, j J ij t x ij Indicator variable denotes whether job j is scheduled on machine I Makespan t Objective is to minimize makespan t First constraint set Ensures each job is scheduled on one of the machines Unbounded integrality gap Second constraint set Ensures each machine has processing time of at most t Example 17.2 Suppose we have only one job, which has a processing time of m on each of the m machines. Clearly, the minimum makespan is m. However the optimal solution to the LP-relaxation is to schedule the job to the extent of 1 m on each machine, leading to an objective function value of 1. Therefore : Integrality gap = m

Parametric Pruning in an LP setting Unfair advantage given to linear relaxation Integer program automatically sets x ij = 0 if pij > t Linear relaxation allowed to set nonzero values: 0 x ij 1 Possible solution Issue following constraint to the linear relaxation: i M, j J : if p then ij > t x ij = 0 However, this is NOT a linear constraint Actual solution provided by parametric pruning technique Parameter T Z + is our guess for a lower bound on optimal makespan Define ST = {( i, j) pij T} Define a family of linear programs one for each value of ( ) LP T T Z +

Parametric Pruning in an LP setting LP( T ) ( ) x ij uses the variable for i, j ST and asks if there is a feasible, fractional schedule of makespan T using the restricted possibilities ( i: i, j xij = 1, j J ( ) ) S j: i, j S T xp ij ij T, i M T x 0, ( i j) S ij, T

Properties of extreme point solutions Initial step of the algorithm Perform appropriate binary search to find T T is the smallest value of T such that LP(T) has a feasible solution. Clearly T is a lower bound on OPT : LP-rounding algorithm round an extreme point solution to LP T to find a schedule having makespan 2T Extreme point solutons to LP(T) provide many useful properties ( ) T OPT

Properties of extreme point solutions Lemma 17.3 n+ m Any extreme point solution to LP(T) has at most nonzero values Proof Let r = S T represent the number of variables on which LP(T) is defined. A fesible solution to LP(T) is an extreme point solution iff ( ) it corresponds to setting r linearly constraints of LP(T) to equality At least r ( n+ m) of these constraints must be chosen from the third set of constraints (i.e. xij 0 ) Therefore at least r ( n+ m) variables of xij must be set to 0 So, at most r ( n+ m) variables are nonzero Conclusion: Any extreme point solution has at most nonzero variables n+ m

Properties of extreme point solutions Let x be an extreme point solution to LP(T). Job j is integrally set in x if it is entirely assigned to one machine. Otherwise job j is fractionally set in x Corollary 17.4 Any extreme point solution to LP(T) must set at least jobs integrally Proof Let x be an extreme point solution to LP(T), and let α and β be the number of jobs that are integrally and fractionally set by x, respectively Each job of the later kind is assigned to at least 2 machines and therefore results in at least 2 nonzero entries in x. Hence we get α + β = n and α + 2β n+ m Therefore, β m and α n m ( ) Define G = J, M, E to be the bipartite graph on vertex set J M such that j, i Eiff xij 0. Let F J be the set of jobs that are fractionally set in x, and let H be the subgraph of G induced on vertex set F M. A matching in H will be called a perfect matching if it matches every job j F ( ) n m

Scheduling algorithm Algorithm 17.5 (Scheduling on unrelated parallel machines) [ ] 1. By a binary search in the interval α m, α, find the smallest value of T Z + for which LP(T) has a feasible solution. Let this value be T 2. Find an extreme point solution, say x, to LP(T). 3. Assign all integrally set jobs to machines as in x 4. Construct graph H and find a perfect matching M in it (e.g. using the procedure of Lemma 17.7) 5. Assign fractionally set jobs to machines according to matching M

Additional properties of extreme point solutions A connected graph on vertex set V is a pseudo-tree if it contains at most V edges. A graph is a pseudo-forest if each of its connected components is a pseudo-tree. Lemma 17.6 Graph G is a pseudo-forest Proof We will show that the number of edges in each connected component of G is bounded by the number of vertices in it. Hence, each connected component is a pseudo-tree. Consider a connected component G c. Restrict LP(T) and x to the jobs and machines of G only, to obtain LP and. Let represent the rest of x. c c ( T) x x c c The important observation is that x c must be an extreme point solution to LPc ( T). Suppose that this is not the case. Then, x c is a convex combination of two feasible solutions to LPc ( T ). Each of these, together with xc form a feasible solution to LP(T). Therefore, x is a convex combination of two feasible solutions to LP(T), leading to a contradiction Now, applying Lemma 17.3, we get that is a pseudo-tree G c

Additional properties of extreme point solutions Lemma 17.7 Graph H has a perfect matching Proof Graph H is also a pseudo-forest. In H, each job has a degree of at least 2. So, all leaves in H must be machines. Kepp matching a leaf with the job it is incident to, and remove them both from the graph. (at each stage all leaves must be machines.) I the end we will be left with even cycles (since we started with a bipartite graph). Match off alternate edges of each cycle. This gives a perfect matching in H.

Additional properties of extreme point solutions Theorem 17.8 Algorithm 17.5 achieves an approximation guarantee of factor 2 for the problem of scheduling on unrelated parallel machines. Proof Clearly, T OPT, since LP(OPT) has a feasible solution. The extreme point solution x to LP( T ) has a fractional makespan of T. Therefore, the restriction of x to integrally set jobs has a (integral) makespan of T. Each edge ( i, j ) of H satisfies pij T. The perfect matching found in H schedules at most one extra job on each machine. Hence the total makespan is 2T 2 OPT. Finally the algorithm clearly runs in polynomial time