Batch Scheduling of Conflicting Jobs Hadas Shachnai The Technion Based on joint papers with L. Epstein, M. M. Halldórsson and A. Levin.

Slides:



Advertisements
Similar presentations
Minimum Clique Partition Problem with Constrained Weight for Interval Graphs Jianping Li Department of Mathematics Yunnan University Jointed by M.X. Chen.
Advertisements

Max- coloring in trees SRIRAM V.PEMMARAJU AND RAJIV RAMAN BY JAYATI JENNIFER LAW.
1 SOFSEM 2007 Weighted Nearest Neighbor Algorithms for the Graph Exploration Problem on Cycles Eiji Miyano Kyushu Institute of Technology, Japan Joint.
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.
Presented by Yuval Shimron Course
Approximative Kernelization: On the Trade-off between Fidelity and Kernel Size joint with Michael Fellows and Frances Rosamond Charles Darwin University.
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Approximation Algorithms Chapter 5: k-center. Overview n Main issue: Parametric pruning –Technique for approximation algorithms n 2-approx. algorithm.
Five Problems CSE 421 Richard Anderson Winter 2009, Lecture 3.
A polylogarithmic approximation of the minimum bisection Robert Krauthgamer The Hebrew University Joint work with Uri Feige.
Combinatorial Algorithms
CS774. Markov Random Field : Theory and Application Lecture 17 Kyomin Jung KAIST Nov
The number of edge-disjoint transitive triples in a tournament.
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
Approximation Algoirthms: Semidefinite Programming Lecture 19: Mar 22.
Mycielski’s Construction Mycielski’s Construction: From a simple graph G, Mycielski’s Construction produces a simple graph G’ containing G. Beginning with.
Semidefinite Programming
1 Optimization problems such as MAXSAT, MIN NODE COVER, MAX INDEPENDENT SET, MAX CLIQUE, MIN SET COVER, TSP, KNAPSACK, BINPACKING do not have a polynomial.
Perfect Graphs Lecture 23: Apr 17. Hard Optimization Problems Independent set Clique Colouring Clique cover Hard to approximate within a factor of coding.
Vertex Cover, Dominating set, Clique, Independent set
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
NP-Complete Problems Problems in Computer Science are classified into
An Approximation Algorithm for Requirement cut on graphs Viswanath Nagarajan Joint work with R. Ravi.
1 Scheduling Conflicting Jobs: Problems and Techniques Guy Kortsarz, Rutgers University, Camden.
Coloring Algorithms and Networks. Coloring2 Graph coloring Vertex coloring: –Function f: V  C, such that for all {v,w}  E: f(v)  f(w) Chromatic number.
Steiner trees Algorithms and Networks. Steiner Trees2 Today Steiner trees: what and why? NP-completeness Approximation algorithms Preprocessing.
(work appeared in SODA 10’) Yuk Hei Chan (Tom)
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
Packing Element-Disjoint Steiner Trees Mohammad R. Salavatipour Department of Computing Science University of Alberta Joint with Joseph Cheriyan Department.
Approximation Algorithms: Bristol Summer School 2008 Seffi Naor Computer Science Dept. Technion Haifa, Israel TexPoint fonts used in EMF. Read the TexPoint.
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.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Graph Coalition Structure Generation Maria Polukarov University of Southampton Joint work with Tom Voice and Nick Jennings HUJI, 25 th September 2011.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
Approximation Algorithms for NP-hard Combinatorial Problems Magnús M. Halldórsson Reykjavik University
Approximating Minimum Bounded Degree Spanning Tree (MBDST) Mohit Singh and Lap Chi Lau “Approximating Minimum Bounded DegreeApproximating Minimum Bounded.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
1 Treewidth, partial k-tree and chordal graphs Delpensum INF 334 Institutt fo informatikk Pinar Heggernes Speaker:
Chapter 15 Approximation Algorithm Introduction Basic Definition Difference Bounds Relative Performance Bounds Polynomial approximation Schemes Fully Polynomial.
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.
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 Multicoloring bounded tree width graphs and planar graphs Guy Kortsarz, Rutgers University, Camden Joint work with M.M Halldorsson.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Approximation Algorithms for Graph Homomorphism Problems Chaitanya Swamy University of Waterloo Joint work with Michael Langberg and Yuval Rabani Open.
Non-Approximability Results. Summary -Gap technique -Examples: MINIMUM GRAPH COLORING, MINIMUM TSP, MINIMUM BIN PACKING -The PCP theorem -Application:
Implicit Hitting Set Problems Richard M. Karp Erick Moreno Centeno DIMACS 20 th Anniversary.
CPSC 536N Sparse Approximations Winter 2013 Lecture 1 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAAAAAA.
© The McGraw-Hill Companies, Inc., Chapter 12 On-Line Algorithms.
11 -1 Chapter 12 On-Line Algorithms On-Line Algorithms On-line algorithms are used to solve on-line problems. The disk scheduling problem The requests.
C&O 355 Lecture 19 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Feb 23, 2010 University of Liverpool Minimizing Total Busy Time in Parallel Scheduling with Application to Optical Networks Michele Flammini – University.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
Approximation Algorithms based on linear programming.
The NP class. NP-completeness Lecture2. The NP-class The NP class is a class that contains all the problems that can be decided by a Non-Deterministic.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Linear program Separation Oracle. Rounding We consider a single-machine scheduling problem, and see another way of rounding fractional solutions to integer.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
The Theory of NP-Completeness
The NP class. NP-completeness
Chapter 10 NP-Complete Problems.
Approximation algorithms
Maximum Matching in the Online Batch-Arrival Model
Design and Analysis of Algorithm
Vertex Cover, Dominating set, Clique, Independent set
Computability and Complexity
Structural graph parameters Part 2: A hierarchy of parameters
ICS 353: Design and Analysis of Algorithms
NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and Johnson, W.H. Freeman and Company, 1979.
Presentation transcript:

Batch Scheduling of Conflicting Jobs Hadas Shachnai The Technion Based on joint papers with L. Epstein, M. M. Halldórsson and A. Levin.

2 Batch Scheduling Problems A batch is a set of jobs that can be processed jointly The completion time of a batch is the latest completion time of a job in the batch. In the p-batch model, the length of a batch is the maximum processing time of any job in the batch. The jobs are processed on a batching machine which can process up to b jobs simultaneously. Objective functions –Sum of completion times of jobs – Sum of batch completion times –Makspan

3 Batch Scheduling of Conflicting Jobs But, what if some jobs cannot be scheduled simultaneously? Real-life examples: Conflicting resource requirements, compatibility/cooperation among jobs etc. Such conflicts are often modeled by an undirected graph. A E D C B B,C need some shared resource Lengths = color requirements A schedule - A multicoloring of G.

4 Batch Scheduling of Conflicting Jobs Machines time G  Given is an undirected graph G=(V,E)  Each vertex v  V has a positive length.  Find a proper batch coloring of the graph: each batch is assigned a distinct contiguous set of colors of size equal to the maximum length of any vertex in the batch.  Each batch is an indepndent set in G  Minimize -sum of job completion times (SJC) - sum of batch completion times (SBC) -Makespan (Max coloring) SJC(I)=2*2+1+2*5+3+7=25

5 Batch Scheduling of Conflicting Jobs Machines time G  Given is an undirected graph G=(V,E)  Each vertex v  V has a positive length.  Find a proper batch coloring of the graph: each batch is assigned a distinct contiguous set of colors of size equal to the maximum length of any vertex in the batch.  Each batch is an indepndent set in G  Minimize -sum of job completion times (SJC) - sum of batch completion times (SBC) -Makespan (Max coloring) SBC(I)=3*2+3*5+7=28 Max-col (I)=7

6 Known Results Sum of job completion times  Constant factor approximations for certain subclasses of conflict graphs (e.g., perfect, interval, line and bipartite graphs ( Epstein, Halldórsson, Levin, S, 2006).  EPTASs for planar graphs and graphs with bounded treewidth (Halldórsson and S., 2008) For general graphs BSC and Max-coloring are hard to approximate within factor n 1-ε unless NP=ZPP (Bar- Noy et al, 1998; Feige and Kilian, 1998)

7 Known Results (Cont’d) Sum of batch completion times  A 4ρ-approximation for SBC for graph classes on which Maximum Independent Set can be approximated within factor ρ, for some ρ ≥1 (Epstein, Halldórsson, Levin, S, 2006). Max coloring  Constant factor approximation algorithms for bipartite, planar, interval and perfect graphs (Epstein and Levin,2007; Escoffier at al., 2006; Pemmaraju et al., 2004; Pemmaraju and Raman, 2005)  PTASs for graphs with bounded treewidth ( Escoffier at al., 2006 ; Pemmaraju and Raman, 2005)  Solvable in ploynomial time on paths (Halldórsson and S., 2008)

8 Batch Coloring Problems with Minsum Objective - a General Technique Minimize sum of job completion times Unbounded model (b ≥ n ) Obtain approximation algorithms for SJC on several classes of conflicts graphs

9 A simple guessing game Player A decides on a number x. Player B tries a sequence x 1, x 2,..., of guesses until it finds x i that Player A says satisfies x i ≥ x. The value of the game is the performance ratio

10 A simple deterministic strategy Guess 1, 2, 4, 8, 16,... Performance ratio of 4: –The last number is at most 2x –The previous numbers are a geometric series, at most x. This is also best possible...deterministic.

11 A randomized strategy Defeat the worst-case instance by –changing the base of the geometric series –randomizing the initial guess  [0,1) For this game, set base to be e –Define guess x i =  e i+  , i ≥0. log length 0   +1  +2  +3  +4 - Last guess  e-1 times optimal guess - Achieves performance ratio of e.

12 Geometric Grouping in Coloring Each vertex has a real value attached Divide the real line into geom. increasing segments Each group solved separately. Subsolutions are pasted together in order to produce final solution A(V 1 ) A(V 2 ) A(V 3 ) A(V 4 ) A(V 5 ).. length V4V4 V3V3 V2V2 V1V1 V5V5 Each block must be solved with a small makespan Solve efficiently in terms of OPT: - Length based: immediate - LP based: bound clique number of the induced subgraph

13 Bounds for Perfect and Line Graphs Preprocessing the input I: Pick a random number  ~ U[0,1). Partition the jobs into classes by their processing times: J 0 = { j: p j ≤ e  } and J i ={ j: e i-1+  < p j ≤ e i+  }. Let k be the largest index of any non-empty class. For all i=0,1, …, k, round up the processing time of each job j  J i to p’ j =e i+ . The resulting input is I’. Lemma (preprocessing): Let OPT, OPT  be the sum of completion times of an optimal solution for I and I’, such that in I’ the jobs are scheduled in batches, and all jobs in a batch have a common class. Then E[OPT  ] ≤ e·OPT, where the expectation is over the random choices of .

14 Using Non-preemptive Scheduling Scheme Problem: Given an instance J= {1, …, n} of dependent jobs, with the conflict graph G=({V= 1, …, n}, E), schedule the jobs non-preemptively on a set of (unbounded size of) machines so as to minimize the sum of completion times of all jobs. Linear programming formulation: For any edge (u,v)  E there is a variable  uv  {0,1};  uv =1 if u precedes v in the schedule, and 0 otherwise. Denote by N v the set of neighbors of v in G. Denote by C 1, …, C Nv the set of maximal cliques in N v.

15 LP formulation (Cont’d) Let f v * denote the completion time of job J v in the optimal solution for LP. (LP) minimize  f v vVvV subject to: f v ≥ p v +  p u  uv, for all v  V, 1  r  N v  uv +  vu ≥ 1 for all (u,v)  E uCruCr

16 Non-preemptive Scheduling Scheme Partition the jobs to blocks of geometrically increasing sizes by the f v * values. Apply to each block V k an algorithm A for non- preemptive multicoloring, so as to minimize the total number of colors used. Concatenate the schedules obtained for the blocks: first the schedule for V 0, then the schedule for V 1 and so on… Let OPT * =  v f v *, w(V k ) is the maximum size of a clique in V k, and suppose that A(V k )  ß w(V k ). Theorem (Non-pre-scheduling): The LP scheme gives a non-preemptive schedule in which the sum of start times of the jobs is at most ß OPT * - p(V)/2, where p(V)=  v p v.

17 Approximation Algorithm JB for SJC 1.Apply the Preprocessing step for partitioning J to job classes by rounded processing times. 2.For any pair of jobs J i, J j that belong to different classes, add an edge (i,j) in the conflict graph G. Denote the resulting graph G'. 3.Solve LP for the input jobs with rounded processing times and conflict graph G'. 4.Partition the jobs in the input into blocks V 0,V 1, …, V L, by their LP completion times. 5.Schedule the blocks in sequence using for each block a coloring algorithm for unit length jobs.

18 Analysis of the Algorithm Theorem 2: JB approximates SJC within a factor of 9.76 ß + (1 – (e-1)/2)  9.76 ß In general, LP may not be solvable in polynomial time on G’; can be solved when the maximum weight clique problem is solvable on G.

19 Analysis of the Algorithm (Cont’d) In particular, maximum weighted clique and coloring are polynomially solvable on perfect graphs. Corollary 1: JB is a 9.9-approximation algorithm for SJC on perfect graphs. In a line graph there are at most n maximal cliques; also, using Vizing’s theorem, ß= 1+ o(1). Corollary 2: JB is a 9.9+ o(1)-approximation algorithm for SJC on line graphs.

20 Summary and Open problems Interesting features of the current results: Randomized strategy is combined in many ways –K-colorable subgraphs (interval,compar.) –LP values + lengths (line, perfect) NP-hardness for partial k-trees, trees, paths? Any non-trivial graph classes that are polynomially solvable (beyond stars)? Better ratios… Thank you