Docsity

Approximation Algorithms - Assignment 2 | COT 6938, Assignments of Computer Science

Toggle sidebar
bg1
COT 6938: Approximation Algorithms
Assignment 2
Out: 09/29/2008 Due: 10/13/2008 (before class)
1. Show that the minimum k-cut problem (Problem 4.2) is polynomial time solvable for
fixed k.
2. Show that Algorithm 4.3 can be used as a subroutine for finding a k-cut within a factor
of 2 −2/k of the minimum k-cut. How many subroutine calls are needed?
3. The hardness of the Steiner tree problem lies in determining the optimal subset of Steiner
vertices that need to be included in the tree. Show this by proving that if this set is
provided, then the optimal Steiner tree can be computed in polynomial time.
Hint: Find a minimum spanning tree on the union of this set and the set of required
vertices.
4. Let G= (V , E) be a graph with nonnegative edge costs. S, the senders and R, the
receivers, are disjoint subsets of V. The problem is to find a minimum cost subgraph of
Gthat has a path connecting each receiver to a sender (any sender suffices). Partition
the instances into two cases: S∪R=Vand S∪R6=V. Show that these two cases are
in Pand NP-hard, respectively.
Hint: Add a new vertex that is connected to each sender by a zero cost edge. Consider
the new vertex and all receivers as required and the remaining vertices as Steiner, and
find a minimum Steiner tree.
5. Given an undirected graph G= (V, E ), the cardinality maximum cut asks for a partition
of Vinto sets Sand ¯
Sso that the number of edges running between these sets is
maximized. Consider the following greedy algorithm for this problem. Here v1and v2
are arbitrary vertices in G, and for A⊂V,d(v, A) denotes the number of edges running
between vertex vand set A.
1. initialize
A← {v1}
B← {v2}
2. for v∈V\ {v1, v2}do
if d(v, A)≥d(v, B )then B←B∪ {v}
else A←A∪ {v}
3. output Aand B
Show that this is a factor 1/2 approximation algorithm and give a tight example. What
is the upper bound on OPT that you are using? Give examples of graphs for which
this upper bound is as bad as twice OPT. Generalize this problem and the algorithm to
weighted graphs.
Page 1 of 2
pf2

Partial preview of the text

Download Approximation Algorithms - Assignment 2 | COT 6938 and more Assignments Computer Science in PDF only on Docsity!

COT 6938: Approximation Algorithms

Assignment 2 Out: 09/29/2008 Due: 10/13/2008 (before class)

  1. Show that the minimum k-cut problem (Problem 4.2) is polynomial time solvable for fixed k.
  2. Show that Algorithm 4.3 can be used as a subroutine for finding a k-cut within a factor of 2 − 2 /k of the minimum k-cut. How many subroutine calls are needed?
  3. The hardness of the Steiner tree problem lies in determining the optimal subset of Steiner vertices that need to be included in the tree. Show this by proving that if this set is provided, then the optimal Steiner tree can be computed in polynomial time. Hint: Find a minimum spanning tree on the union of this set and the set of required vertices.
  4. Let G = (V, E) be a graph with nonnegative edge costs. S, the senders and R, the receivers, are disjoint subsets of V. The problem is to find a minimum cost subgraph of G that has a path connecting each receiver to a sender (any sender suffices). Partition the instances into two cases: S ∪ R = V and S ∪ R 6 = V. Show that these two cases are in P and NP-hard, respectively. Hint: Add a new vertex that is connected to each sender by a zero cost edge. Consider the new vertex and all receivers as required and the remaining vertices as Steiner, and find a minimum Steiner tree.
  5. Given an undirected graph G = (V, E), the cardinality maximum cut asks for a partition of V into sets S and S¯ so that the number of edges running between these sets is maximized. Consider the following greedy algorithm for this problem. Here v 1 and v 2 are arbitrary vertices in G, and for A ⊂ V , d(v, A) denotes the number of edges running between vertex v and set A. 1. initialize A ← {v 1 } B ← {v 2 } 2. for v ∈ V \ {v 1 , v 2 } do if d(v, A) ≥ d(v, B) then B ← B ∪ {v} else A ← A ∪ {v} 3. output A and B

Show that this is a factor 1/2 approximation algorithm and give a tight example. What is the upper bound on OPT that you are using? Give examples of graphs for which this upper bound is as bad as twice OPT. Generalize this problem and the algorithm to weighted graphs.

Page 1 of 2

  1. Consider the following algorithm for the maximum cut problem, based on the technique of local search. Given a partition of V into sets, the basic step of the algorithm, called flip, is that of moving a vertex from one side of the partitions to the other. The following algorithm finds a locally optimal solution under the flip operation, i.e., a solution that cannot be improved by a single flip. The algorithm starts with an arbitrary partition of V. While there is a vertex such that flipping it increases the size of the cut, the algorithm flips such a vertex. (Observe that a vertex qualifies for a flip if it has more neighbors in its own partition than in the other side.) The algorithm terminates when no vertex qualifies for a flip. Show that the algorithm terminates in polynomial time, and achieves an approximation guarantee of 1 /2.
  2. (Bonus; this is a lot of work!)

Implement Algorithm 4.7 for the minimum k-cut problem. Look at exercises 4.3, 4.4, 4.5, and 4.6 to see how to implement the Gomory-Hu algorithm.

  1. (Bonus for those students who took the class “Probabilistic Analysis and Randomized Algorithms”) Find a simple Monte Carlo algorithm for the k-cut problem for fixed k.

Page 2 of 2