
COT 6938: Approximation Algorithms
Assignment 3
Out: 10/22/2008 Due: 11/12/2008 (before class)
1. Find an approximation algorithm having approximation gurantee 2 for the following
clustering problem:
•Input: Points x1, . . . , xn∈Rnand an integer k
•Output: A partition of the points into kclusters C1, . . . , Ck
•Goal: Minimize the diameter of the clusters
max
j=1,...,k max
xa,xb∈Cj
d(xa, xb),
where d(xa, xb) denotes the Euclidean distance between the points xaand xb.
2. An obvious algorithm for the knapsack problem is to sort the objects by decreasing ratio
of profit to size, and then greedily pick objects in this order. Show that this greedy
algorithm can be made to perform arbitrarily badly.
3. Consider the following improvement of the algorithm in Problem 2. Let the sorted order
of objects be a1, a2, . . . , an. Find the lowest ksuch that the size of the first kobjects
exceeds B. Now, pick the more profitable of {a1, . . . , ak−1}and {ak}. Show that this
algorithm achieves an approximation factor of 2.
4. Find an FPTAS for the following subset-sum ration problem. Given npositive integers,
a1< . . . < an, find two disjoint nonempty subsets S1, S2⊆ {1, . . . , n}with Pi∈S1ai≥
Pj∈S2aj, such that the ratio
Pi∈S1ai
Pj∈S2aj
is minimized.
Hint: First, obtain a pseudo-polynomial time algorithm for this problem. Then, scale
and round appropriately.
5. Give an example on which First-Fit does as bad as 5/3·OP T .
6. Prove the bounds on Rand Pstated in Lemma 9.4.
7. Prove the following statement made in Lemma 9.5, “A packing for instance J0yields a
packing for all but the largest Qitems of instance J.”
Hint: Throw away the largest Qitems of Jand the smallest items of J0, and establish
a domination.
Page 1 of 2