



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




CS880: Approximations Algorithms Scribe: Chi Man Liu Lecturer: Shuchi Chawla Topic: Primal-Dual Method: Steiner Forest and Facility Location Date: 3/8/
Last time we discussed how LP-duality can be applied to approximation. We introduced the primal- dual method for approximating the optimal solution to an LP in a combinatorial way. We applied this technique to give another 2-approximation for the Vertex Cover problem. In this lecture, we present and analyze a primal-dual algorithm that gives a 2-approximation for the Steiner Forest problem. We also briefly talk about a primal-dual algorithm for Facility Location.
We restate the Steiner Forest problem here.
Definition 14.1.1 (Steiner Forest) Given an undirected graph G = (V, E), edge costs c : E → R+, and disjoint subsets Si ⊆ V , find a minimum-cost forest F such that for all i and u, v ∈ Si, there exists a path connecting u to v in F.
To formulate Steiner Forest as an ILP, we introduce an indicator variable xe for each edge e. Let S be the collection of all sets S ⊆ V that cut some Si into two parts, i.e. S = {S ∈ V | S ∩ Si ∈/ {∅, Si} for some i}. Then from last lecture we have the following ILP formulation for Steiner Forest.
minimize
e∈E cexe subject to
e∈δ(S) xe^ ≥^1 ∀S^ ∈ S xe ∈ { 0 , 1 } ∀e ∈ E
where δ(S) denotes the boundary of S, i.e. the set of edges in E with exactly one endpoint in S. The LP relaxation for this problem is as follows. Note that we do not restrict xe to be at most 1 since any optimal solution x∗^ to the LP must satisfy x∗ e ≤ 1 for all e ∈ E.
minimize
e∈E cexe subject to
e∈δ(S) xe^ ≥^1 ∀S^ ∈ S xe ≥ 0 ∀e ∈ E
We introduce a variable yS for each S ∈ S and obtain the dual LP.
maximize
S∈S yS subject to
S:e∈δ(S) yS^ ≤^ ce^ ∀e^ ∈^ E yS ≥ 0 ∀S ∈ S
If ce = 1 for all e and integer constraints are imposed, the dual LP can be interpreted as the problem of picking a largest collection C ⊆ S such that no two sets in C have a common edge on their boundaries.
We start with the primal infeasible solution x = (0,... , 0)T^ and the dual feasible solution y = (0,... , 0)T^. We then raise some of the dual variables until some dual constraint goes tight. At this
point, we put the edge corresponding to the constraint into F , and freeze all dual variables in the constraint. We repeat this process, all the time keeping the dual solution feasible, until all dual variables are frozen. A detailed description of our primal-dual algorithm is as follows.
After the above primal-dual steps, we get a collection of edges F. Finally, we need a pruning step to remove extra edges from F.
Intuitively, we can think of the algorithm as expanding minimal unsatisfied sets (active sets) until some of them touch on some edge, at which time we merge the active sets to form a larger set. The newly formed set may be active or inactive. If it is active, we start expanding it with other existing active sets. Initially, each terminal node forms an active set. The above process continues until all sets become inactive. Also note that when we expand an active set, it may touch a non-Steiner node. In such a case, a new set is formed by adding that node into the active set.
Lemma 14.1.2 At termination, y is dual feasible.
Proof: In our algorithm, whenever a dual constraint goes tight, all its variables are frozen, therefore no dual constraints can be violated throughout the algorithm. Since all dual constraints are satisfied at the beginning, they remain satisfied.
By weak duality, we have the following corollary.
Corollary 14.1.3 Let OP T be the cost of an optimal Steiner forest. Then
S∈S yS^ ≤^ OP T^. Lemma 14.1.4 At the end of the primal-dual steps, F is a forest and is primal feasible.
Proof: Since we consider dual constraints one by one, and always add edges between two minimal unsatisfied sets, we never form a cycle, and thus F is a forest. If F was not feasible, then some S ∈ S remained unsatisfied upon termination. That means none of the edges in δ(S) were in F ; equivalently, yS had not been frozen. This contradicts step 4 of our algorithm.
Lemma 14.1.5 F and y satisfy the primary complementary slackness conditions.
Proof: We only raise the value of a primal variable in step 3 of our algorithm. Such an event happens only when the corresponding dual constraint goes tight.∑ Hence, xe > 0 implies that
S:e∈δ(S) yS^ =^ ce.
We claim that any time t, the average degree of all active sets is at most 2, i.e.
S∈A(t) degF^ ′^ (S)^ ≤ 2 · |A(t)|. If that holds, then the increase in LHS is at most the increase in RHS, thus completing our induction. To prove the claim, we consider all components of F at time t. The average degree of these components under the final F is at most 2, implying that the average degree of these components under F ′^ is at most 2. Some of these components are active sets while others are inactive. If we can show that all the inactive ones have degree (under F ′) not equal to 1, then we are done. We prove this by contradiction. Suppose that for some inactive component S, degF ′ (S) = 1. Let e be the only edge in F ′^ ∩ δ(S). Then e must lie on some path in F ′^ connecting u, v ∈ Si for some i, otherwise it would have been removed from F ′. But then u ∈ S and v /∈ S (or vice versa), implying that S ∈ S, which is a contradiction since we have assumed that S is inactive.
Remark. The above 2-approximation is due to Agarwal, Klein and Ravi [1]. Later, Goemans and Williamson [2] started to use the primal-dual method in solving many other approximation problems.
We restate the Facility Location problem here.
Definition 14.2.1 (Facility Location) Given a set of facilities I, a set of customers J, facility opening costs f : I → R+^ and a metric c on I ∪ J, find a subset S ⊆ I that minimizes the total cost C(S) = Cf (S)+Cr(S), where Cf (S) is the total facility openning cost defined as Cf (S) =
i∈S f^ (i), and Cr(S) is the total routing cost defined as Cr(S) =
j∈J mini∈S^ c(i, j). To formulate Facility Location as an ILP, we introduce an indicator variable xi for each facility i. For each facility i and customer j, we introduce a variable yij which is set to 1 if and only if j is assigned to i. For notational convenience, we write fi and cij instead of f (i) and c(i, j). Then we have the following ILP formulation for Facility Location.
minimize
i∈I fixi^ +^
i∈I,j∈J cij^ yij subject to
i∈I yij^ ≥^1 ∀j^ ∈^ J xi − yij ≥ 0 ∀i ∈ I, j ∈ J xi, yij are non-negative integers ∀i ∈ I, j ∈ J
By introducing a variable αj for each customer j and βij for each facility-customer pair (i, j), we get the following dual of the LP relaxation.
maximize
j αj subject to α∑j − βij ≤ cij ∀i ∈ I, j ∈ J j βij^ ≤^ fi^ ∀i^ ∈^ I αi, βij ≥ 0 ∀i ∈ I, j ∈ J
We can interpret the dual LP as follows. We are the owners of the facilities and are going to collect money from the customers in order to open some of the facilities. For each customer j, αj is the amount paid by j. For each facility i and customer j, βij is the portion of αj that pays for facility i. The constraint αj − βij ≤ cij states that the amount paid by customer j should not exceed
the portion that goes to facility∑ i plus the routing cost cij , for every facility i. The constraint
j βij^ ≤^ fi^ states that no facility should overcharge its customers, i.e. the customers should not pay more than enough to open the facility. Under these constraints, we want to maximize
j αj^ , the total amount collected from the customers. Note that each customer may be paying for several facilities. To deal with this, we close some of the facilities in our primal solution such that every customer pays for at most one facility, and reassign all unassigned customers to the remaining facilities. We will look at the primal-dual algorithm next lecture.
[1] A. Agrawal, P. Klein and R. Ravi. When Trees Collide: An Approximation Algorithm for the Generalized Steiner Problem on Networks. In SIAM Journal on Computing, 24, pp. 440–456,
[2] M. X. Goemans and D. P. Williamson. A General Approximation Technique for Constrained Forest Problems. In SIAM Journal on Computing, 24, pp. 296–317, 1995.