J. A A
Because the random choices in each iteration of the main loop are independent, we can simplify the algorithm by changing the rounding criterion as follows, where N = 2 lg n:
x0(v) = 1 with probability 1 (1 x(v))N , 0 otherwise,
Let C be the set of vertices returned by this algorithm. Each edge uv is left uncovered by C with probability (1 x(u))N (1 x(v))N 1/4N = 1/n4. It follows that C is a vertex cover with probability at least 1 1/n2. On the other hanfid, linearity of expectation immediately implies that the expected size of C is exactly N OPT 2 lg n OPT.
If we want to guarantee a vertex cover, we can modify the main loop in A L - V C to continue running until every edge is covered. The loop will terminate after O(logn) iterations with high probability, and the expected size of the resulting vertex cover is still at most O(log n) OPT. Thus, at least in expectation, we obtain the same O(log n) approximation ratio (at least in expectation) as our original greedy algorithm.
This randomized rounding strategy can be generalized to the lightest set cover problem, where each subset in the input family has an associated weight, and the goal is to find the lightest collection of subsets that covers the ground set. The resulting rounding algorithm computes a set cover whose expected weight is at most O(log |F|) times the weight of the lightest set cover, matching the performance of the greedy algorithm for unweighted set cover. The dual of this algorithm is a randomized O(log |X|)- approximation algorithm for weighted hitting set (where every item in the ground set has a weight).
Derandomization: Greedy set cover with prices with proof via LP duality
J.8 Traveling Salesman: The Bad News
The traveling salesman problem problem asks for the shortest Hamiltonian cycle in a
weighted undirected graph. To keep the problem simple, we can assume without loss of
generality that the underlying graph is always the complete graph K for some integer n; n n
thus, the input to the traveling salesman problem is just a list of the 2 edge lengths. Not surprisingly, given its similarity to the Hamiltonian cycle problem, its quite easy to prove that the traveling salesman problem is NP-hard. Let G be an arbitrary undirected graph with n vertices. We can construct a length function for Kn as follows:
`(e)=1 ifeisanedgeinG, 2 otherwise.