11 4 the pricing method vertex cover weighted vertex cover
play

11.4 The Pricing Method: Vertex Cover Weighted Vertex Cover - PowerPoint PPT Presentation

11.4 The Pricing Method: Vertex Cover Weighted Vertex Cover Weighted vertex cover. Given a graph G with vertex weights, find a vertex cover of minimum weight. 2 4 2 4 2 9 2 9 weight = 2 + 2 + 4 weight = 9 23 Weighted Vertex Cover


  1. 11.4 The Pricing Method: Vertex Cover

  2. Weighted Vertex Cover Weighted vertex cover. Given a graph G with vertex weights, find a vertex cover of minimum weight. 2 4 2 4 2 9 2 9 weight = 2 + 2 + 4 weight = 9 23

  3. Weighted Vertex Cover Pricing method. Each edge must be covered by some vertex i. Edge e pays price p e ≥ 0 to use vertex i. Fairness. Edges incident to vertex i should pay ≤ w i in total. 2 4 for each verte x i : p w ≤ ∑ e i e ( i , j ) = 2 9 Claim. For any vertex cover S and any fair prices p e : ∑ e p e ≤ w(S). Proof. ▪ p p w w ( S ). ≤ ≤ = ∑ ∑ ∑ ∑ e e i e E i S e ( i , j ) i S ∈ ∈ = ∈ each edge e covered by sum fairness inequalities at least one node in S for each node in S 24

  4. Pricing Method Pricing method. Set prices and find vertex cover simultaneously. Weighted-Vertex-Cover-Approx(G, w) { foreach e in E p = w ∑ e i p e = 0 e ( i , j ) = while ( ∃ edge i-j such that neither i nor j are tight) select such an edge e increase p e without violating fairness } S ← set of all tight nodes return S } 25

  5. Pricing Method price of edge a-b vertex weight Figure 11.8 26

  6. Pricing Method: Analysis Theorem. Pricing method is a 2-approximation. Pf.  Algorithm terminates since at least one new node becomes tight after each iteration of while loop.  Let S = set of all tight nodes upon termination of algorithm. S is a vertex cover: if some edge i-j is uncovered, then neither i nor j is tight. But then while loop would not terminate.  Let S* be optimal vertex cover. We show w(S) ≤ 2w(S*). w ( S ) = w i p e p e = 2 p e 2 w ( S *). ∑ = ∑ ∑ ≤ ∑ ∑ ∑ ≤ i ∈ S i ∈ S e = ( i , j ) i ∈ V e = ( i , j ) e ∈ E all nodes in S are tight S ⊆ V, fairness lemma each edge counted twice prices ≥ 0 27

  7. 11.6 LP Rounding: Vertex Cover

  8. Weighted Vertex Cover Weighted vertex cover. Given an undirected graph G = (V, E) with vertex weights w i ≥ 0, find a minimum weight subset of nodes S such that every edge is incident to at least one vertex in S. 10 9 A F 6 16 10 B G 7 6 9 C H 3 23 33 D I 7 32 E J 10 total weight = 55 29

  9. Weighted Vertex Cover: IP Formulation Weighted vertex cover. Given an undirected graph G = (V, E) with vertex weights w i ≥ 0, find a minimum weight subset of nodes S such that every edge is incident to at least one vertex in S. Integer programming formulation.  Model inclusion of each vertex i using a 0/1 variable x i . x i = 0  if vertex i is not in vertex cover  1 if vertex i is in vertex cover  Vertex covers in 1-1 correspondence with 0/1 assignments: S = {i ∈ V : x i = 1}  Objective function: maximize Σ i w i x i .  Must take either i or j: x i + x j ≥ 1. 30

  10. Weighted Vertex Cover: IP Formulation Weighted vertex cover. Integer programming formulation. ( ILP ) min w i x i ∑ i ∈ V x i + x j ( i , j ) ∈ E s. t. 1 ≥ x i i ∈ V {0,1} ∈ Observation. If x* is optimal solution to (ILP), then S = {i ∈ V : x* i = 1} is a min weight vertex cover. 31

  11. Integer Programming INTEGER-PROGRAMMING. Given integers a ij and b i , find integers x j that satisfy: n a ij x j ≥ b i 1 ≤ i ≤ m ∑ c t x max j = 1 s. t. Ax b ≥ x j 0 1 ≤ j ≤ n ≥ x integral x j integral 1 ≤ j ≤ n Observation. Vertex cover formulation proves that integer programming is NP-hard search problem. even if all coefficients are 0/1 and at most two variables per inequality 32

  12. Linear Programming Linear programming. Max/min linear objective function subject to linear inequalities.  Input: integers c j , b i , a ij .  Output: real numbers x j . n (P) max c j x j ∑ j = 1 c t x (P) max n s. t. a ij x j b i 1 ≤ i ≤ m ∑ ≥ s. t. Ax b ≥ j = 1 x j 0 1 ≤ j ≤ n ≥ x 0 ≥ Linear. No x 2 , xy, arccos(x), x(1-x), etc. Simplex algorithm. [Dantzig 1947] Can solve LP in practice. Ellipsoid algorithm. [Khachian 1979] Can solve LP in poly-time. 33

  13. LP Feasible Region LP geometry in 2D. x 1 = 0 x 2 = 0 x 1 + 2x 2 = 6 2x 1 + x 2 = 6 34

  14. Weighted Vertex Cover: LP Relaxation Weighted vertex cover. Linear programming formulation. ( LP ) min w i x i ∑ i ∈ V x i + x j ( i , j ) ∈ E s. t. 1 ≥ x i i ∈ V ≥ 0 Observation. Optimal value of (LP) is ≤ optimal value of (ILP). Pf. LP has fewer constraints. ½ ½ Note. LP is not equivalent to vertex cover. ½ Q. How can solving LP help us find a small vertex cover? A. Solve LP and round fractional values. 35

  15. Weighted Vertex Cover Theorem. If x* is optimal solution to (LP), then S = {i ∈ V : x* i ≥ ½ } is a vertex cover whose weight is at most twice the min possible weight. Pf. [S is a vertex cover]  Consider an edge (i, j) ∈ E.  Since x* i + x* j ≥ 1, either x* i ≥ ½ or x* j ≥ ½ ⇒ (i, j) covered. Pf. [S has desired cost]  Let S* be optimal vertex cover. Then * ≥ 1 w i ≥ w i x i w i ∑ ∑ ∑ 2 i ∈ S * i ∈ S i ∈ S LP is a relaxation x* i ≥ ½ 36

  16. Weighted Vertex Cover Theorem. 2-approximation algorithm for weighted vertex cover. Theorem. [Dinur-Safra 2001] If P ≠ NP, then no ρ -approximation for ρ < 1.3607, even with unit weights. 10 √ 5 - 21 Open research problem. Close the gap. 37

Recommend


More recommend