Primal Dual Method Lecture 20: March 28 primaldual restricted primal restricted dual y z found x, succeed! Construct a better dual.

Slides:



Advertisements
Similar presentations
Iterative Rounding and Iterative Relaxation
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.
Graph Partitioning Problems Lecture 18: March 14 s1 s3 s4 s2 T1 T4 T2 T3 s1 s4 s2 s3 t3 t1 t2 t4 A region R1 R2 C1 C2.
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.
1 LP Duality Lecture 13: Feb Min-Max Theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum.
Approximation Algoirthms: Graph Partitioning Problems Lecture 17: March 16 s1 s3 s4 s2 T1 T4 T2 T3.
C&O 355 Mathematical Programming Fall 2010 Lecture 22 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A.
1 Discrete Structures & Algorithms Graphs and Trees: III EECE 320.
Introduction to Algorithms
Primal-Dual Algorithms for Connected Facility Location Chaitanya SwamyAmit Kumar Cornell University.
1 Maximum flow sender receiver Capacity constraint Lecture 6: Jan 25.
Multicut Lower Bounds via Network Coding Anna Blasiak Cornell University.
1 of 56 Linear Programming-Based Approximation Algorithms Shoshana Neuburger Graduate Center, CUNY May 13, 2009.
C&O 355 Lecture 20 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.
1 Weighted Bipartite Matching Lecture 4: Jan Weighted Bipartite Matching Given a weighted bipartite graph, find a matching with maximum total weight.
Chapter 7 Maximum Flows: Polynomial Algorithms
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
Introduction to Approximation Algorithms Lecture 12: Mar 1.
Approximation Algorithm for Multicut
Approximation Algoirthms: Semidefinite Programming Lecture 19: Mar 22.
Instructor Neelima Gupta Table of Contents Lp –rounding Dual Fitting LP-Duality.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
Linear Programming and Approximation
Totally Unimodular Matrices Lecture 11: Feb 23 Simplex Algorithm Elliposid Algorithm.
Semidefinite Programming
1 Introduction to Linear and Integer Programming Lecture 9: Feb 14.
Approximation Algorithm: Iterative Rounding Lecture 15: March 9.
A general approximation technique for constrained forest problems Michael X. Goemans & David P. Williamson Presented by: Yonatan Elhanani & Yuval Cohen.
Approximation Algorithms
Maximum Flows Lecture 4: Jan 19. Network transmission Given a directed graph G A source node s A sink node t Goal: To send as much information from s.
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.
Primal-Dual Algorithms for Connected Facility Location Chaitanya SwamyAmit Kumar Cornell University.
Randomness in Computation and Communication Part 1: Randomized algorithms Lap Chi Lau CSE CUHK.
A General Approach to Online Network Optimization Problems Seffi Naor Computer Science Dept. Technion Haifa, Israel Joint work: Noga Alon, Yossi Azar,
1 Spanning Tree Polytope x1 x2 x3 Lecture 11: Feb 21.
Approximation Algorithms: Bristol Summer School 2008 Seffi Naor Computer Science Dept. Technion Haifa, Israel TexPoint fonts used in EMF. Read the TexPoint.
V. V. Vazirani. Approximation Algorithms Chapters 3 & 22
Fair Allocation with Succinct Representation Azarakhsh Malekian (NWU) Joint Work with Saeed Alaei, Ravi Kumar, Erik Vee UMDYahoo! Research.
Design Techniques for Approximation Algorithms and Approximation Classes.
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.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
Primal-Dual Algorithms for Connected Facility Location Chaitanya SwamyAmit Kumar Cornell University.
Approximation Algorithms
TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A A A A A A A Image:
Hon Wai Leong, NUS (CS6234, Spring 2009) Page 1 Copyright © 2009 by Leong Hon Wai CS6234: Lecture 4  Linear Programming  LP and Simplex Algorithm [PS82]-Ch2.
Algorithmic Game Theory and Internet Computing Vijay V. Vazirani Georgia Tech Primal-Dual Algorithms for Rational Convex Programs II: Dealing with Infeasibility.
Linear Program Set Cover. Given a universe U of n elements, a collection of subsets of U, S = {S 1,…, S k }, and a cost function c: S → Q +. Find a minimum.
Hon Wai Leong, NUS (CS6234, Spring 2009) Page 1 Copyright © 2009 by Leong Hon Wai CS6234: Lecture 4  Linear Programming  LP and Simplex Algorithm [PS82]-Ch2.
Lecture.6. Table of Contents Lp –rounding Dual Fitting LP-Duality.
and 6.855J March 6, 2003 Maximum Flows 2. 2 Network Reliability u Communication Network u What is the maximum number of arc disjoint paths from.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
Iterative Rounding in Graph Connectivity Problems Kamal Jain ex- Georgia Techie Microsoft Research Some slides borrowed from Lap Chi Lau.
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.
PRIMAL-DUAL APPROXIMATION ALGORITHMS FOR METRIC FACILITY LOCATION AND K-MEDIAN PROBLEMS K. Jain V. Vazirani Journal of the ACM, 2001.
Approximation Algorithms by bounding the OPT Instructor Neelima Gupta
Approximation Algorithms Duality My T. UF.
Ion I. Mandoiu, Vijay V. Vazirani Georgia Tech Joseph L. Ganley Simplex Solutions A New Heuristic for Rectilinear Steiner Trees.
Approximation Algorithms based on linear programming.
Introduction to Approximation Algorithms
Maximum Matching in the Online Batch-Arrival Model
Chapter 5. Optimal Matchings
1.3 Modeling with exponentially many constr.
Analysis of Algorithms
Graph Partitioning Problems
Linear Programming and Approximation
Problem Solving 4.
1.3 Modeling with exponentially many constr.
Presentation transcript:

Primal Dual Method Lecture 20: March 28 primaldual restricted primal restricted dual y z found x, succeed! Construct a better dual

Primal Dual Program Primal ProgramDual Program If there is a feasible primal solution x and a feasible dual solution y, then both are optimal solutions. Primal-Dual Method : An algorithm to construct such a pair of solutions.

Optimality Condition Suppose there is a feasible primal solution x, and a feasible dual solution y. How do we check that they are optimal solutions? Avoid strict inequality

Optimality Condition

Complementary Slackness Conditions Primal complementary slackness condition: Dual complementary slackness condition:

Primal Dual Method Start from a feasible dual solution. Search for a feasible primal solution satisfying complementary slackness conditions. If not, improve the objective value of dual solution. repeat

Restricted Primal Formulate this as an LP itself! Given a feasible dual solution y, how do we search for a feasible primal solution x that satisfies complementary slackness conditions? Primal complementary slackness condition: Dual complementary slackness condition:

Restricted Primal If j not in J, then we need x(j) to be zero. If i not in I, then we need Restricted primal If zero, we are done

Restricted Dual Suppose the objective of the restricted primal is not zero, what do we do? Then we want to find a better dual solution. Restricted primalRestricted dual nonzero

Restricted Dual Restricted dual nonzero Dual Program Consider y+єz as the new dual solution. Still feasible Larger value

General Framework primaldual restricted primal restricted dual y z found x, succeed! Construct a better dual

Bipartite Matching Primal complementary slackness condition:

Start from a feasible vertex cover Find a perfect matching using tight edges non-zero Consider y- єz, a better dual Hungarian Method

Remarks It is not a polynomial time method. It reduces the weighted problem to the unweighted problem, so that the restricted primal linear program is easier to solve, and often there are combinatorial algorithms to solve it. Many combinatorial algorithms, like max-flow, matching, min-cost flow, shortest path, spanning tree, …, can be derived within this framework.

Approximation Algorithm How do we adapt the primal-dual method for approximation algorithms? We want to construct a primal feasible solution x and a dual feasible solution y so that cx and by are “close”. Avoid losing too much

Avoid strict inequality Approximate Optimality Condition

Approximate Complementary Slackness Condition Primal complementary slackness condition: Dual complementary slackness condition:Only a sufficient condition

Vertex Cover Primal complementary slackness condition: Dual complementary slackness condition:

Approximate Optimality Conditions Primal complementary slackness condition: Dual complementary slackness condition: Pick only vertices that go tight. Pick only edge with one vertex in the vertex cover. This would imply a 2-approximation. This is nothing! Just focus on this!

Algorithm Pick only vertices that go tight. Algorithm (2-approximation for vertex cover) Initially, x=0, y=0 When there is an uncovered edge Pick an uncovered edge, and raise y(e) until some vertices go tight. Add all tight vertices to the vertex cover. Output the vertex cover x. Familiar? This is the greedy matching 2-approximation when every vertex has the same cost.

Multicut Given k source-sink pairs {(s1,t1), (s2,t2),...,(sk,tk)}, a multicut is a set of edges whose removal disconnects each source-sink pair. The multicut problem asks for the minimum weight multicut. Today we only consider a tree! s1 s2 t2 t1

Hardness Why would this problem is hard? Vertex cover.

Primal Dual Programs Primal complementary slackness condition: Dual complementary slackness condition:

Approximate Optimality Conditions Primal complementary slackness condition: Dual complementary slackness condition: Only pick saturated edges. At most one edge can be picked from a path carrying nonzero flow. Relaxed dual complementary slackness condition: two

Algorithmic Idea Only pick saturated edges. At most two edges can be picked from a path carrying nonzero flow. We want to construct flow and cut so that: How to choose the flow? We should avoid sending flow along a long path…

Algorithm Multicut in Tree (2-approximation algorithm) Initially, f=0, D=0 Flow routing: Find a pair (si,ti) with lowest lowest common ancestor, Greedily send flow from si to ti. Add all the saturated edges to D. Let e1, e2,…, el be the ordered list of edges in D. Reverse delete: In reverse order, delete an edge e from D if D-e is still a multicut. Output the flow and the cut.

Reverse Delete At most two edges can be picked from a path carrying nonzero flow. Lemma. After reverse delete, the above condition is satisfied. siti v e’ e sj tj u there exists j where e is the only edge. j is processed earlier than i. i can send a flow, so e is added after e*. e* Idea?

Bonus Question Bouns Question 5 (50%): Show that a basic solution of the linear program for multicut in tree has an edge of value at least 1/2. Bouns Question 6 (50%): Show that a basic solution of the linear program for multiway cut has an edge of value at least 1/2.

Remarks Network design Facility location Online primal dual A unify primal-dual method for exact and approximation algorithm?