高级算法 (Fall 2020)/Problem Set 3

From TCS Wiki
Jump to navigation Jump to search

Problem 1

Given m subsets S1,S2,,SmU of a universe U of size n, we want to find a C{1,2,,m} of fixed size k=|C| with the maximum coverage |iCSi|.

  • Give a poly-time greedy algorithm for the problem. Prove that the approximation ratio is 1(11/k)k>11/e.


Problem 2

In the maximum directed cut (MAX-DICUT) problem, we are given as input a directed graph G(V,E). The goal is to partition V into disjoint S and T so that the number of edges in E(S,T)={(u,v)EuS,vT} is maximized. The following is the integer program for MAX-DICUT:

maximize(u,v)Eyu,vsubject toyu,vxu,(u,v)E,yu,v1xv,(u,v)E,xv{0,1},vV,yu,v{0,1},(u,v)E.

Let xv,yu,v denote the optimal solution to the LP-relaxation of the above integer program.

  • Apply the randomized rounding such that for every vV, x^v=1 independently with probability xv. Analyze the approximation ratio (between the expected size of the random cut and OPT).
  • Apply another randomized rounding such that for every vV, x^v=1 independently with probability 1/4+xv/2. Analyze the approximation ratio for this algorithm.

Problem 3

Recall the MAX-SAT problem and its integer program:

maximizej=1myjsubject toiSj+xi+iSj(1xi)yj,1jm,xi{0,1},1in,yj{0,1},1jm.

Recall that Sj+,Sj{1,2,,n} are the respective sets of variables appearing positively and negatively in clause j.

Let xi,yj denote the optimal solution to the LP-relaxation of the above integer program. In our class we learnt that if x^i is round to 1 independently with probability xi, we have approximation ratio 11/e.

We consider a generalized rounding scheme such that every x^i is round to 1 independently with probability f(xi) for some function f:[0,1][0,1] to be specified.

  • Suppose f(x) is an arbitrary function satisfying that 14xf(x)4x1 for any x[0,1]. Show that with this rounding scheme, the approximation ratio (between the expected number of satisfied clauses and OPT) is at least 3/4.
  • Derandomize this algorithm through conditional expectation and give a deterministic polynomial time algorithm with approximation ratio 3/4.
  • Is it possible that for some more clever f we can do better than this? Try to justify your argument.

Problem 4

The following is the weighted version of set cover problem:

Given m subsets S1,S2,,SmU, where U is a universe of size n=|U|, and each subset Si is assigned a positive weight wi>0, the goal is to find a C{1,2,,m} such that U=iCSi and the total weight ICwi is minimized.

  • Give an integer program for the problem and its LP relaxation.
  • Consider the following idea of randomized rounding: independently round each fractional value to {0,1} with the probability of the fractional value itself; and repeatedly apply this process to the variables rounded to 0 in previous iterations until U is fully covered. Show that this can return a set cover with O(logn) approximation ratio with probability at least 0.99.

Problem 5

Consider the following greedy algorithm for the knapsack problem, which has been briefly mentioned in class:

Sort all items according to the ratio ri=vi/wi
so that r1r2rn;

for i=1,2,...,n

item i joins S if the resulting total weight B;
  • Show that the approximation ratio of this algorithm can be arbitrarily bad. Formally, given an arbitrary constant ϵ(0,1), construct an instance that the solution of this algorithm SOL is less than (1ϵ)OPT.
  • Consider the following modification to this algorithm. Let the sorted order of objects be a1,...,an. Find the lowest k such that the size of the first k objects exceeds B. Now, pick the more valuable of {a1,...,ak1} and {ak} (we have assumed that the size of each object is at most B). Show that this algorithm achieves an approximation ratio of 1/2.