GRAPH BALANCING. Scheduling on Unrelated Machines J1 J2 J3 J4 J5 M1 M2 M3.

Slides:



Advertisements
Similar presentations
Introduction to Algorithms 6.046J/18.401J/SMA5503
Advertisements

The Primal-Dual Method: Steiner Forest TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A AA A A A AA A A.
Algorithm Design Methods (I) Fall 2003 CSE, POSTECH.
Algorithm Design Methods Spring 2007 CSE, POSTECH.
Max- coloring in trees SRIRAM V.PEMMARAJU AND RAJIV RAMAN BY JAYATI JENNIFER LAW.
1 Matching Polytope x1 x2 x3 Lecture 12: Feb 22 x1 x2 x3.
Design and Analysis of Algorithms Approximation algorithms for NP-complete problems Haidong Xue Summer 2012, at GSU.
Greed is good. (Some of the time)
Centrality of Trees for Capacitated k-Center Hyung-Chan An École Polytechnique Fédérale de Lausanne July 29, 2013 Joint work with Aditya Bhaskara & Ola.
1 of 56 Linear Programming-Based Approximation Algorithms Shoshana Neuburger Graduate Center, CUNY May 13, 2009.
Semi-Definite Algorithm for Max-CUT Ran Berenfeld May 10,2005.
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Approximating Maximum Edge Coloring in Multigraphs
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
Conditional scheduling with varying deadlines Ben Horowitz
Linear Programming and Approximation
Semidefinite Programming
Approximation Algorithm: Iterative Rounding Lecture 15: March 9.
Perfect Graphs Lecture 23: Apr 17. Hard Optimization Problems Independent set Clique Colouring Clique cover Hard to approximate within a factor of coding.
Approximation Algorithms
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.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under contract.
Integer Programming Difference from linear programming –Variables x i must take on integral values, not real values Lots of interesting problems can be.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under contract.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under contract.
9-1 Chapter 9 Approximation Algorithms. 9-2 Approximation algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
1 Introduction to Approximation Algorithms Lecture 15: Mar 5.
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
1 Section 9.2 Tree Applications. 2 Binary Search Trees Goal is implementation of an efficient searching algorithm Binary Search Tree: –binary tree in.
Chapter 4 Graphs.
Approximation Algorithms: Bristol Summer School 2008 Seffi Naor Computer Science Dept. Technion Haifa, Israel TexPoint fonts used in EMF. Read the TexPoint.
LP formulation of Economic Dispatch
(Not in text).  An LP with additional constraints requiring that all the variables be integers is called an all-integer linear program (IP).  The LP.
May 5, 2015Applied Discrete Mathematics Week 13: Boolean Algebra 1 Dijkstra’s Algorithm procedure Dijkstra(G: weighted connected simple graph with vertices.
1 Quantum query complexity of some graph problems C. DürrUniv. Paris-Sud M. HeiligmanNational Security Agency P. HøyerUniv. of Calgary M. MhallaInstitut.
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.
Introduction to Job Shop Scheduling Problem Qianjun Xu Oct. 30, 2001.
Binary Search From solving a problem to verifying an answer.
Princeton University COS 423 Theory of Algorithms Spring 2001 Kevin Wayne Approximation Algorithms These lecture slides are adapted from CLRS.
15.053Tuesday, April 9 Branch and Bound Handouts: Lecture Notes.
WK15. Vertex Cover and Approximation Algorithm By Lin, Jr-Shiun Choi, Jae Sung.
Pipelining and Retiming
Graphs and MSTs Sections 1.4 and 9.1. Partial-Order Relations Everybody is not related to everybody. Examples? Direct road connections between locations.
Algorithm Design Methods 황승원 Fall 2011 CSE, POSTECH.
Iterative Rounding in Graph Connectivity Problems Kamal Jain ex- Georgia Techie Microsoft Research Some slides borrowed from Lap Chi Lau.
Problems in Combinatorial Optimization. Linear Programming.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
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.
CSE 589 Applied Algorithms Spring 1999 Prim’s Algorithm for MST Load Balance Spanning Tree Hamiltonian Path.
Greedy Technique.
Greedy function greedy { S <- S0 //Initialization
Algorithm Design Methods
Maximum Matching in the Online Batch-Arrival Model
Load Balancing: List Scheduling
3-3 Optimization with Linear Programming
Finding Subgraphs with Maximum Total Density and Limited Overlap
Exam 2 LZW not on syllabus. 73% / 75%.
Linear Programming and Approximation
Problem Solving 4.
Algorithm Design Methods
Algorithm Design Methods
GRAPHS G=<V,E> Adjacent vertices Undirected graph
Lecture 19 Linear Program
Load Balancing: List Scheduling
Algorithm Design Methods
Presentation transcript:

GRAPH BALANCING

Scheduling on Unrelated Machines J1 J2 J3 J4 J5 M1 M2 M3

M1 M2 M3 J3 J4 J1 J2 J5 J1 J2 J3 J4 J5 Scheduling on Unrelated Machines

M1 M2 M3J1 J2J3 J4 J5 Makespan

Restricted Assignment M1 M2M3 J1 J2 J3 J4 J5

Graph Balancing  Special case of Restricted Assignment  Each job can be scheduled on at most 2 machines  Machines  vertices  Jobs  edges  Assign dedicated loads to vertices  Problem is to orient the edges

Graph Balancing

Graph Balancing Summary  Given: weighted multigraph (V, E, p, q)  V : Vertices  Machines  E : Edges  Jobs   e  E, p e = processing time of job e   v  V, q v = dedicated load on vertex v  Output: Orientation of edges :E  V such that (e)  e  Load v = q v +  e:v = (e) p e  Objective: Minimize maximum load

Optimization  Decision Problem   -relaxed decision procedure  Is there any orientation with maximum load at most d ?  Answer: “NO” Orientation with maximum load at most  d.  Binary search for d and scale everything appropriately

2-approximation LP  Find values x ev  0, for each e and v  e, such that  For each e  E, u,v  e: x eu + x ev = 1  For each v  V: q v +  e:v  e x ev p e  1

2-Relaxed Decision Procedure  Solve LP in polynomial time.  If not feasible, return “NO”  If feasible, round solution using rotation and tree assignment  After rounding, the maximum load is at most 2  For rounding, decompose the graph as  Cycles  Trees

Rotation 1/2 1/4 1/3 1/

Rotation 1/2 1/4 1/3 1/

Rotation  Increases the number of integral solutions.  Breaks the fractional cycles.  Unchanged after rotation  (x eu + x ev ) for all edges e  (  e:v  e x ev p e ) for all vertices v  Maximum load after rotation is  1.  After all fractional cycles are broken, only fractional trees remain

 1 Tree Assignment

 2  1  2  1 Tree Assignment

1 1 v`v` Integrality Gap

>1/2 Big trees constraint

1.75-approximation  Find values x ev  0, for each e and v  e, such that  For each e  E, u,v  e: x eu + x ev = 1  For each v  V: q v +  e:v  e x ev p e  1  For each T  G B (graph induced on big edges)

v v >1/ Algorithm

Invariants

Algorithm Case 1: e is a big edge (p e >= 0.5) Increase in load = p e – x ev p e = x eu p e <= 0.75 Case 2: e is not a big edge (p e < 0.5) Increase in load = p e – x ev p e < p e < 0.5 Since x eu p e > 0.75, e is definitely a big edge For any vertex u’ in the tree T, the path joining u’ to v is also a subtree of G B By the tree constraint, x ev p e + x e’u’ p e’ >= p e + p e’ -1 p e’ – x e’u’ p e’ <= 1 – (p e - x ev p e ) Increase in load <= 0.25

Integrality gap.25 1 v`v` 11 1 v`v` v`v`