

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Human-in-the-loop Data Mgnt; Subject: Computer Science; University: University of Illinois - Urbana-Champaign; Term: Spring 2009;
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Spring 2009, CS 598CSC: Approximation Algorithms Homework 1 Due: 02/18/2009 in class
Instructions and Policy: You are not allowed to consult any material outside of the textbook and class notes in solving these problems. Each student should write up their own solutions indepen- dently. You need to indicate the names of the people you discussed a problem with; ideally you should discuss with no more than two other people.
Please write clearly and concisely - clarity and brevity will be rewarded. Refer to known facts as necessary. Your job is to convince us that you know the solution, as quickly as possible.
Problem 1 Let G = (V, A) be a directed graph with arc weights c : A → R+. Define the density of a directed cycle C as
a∈C c(a)/|V^ (C)|^ where^ V^ (C)^ is set of vertices in^ C.
Problem 2 Consider the k-dimensional knapsack problem. We are given n non-negative k-dimensional vectors v¯ 1 , ¯v 2 ,... , v¯n. Each vector has a non-negative weight, wi for v¯i. We are also given a k- dimensional knapsack V¯ and the goal is to find a maximum weight subset of vectors that pack in to V. A subset of vectors pack into V¯ if their vector addition is less than V¯ (co-ordinate wise). Prove that there is a pseudo-polynomial time algorithm for this problem when k is a fixed con- stant independent of n. What is the running time of your algorithm? Prove that even for k = 2 and unit weights the problem does not admit an FPTAS. (Hint: use a reduction from the Partition problem. For an item ai consider a vector (ai, A − ai) for some large enough A.) Extra credit: Obtain a PTAS for this problem when k is a fixed constant independent of n (might need to use LP techniques).
Problem 3 Consider a budgeted version of the maximum coverage problem. We are given m sets S 1 , S 2 ,... , Sm, each a subset of a set U. Each set Si has a non-negative cost ci and we are also
given a budget B. The goal is to pick sets of total cost at most B so as to maximize the number of elements covered. Show that if ci ≤ B for 1 ≤ i ≤ m then the Greedy algorithm yields a 1 − 1 /e − approximation (for sufficiently small ). For any fixed > 0 obtain a 1 − 1 /e − approximation. (Hint: consider the PTAS for knapsack from the lectures. You might find the inequality 1 − x ≤ e−x^ useful.) Extra credit: Obtain a 1 − 1 /e approximation for this problem.
Problem 4 In the submodular set cover problem, we are given a universe U of elements, and a monotone submodular function f : 2U^ → R+. The goal is to pick a smallest U ′^ ⊆ U such that f (U ′) = f (U). In the submodular maximum coverage problem, we are also given an integer k, and the goal is to pick a set U ′^ ⊆ U of size at most k to maximize f (U ′).
matrix M where each entry Mi,j is a subset of a universe U of size n ≥. We say a row Mi of M is covered by U ′^ ⊆ U if there are distinct elements e 1 , e 2 ,... e in U ′^ such that ej ∈ Mi,j for each 1 ≤ j ≤ `. Prove that the problem of finding a smallest U ′^ ⊆ U such that each row is covered by U ′^ is a special case of the submodular set cover problem. Describe how to evaluate the submodular function f ; that is, give an algorithm to compute f (U ′) for any U ′^ ⊆ U.Problem 5 For Metric-TSP consider the nearest neighbour heuristic discussed in class. Prove that the heuristic yields an O(log n) approximation. (Hint: use the basic idea in the online greedy algorithm for the Steiner tree problem). Extra Credit: Give an example to show that there is no constant c such that the heuristic is a c-approximation algorithm.