Presentation is loading. Please wait.

Presentation is loading. Please wait.

Approximation Algorithm: Iterative Rounding Lecture 15: March 9.

Similar presentations


Presentation on theme: "Approximation Algorithm: Iterative Rounding Lecture 15: March 9."— Presentation transcript:

1 Approximation Algorithm: Iterative Rounding Lecture 15: March 9

2 Lower bound and Approximation Algorithm The key of designing a polytime approximation algorithm is to obtain a good (lower or upper) bound on the optimal solution. For NP-complete problem, we can’t compute an optimal solution in polytime. The general strategy (for a minimization problem) is: lowerbound OPT SOL SOL ≤ c · lowerbound  SOL ≤ c · OPT

3 lowerbound OPT SOL To design good approximation algorithm, we need a good lowerbound. For example, if 100 · lowerbound ≤ OPT for some instance, then if we compare SOL to lowerbound to analyze the performance, we could not achieve anything better than an 100-approximation algorithm. Lower bound and Approximation Algorithm

4 lowerbound OPT SOL Goal: to find a lowerbound as close to OPT as possible. Lower bound and Approximation Algorithm In metric TSP and the minimum Steiner tree problem, we use minimum spanning tree as a lowerbound. In general, it is often difficult to come up with a good lowerbound.

5 Linear Programming and Approximation Algorithm lowerbound OPT SOL Linear programming: a general method to compute a lowerbound in polytime. LP To computer an approximate solution, we need to return an (integral) solution close to an optimal LP (fractional) solution.

6 An Example: Vertex Cover Vertex cover: find an minimum subset of vertices which cover all the edges. A linear programming relaxation of the vertex cover problem. Clearly, LP is a lowerbound on the optimal vertex cover, because every vertex cover corresponds to a feasible solution of this LP.

7 An Example: Vertex Cover How bad is this LP? 1 1 11 00.5 LP = 2.5 OPT = 4 LP = n/2 OPT = n-1

8 An Example: Vertex Cover Integrality gap: = Optimal integer solution. Optimal fractional solution. Over all instances. In vertex cover, there are instances where this gap is almost 2.

9 Half-integrality Theorem: For the vertex cover problem, every vertex (or basic) solution of the LP is half-integral, i.e. x(v) = {0, ½, 1} There is a 2-approximation algorithm for the vertex cover problem. The integrality gap of the vertex cover LP is at most 2.

10 Survivable Network Design Input An undirected graph G = (V,E), A cost c(e) on each edge, A connectivity requirement r(u,v) for each pair u,v. Output A minimum cost subgraph H of G which has r(u,v) edge-disjoint paths between each pair u,v. (That is, H satisfies all the connectivity requirements.)

11 Survivable Network Design Minimum spanning tree: r(u,v) = 1 for all pairs. Minimum Steiner tree: r(u,v) = 1 for all pair of required vertices. Hamiltonian path: r(u,v) = 2 for all pairs and every edge has cost 1. k-edge-connected subgraph: r(u,v) = k for all pairs. Minimum cost k-flow: r(s,t) = k for the source s and the sink t. Survivable Network Design is NP-complete.

12 Linear Programming Relaxation S uv For each set S separating u and v, there should be at least r(u,v) edges “crossing” S. Let f(S) = max{ r(u,v) | S separates u and v}. At least r(u,v) edges crossing S for each subset S of V

13 Special Case: Minimum Spanning Tree for each subset S of V How bad is this LP? 0.5 1 1 1 1 LP = 2.5 OPT = 4 LP = n/2 OPT = n-1 Cannot even solve minimum spanning tree!

14 Half-integrality Does the LP has half-integral optimal solution? Peterson Graph Consider the minimum spanning tree problem, i.e. f(S)=1 for all S. All 1/3 is a feasible solution and has cost 5. Any half-integral solution having cost 5 must be a Hamitonian cycle. But Peterson graph does not have an Hamitonian cycle! So, no half-integral optimal solution!

15 Separation Oracle for each subset S of V There are exponentially many constraints, but this LP can still be solved in polynomial time by the ellipsoid method. The reason is that we can design a polynomial time separation oracle to determine if x is a feasible solution of the LP.

16 Separation Oracle for each subset S of V Remember: f(S) = max{ r(u,v) | S separates u and v}. S uv At least r(u,v) edges crossing S Max-Flow Min-Cut Every (u,v)-cut has at least r(u,v) edges if and only if there are r(u,v) flows from u to v. Separation oracle: check if each pair u,v has a flow of r(u,v)!

17 Linear Programming Relaxation for each subset S of V What is the integrality gap of this LP?

18 Moment of Inspiration All 1/3 is a feasible solution. But this is not a vertex solution! Thick edges have value 1/2; Thin edges have value 1/4. This is a vertex solution.

19 Structural Result of the LP Kamal Jain Theorem. Every vertex solution has an edge with value at least 1/2 Corollary. There is a 2-approximation algorithm for survivable network design.

20 Iterative Rounding Initialization: H =, f’ = f. While f’ ≠ 0 do: oFind a vertex solution, x, of the LP with function f’. oAdd every edge with x(e) ≥ 1/2 into H. oUpdate f’: for every set S, set Output H. A new vertex solution is computed in each iteration Guaranteed to exist Update the connectivity requirements.

21 Analysis Corollary. There is a 2-approximation algorithm for survivable network design. Intuitive reason: we only pick an edge when the LP picks at least half. Proof: Let say we pick an edge e. Key: LP-c(e)x(e) is a feasible solution for the next iteration. cost(H) = c(e) + cost(H’) ≤ 2·c(e)x(e) + cost(H’) ≤ 2·c(e)x(e) + 2(LP-c(e)x(e)) ≤ 2LP ≤ 2OPT.

22 Some Remarks 1.The iterative rounding algorithm performs very well in practice. 2.No combinatorial algorithm has an performance ratio better than O(log n).

23 Spanning Tree with Degree Constraints Input An undirected graph G = (V,E), A degree upper bound k. Output A spanning tree with degree at most k. NP-complete (Hamiltonian path when k=2).

24 Spanning Tree with Degree Constraints Motivation: to find a spanning tree in which there is no “overloaded” vertices. [Furer and Raghavachari ’92] Given k, there is a polynomial time algorithm which does the following: Either the algorithm (i)Show that there is no spanning tree with maximum degree at most k. (ii)Find a spanning tree with maximum degree at most k+1. In other words, there is an +1 algorithm for this problem!

25 Minimum Spanning Tree with Degree Constraints Input An undirected graph G = (V,E), A cost c(e) on each edge e, A degree upper bound k. Output A minimum spanning tree with degree at most k. Question: Is there a +1 algorithm for this problem as well? That is, a polytime algorithm which returns a minimum spanning tree with maximum degree at most k+1.

26 Conjecture Let OPT be the minimum cost of a spanning tree with maximum degree k. [Goemans] Conjecture: Given k, there is a polynomial time algorithm which returns a spanning tree with cost at most OPT and maximum degree at most k+1. Note that we do not restrict ourselves to MST.

27 Previous Work ReferenceCost GuaranteeDegree Furer and Raghavachari ‘ 92Unweighted Casek+1 ∞k Konemann, Ravi ’ 01 ’ 02O(1)O(k+log n) CRRT ’ 05 ’ 06O(1)O(k) Ravi, S. 06MSTk+p (p=#distinct costs) Goemans ’ 061k+2

28 Our Result Theorem: Given k, there is a polynomial time algorithm which returns a spanning tree with cost at most OPT and maximum degree at most k+1. [Singh Lau 07] Mohit Singh Technique: Adaptation of iterative rounding, but we do not round.

29 Spanning Tree Polytope Formulate a linear programming relaxation. min  e 2 E c e x e s.t.  e 2 E(V) x e = |V|-1  e 2 E(S) x e ≤ |S|-1 x e ≥ 0 E(S): set of edges with both endpoints in S. Separation oracle [Cunningham ’ 84] ) Optimization in poly time for each subset S of V Any tree has n-1 edges Cycle elimination constraints

30 min  e 2 E c e x e s.t.  e 2 E(V) x e = |V|-1  e 2 E(S) x e ≤ |S|-1 x e ≥ 0 Spanning Tree Polytope Recall: A vertex solution is the unique solution of m linearly independent tight inequalities, where m denotes the number of variables.

31 min  e 2 E c e x e s.t.  e 2 E(V) x e = |V|-1  e 2 E(S) x e ≤ |S|-1 x e ≥ 0 Spanning Tree Polytope If there is an edge of 0, delete it. If there exists a leaf vertex v, then include the edge incident at v in and remove v from G.

32 min  e 2 E c e x e s.t.  e 2 E(V) x e = |V|-1  e 2 E(S) x e ≤ |S|-1 x e ≥ 0 Spanning Tree Polytope Claim: A vertex solution of the LP must have a leaf vertex. Theorem: There are at most n-1 linearly independent tight inequalities of this type, where n denotes the number of vertices. If there is no leaf vertex, then every vertex has degree 2, and hence there are at least 2n/2=n edges, a contradiction to the above theorem.

33 No 1-edge ) many fractional edges Vertex Solution with few constraints ) few fractional edges Derive contradiction Spanning Tree Polytope So a vertex solution must have an edge of 0 or a leaf vertex, in either case we can finish by induction. This proves that the linear program has integer optimal solution.

34 Extend spanning tree polyhedron OPT = min  e 2 E c e x e s.t.  e 2 E(V) x e = |V|-1  e 2 E(S) x e · |S|-1  e 2  (v) x e · B v 8 v 2 W x e ≥ 0 A Simple +2 Algorithm for each subset S of V The degree constraint of each vertex could be different Goal: Find a spanning tree with cost at most OPT and degree is violated by at most 2.

35 Initialize F=  While F is not a spanning tree 1.Solve LP to obtain vertex solution x*. 2. Remove all edges e s.t. x* e =0. 3.If there is a leaf vertex v with edge {u,v}, then include {u,v} in F. Decrease B u by 1. Delete v from G. If algorithm works then we solve the problem optimally! Cannot pick an edge with 1 > x e ¸ ½ : lose optimality of the cost. First Try

36 Initialize F=  While F is not a spanning tree 1.Solve LP to obtain extreme point x*. 2. Remove all edges e s.t. x* e =0. 3.If there is a leaf vertex v with edge {u,v}, then include {u,v} in F. Decrease B u by 1. Delete v from G. 4.If there is a vertex v 2 W such that deg E (v) ≤ B v +2, then remove the degree constraint of v. A Simple +2 Algorithm

37 Removing Degree Constraints If there is a vertex v 2 W such that deg E (v) ≤ B v +2, then remove the degree constraint of v. This is only done one, and the degree constraint is violated by at most +2! B v =1 1/3 B v =1 1 1 1

38 Lemma: For any vertex solution x, one of the following is true: 1)Either there is a leaf vertex v. 2)Or there is a vertex with degree constraint such that deg E (v) · B v +2 Initialize F=  While F is not a spanning tree 1.Solve LP to obtain extreme point x*. 2. Remove all edges e s.t. x* e =0. 3.If there is a leaf vertex v with edge {u,v}, then include {u,v} in F. Decrease B u by 1. Delete v from G. 4.If there is a vertex v 2 W such that deg E (v) ≤ B v +2, then remove the degree constraint of v. A Simple +2 Algorithm

39 OPT = min  e 2 E c e x e s.t.  e 2 E(V) x e = |V|-1  e 2 E(S) x e · |S|-1  e 2  (v) x e · B v 8 v 2 W x e ≥ 0 Theorem: There are at most n-1 linearly independent tight inequalities of this type, where n denotes the number of vertices. Analysis Proof of the Lemma: Suppose not. Every vertex has degree at least 2. Every vertex in W has degree at least 4. |E| ≥ ½*(2(n-|W|)+4|W|)= n+|W| The set of tight constraints : |E| ≤ n-1+|W| A contradiction.

40 A Simple +2 Algorithm A quick summary:  Find a leaf vertex v, add the only edge at v and remove v. - Don’t lose the cost optimality and the degree bound.  Find a vertex with at most B v +2 neighbours and has a degree constraint, remove the degree constraint. - Violate the degree bound by at most +2. By the Lemma, one of the two possibilities must hold.

41 Obtaining +1 algorithm Initialize F=  Initialize F=  While F is not a spanning tree 1. Solve LP to obtain extreme point x*. 2. Remove all edges e s.t. x* e =0. 3. If there exists a leaf vertex v with edge {u,v}, then include {u,v} in F. Decrease B u by 1. Delete v from G. 4. If there exists a vertex v 2 W such that deg E (v) · B v +2, then remove the degree constraint of v. Replace by B v +1 v leaf ) x {u,v} =1 Why not pick any e s.t. x e =1 ?

42 Concluding Remarks 1.No combinatorial algorithm has a good performance ratio. 2.Similar techniques can be used for more general problems, e.g. minimum maximum degree k-ec subgraph 3.Can deal with lower and upper bounds. 4.A unifying framework for network design problems. 5.Proofs are based on uncrossing techniques in combinatorial optimiation.


Download ppt "Approximation Algorithm: Iterative Rounding Lecture 15: March 9."

Similar presentations


Ads by Google