Chapter 8 Local Ratio II. More Example

Slides:



Advertisements
Similar presentations
Unit-iv.
Advertisements

Lecture 11 Overview Self-Reducibility. Overview on Greedy Algorithms.
IBM LP Rounding using Fractional Local Ratio Reuven Bar-Yehuda
Algorithm Design Methods Spring 2007 CSE, POSTECH.
Minimum Vertex Cover in Rectangle Graphs
C&O 355 Lecture 23 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.
Primal-Dual Algorithms for Connected Facility Location Chaitanya SwamyAmit Kumar Cornell University.
Chapter 4 The Greedy Approach. Minimum Spanning Tree A tree is an acyclic, connected, undirected graph. A spanning tree for a given graph G=, where E.
Dynamic Programming (II)
Reuven Bar-Yehuda Gleb Polevoy Gleb Polevoy Dror Rawitz Technion Technion 1.
Reuven Bar-Yehuda Gleb Polevoy Gleb Polevoy Dror Rawitz Technion Technion 1.
Seminar : Approximation algorithms for LP/IP optimization problems Reuven Bar-Yehuda Technion IIT Slides and papers at:
A general approximation technique for constrained forest problems Michael X. Goemans & David P. Williamson Presented by: Yonatan Elhanani & Yuval Cohen.
Approximation Algorithms
1 Seminar : Approximation algorithms for LP optimization problems Reuven Bar-Yehuda Technion IIT Slides and paper at:
Greedy Algorithms Reading Material: Chapter 8 (Except Section 8.5)
1 A Unified Approach to Approximating Resource Allocation and Scheduling Amotz Bar-Noy.……...AT&T and Tel Aviv University.
A Unified Approach to Approximating Resource Allocation and Scheduling Amotz Bar-Noy.……...AT&T and Tel Aviv University Reuven Bar-Yehuda….Technion IIT.
1 Approximation Algorithms for Bandwidth and Storage Allocation Reuven Bar-Yehuda Joint work with Michael Beder, Yuval Cohen.
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
The Maximum Independent Set Problem Sarah Bleiler DIMACS REU 2005 Advisor: Dr. Vadim Lozin, RUTCOR.
Priority Models Sashka Davis University of California, San Diego June 1, 2003.
1 NP-Complete Problems (Fun part) Polynomial time vs exponential time –Polynomial O(n k ), where n is the input size (e.g., number of nodes in a graph,
Design Techniques for Approximation Algorithms and Approximation Classes.
Approximation Algorithms
Chapter 8 PD-Method and Local Ratio (4) Local ratio This ppt is editored from a ppt of Reuven Bar-Yehuda. Reuven Bar-Yehuda.
LR for Packing problems Reuven Bar-Yehuda
알고리즘 설계 및 분석 Foundations of Algorithm 유관우. Digital Media Lab. 2 Chap4. Greedy Approach Grabs data items in sequence, each time with “best” choice, without.
Chapter 2 Greedy Strategy I. Independent System Ding-Zhu Du.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness and course wrap up.
1 A Unified Approach to Approximating Resource Allocation and Scheduling Amotz Bar-Noy.……...AT&T and Tel Aviv University.
Algorithm Design Methods 황승원 Fall 2011 CSE, POSTECH.
Approximation Algorithms Greedy Strategies. I hear, I forget. I learn, I remember. I do, I understand! 2 Max and Min  min f is equivalent to max –f.
Chapter 8 PD-Method and Local Ratio (5) Equivalence This ppt is editored from a ppt of Reuven Bar-Yehuda. Reuven Bar-Yehuda.
The Theory of NP-Completeness
Greedy Algorithms – Chapter 5
Greedy function greedy { S <- S0 //Initialization
Algorithm Design Methods
Minimum Spanning Trees
Maximum Matching in the Online Batch-Arrival Model
Design and Analysis of Algorithm
Computability and Complexity
Seminar : Approximation algorithms for LP/IP optimization problems
OVERVIEW 1-st Midterm: 3 problems 2-nd Midterm 3 problems
ICS 353: Design and Analysis of Algorithms
Merge Sort 11/28/2018 2:18 AM The Greedy Method The Greedy Method.
Merge Sort 11/28/2018 8:16 AM The Greedy Method The Greedy Method.
Coping With NP-Completeness
Integer Programming (정수계획법)
Autumn 2015 Lecture 10 Minimum Spanning Trees
Lecture 11 Overview Self-Reducibility.
Lecture 11 Overview Self-Reducibility.
Approximation Algorithms
Approximation Algorithms
Richard Anderson Lecture 30 NP-Completeness
Merge Sort 1/17/2019 3:11 AM The Greedy Method The Greedy Method.
Integer Programming (정수계획법)
A Unified Approach to Approximating Resource Allocation and Scheduling
Algorithm Design Methods
NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and Johnson, W.H. Freeman and Company, 1979.
Text Book: Introduction to algorithms By C L R S
Algorithm Design Methods
Merge Sort 5/2/2019 7:53 PM The Greedy Method The Greedy Method.
Winter 2019 Lecture 11 Minimum Spanning Trees (Part II)
Coping With NP-Completeness
Chapter 1. Formulations.
Department of Computer Science & Engineering
Algorithm Design Methods
Autumn 2019 Lecture 11 Minimum Spanning Trees (Part II)
Presentation transcript:

Chapter 8 Local Ratio II. More Example This ppt is editored from a ppt of Reuven Bar-Yehuda. Reuven Bar-Yehuda

Local Ratio for Scheduling Problems

Profit Maximization

Maximum Independent Set

Applications Computer Vision/Pattern Recognition Information/Coding Theory Map Labeling Molecular Biology Scheduling

Independent Set in Interval Graphs Activity 9 Activity 8 Activity 7 Activity 6 Activity 5 Activity 4 Activity 3 Activity 2 Activity 1 time We must schedule jobs on a single processor with no preemption. Each job may be scheduled in one interval only. The problem is to select a maximum weight subset of non-conflicting jobs.

Independent Set in Interval Graphs Slide from http://www.cs.technion.ac.il/~reuven/STOC2000.ppt Independent Set in Interval Graphs Activity9 Activity8 Activity7 Activity6 Activity5 Activity4 Activity3 Activity2 Activity1 time Maximize s.t. For each instance I For each time t

Maximal Solutions We say that a feasible schedule is I-maximal if either it contains instance I, or it does not contain I but adding I to it will render it infeasible. Activity9 Activity8 Activity7 Activity6 Activity5 Activity4 Activity3 Activity2 Activity1 I2 I1 time The schedule above is I1-maximal and also I2-maximal

An effective profit function Slide from http://www.cs.technion.ac.il/~reuven/STOC2000.ppt An effective profit function Activity9 Activity8 Activity7 Activity6 Activity5 Activity4 Activity3 Activity2 Activity1 P1=0 P1= P(Î) P1=0 P1=0 P1=0 P1= P(Î) P1=0 P1= P(Î) P1= P(Î) Î Let Î be an interval that ends first;

An effective profit function Slide from http://www.cs.technion.ac.il/~reuven/STOC2000.ppt An effective profit function Activity9 Activity8 Activity7 Activity6 Activity5 Activity4 Activity3 Activity2 Activity1 P1=0 P1= P(Î) P1=0 P1=0 P1=0 P1= P(Î) P1=0 P1= P(Î) P1= P(Î) Î For every feasible solution x: p1 ·x  p(Î) For every Î-maximal solution x: p1 ·x  p(Î) Every Î-maximal is optimal.

Independent Set in Interval Graphs: An Optimization Algorithm Slide from http://www.cs.technion.ac.il/~reuven/STOC2000.ppt Independent Set in Interval Graphs: An Optimization Algorithm Algorithm MaxIS( S, p ) If S = Φ then return Φ ; If I  S p(I) 0 then return MaxIS( S - {I}, p); Let Î  S that ends first; I  S define: p1 (I) = p(Î)  (I in conflict with Î) ; IS = MaxIS( S, p- p1 ) ; If IS is Î-maximal then return IS else return IS  {Î};

Running Example P(I5) = 3 -4 P(I6) = 6 -4 -2 P(I3) = 5 -5 P(I2) = 3 -5 Slide from http://www.cs.technion.ac.il/~reuven/STOC2000.ppt Running Example P(I5) = 3 -4 P(I6) = 6 -4 -2 P(I3) = 5 -5 P(I2) = 3 -5 P(I1) = 5 -5 P(I4) = 9 -5 -4 -4 -5 -2

Interval Scheduling Activity 9 Activity 8 Activity 7 Activity 6 Activity 5 Activity 4 Activity 3 Activity 2 Activity 1 time Each job consists of a finite collection of time intervals during which it may be scheduled. The problem is to select a maximum weight subset of non-conflicting intervals, at most one interval for each job.

Single Machine Scheduling with Release and Deadlines Activity 9 Activity 8 Activity 7 Activity 6 Activity 5 Activity 4 Activity 3 Activity 2 Activity 1 time Each job has a time window within which it can be processed.

Single Machine Scheduling with Release and Deadlines Activity 9 Activity 8 Activity 7 Activity 6 Activity 5 Activity 4 Activity 3 Activity 2 Activity 1

Single machine scheduling Slide from http://www.cs.technion.ac.il/~reuven/STOC2000.ppt Single machine scheduling Activity9 Activity8 Activity7 Activity6 Activity5 Activity4 Activity3 Activity2 Activity1 Maximize s.t. For each instance I For each time t For each activity A

A ½-effective profit function Slide from http://www.cs.technion.ac.il/~reuven/STOC2000.ppt A ½-effective profit function P1=1 P1=0 Activity9 Activity8 Activity7 Activity6 Activity5 Activity4 Activity3 Activity2 Activity1 Î Let Î be an interval that ends first;

A ½-effective profit function Slide from http://www.cs.technion.ac.il/~reuven/STOC2000.ppt A ½-effective profit function P1=1 P1=0 Activity9 Activity8 Activity7 Activity6 Activity5 Activity4 Activity3 Activity2 Activity1 Î For every feasible solution x: p1 ·x  2 p(Î) For every Î-maximal solution x: p1 ·x  p(Î) Every Î-maximal is ½-effective.

Single Machine Scheduling with Release and Deadlines Activity 9 Activity 8 Activity 7 Activity 6 Activity 5 Activity 4 Activity 3 Activity 2 Activity 1

Bandwidth Allocation time Maximize s.t. For each instance I Slide from http://www.cs.technion.ac.il/~reuven/STOC2000.ppt Bandwidth Allocation Activity 9 Activity 8 Activity 7 Activity 6 Activity 5 Activity 4 Activity 3 Activity 2 Activity 1 time Maximize s.t. For each instance I For each time t For each activity A

Bandwidth Allocation time Bandwidth time Activity 9 Activity 8

Outline of the algorithm To approximate this problem, we first consider the following two special cases. Case 1. All instances are wide, that is, w(I ) > 1/2 for all I . Case 2. All activity instances are narrow, that is, w(I ) ≤ 1/2 for all I . In the case of wide instances, the problem reduces to interval scheduling since no pair of intersecting instances may be scheduled together. Thus, we can use Algorithm MaxIS to find a 1/2-approximate schedule. In the case of narrow instances, we find a 1/3-approximate schedule by a variant of MaxIS as described in the following.

An effective profit function for w ≤ 1/2 Slide from http://www.cs.technion.ac.il/~reuven/STOC2000.ppt An effective profit function for w ≤ 1/2 Activity 9 Activity 8 Activity 7 Activity 6 Activity 5 Activity 4 Activity 3 Activity 2 Activity 1 Î Let Î be an interval that ends first;

An effective profit function for w ≤ 1/2 For every feasible solution x: p1 ·x  3 p(Î) For every Î-maximal solution x: p1 ·x  p(Î) Every Î-maximal is 1/3-effective.

Bandwidth Allocation The 5-approximation for any w  1 Slide from http://www.cs.technion.ac.il/~reuven/STOC2000.ppt Bandwidth Allocation The 5-approximation for any w  1 w > ½ w > ½ w > ½ w > ½ w > ½ w > ½ w > ½ w > ½ w > ½ Algorithm: GRAY = Find 1/2-approximation for gray (w>1/2) intervals; COLORED = Find 1/3-approximation for colored intervals Return the one with the larger profit Analysis: If GRAY*  40%OPT then GRAY  1/2(40%OPT)=20%OPT else COLORED*  60%OPT thus COLORED  1/3(60%OPT)=20%OPT

The Local Ratio Technique Slide from http://www.cs.technion.ac.il/~reuven/APPROX-SEMINAR/spr06/LR.ppt The Local Ratio Technique Applications to some optimization algorithms (r = 1): ( MST) Minimum Spanning Tree (Kruskal) ( SHORTEST-PATH) s-t Shortest Path (Dijkstra) (LONGEST-PATH) s-t DAG Longest Path (Can be done with dynamic programming) (INTERVAL-IS) Independents-Set in Interval Graphs Usually done with dynamic programming) (LONG-SEQ) Longest (weighted) monotone subsequence (Can be done with dynamic programming) ( MIN_CUT) Minimum Capacity s,t Cut (e.g. Ford, Dinitz) Applications to some 2-Approximation algorithms: (r = 2) ( VC) Minimum Vertex Cover (Bar-Yehuda and Even) ( FVS) Vertex Feedback Set (Becker and Geiger) ( GSF) Generalized Steiner Forest (Williamson, Goemans, Mihail, and Vazirani) ( Min 2SAT) Minimum Two-Satisfibility (Gusfield and Pitt) ( 2VIP) Two Variable Integer Programming (Bar-Yehuda and Rawitz) ( PVC) Partial Vertex Cover (Bar-Yehuda) ( GVC) Generalized Vertex Cover (Bar-Yehuda and Rawitz) Applications to some other Approximations: ( SC) Minimum Set Cover (Bar-Yehuda and Even) ( PSC) Partial Set Cover (Bar-Yehuda) ( MSP) Maximum Set Packing (Arkin and Hasin) Applications Resource Allocation and Scheduling : ….

“Standard” Local Ratio The standard local ratio approach is to use a weight decomposition that guarantees that the solution constructed by the algorithm will be r-approximate with respect to w1. The analysis consists of comparing, at each level of the recursion, the solution found in that level, and an optimal solution for the problem instance passed to that level, where the comparison is made with respect to w1 and with respect to w2. Thus, in each level of the recursion, there are potentially two optima (one with respect to w1, and one with respect to w2) against which the solution is compared, and in addition, different optima are used at different recursion levels.

Fractional Local Ratio Theorem (for maximization problems) Let w = w1 + w2 . Let x∗ and x be solutions such that x is r-approximate relative to x∗ with respect to w1, and with respect to w2. Then, x is r-approximate relative to x∗ with respect to w as well. P R O F : w 1 ( x ) ¸ r ¢ ¤ 2 ! = + Note that the theorem holds even when negative weights are allowed.

Thanks, end.