
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















The reduction from gap-3SAT[] to gap-CLIQUE “maintains” the size of the gap. We will obtain a stronger result on the approximability of CLIQUE by describing a reduction that amplifies the gap. Given a instance of gap-3SAT[] and a positive integer k, create an instance of CLIQUE as follows: — for each set of k clauses, create a set of independent vertices (a “part”) to represent each satisfying assignment for those k clauses, and — put edges between vertices to represent consistency (two assignments are inconsistent if they give different values to the same variable).
Notice that the graph has
(m k
parts, each clause has 7 satisfying assignments, thus a set of k clauses has at most 7k^ satisfying assignments (why might it have fewer than that?), so each part contains at most 7k^ vertices.
If there is a satisfying assignment, then there is a clique containing one vertex from each part: that is, there is a clique of size
(m k
Suppose 1/8 of the clauses are false. Then the fraction of the parts that represent a set of k clauses that are satisfiable is ( 7 / 8 )k^. Now we can decide what the value of k should be. For any 0 ≤ δ ≤ 1, set k so that ( 7 / 8 + )k^ < δ. Then if there is a clique including vertices from at least δ of the parts, then there is an assignment satisfying a fraction ≥ δ of the k-tuples of clauses. This rules out the instance of gap-3SAT[] being a NO instance
If there is a satisfying assignment, then there is a clique containing one vertex from each part: that is, there is a clique of size
(m k
Suppose 1/8 of the clauses are false. Then the fraction of the parts that represent a set of k clauses that are satisfiable is ( 7 / 8 )k^. Now we can decide what the value of k should be. For any 0 ≤ δ ≤ 1, set k so that ( 7 / 8 + )k^ < δ. Then if there is a clique including vertices from at least δ of the parts, then there is an assignment satisfying a fraction ≥ δ of the k-tuples of clauses. This rules out the instance of gap-3SAT[] being a NO instance
By reduction from gap-3SAT[] the following problem is NP -hard for any 0 < δ < 1:
gap-CLIQUE (Version 2) Instance : a graph G = (V , E) composed of
(m k
independent sets of size r Goal : To distinguish between YES There is a clique of size
(m k
NO Every clique is of size at most δ
(m k
and this implies Theorem CLIQUE is NP -hard to approximate within any constant factor.
We have seen that some optimisation problems (probably) cannot be approximated within any fixed relative error in polynomial time. On the other hand, some NP -hard optimisation problems can be efficiently approximated within any desired relative error. Definition An algorithm A is a polynomial approximation scheme for an optimisation problem if, for any instance x, and any > 0, A computes a feasible solution with relative error less than in a time which is polynomial in |x| (but not necessarily in 1/, e.g., n^1 /) An algorithm A is a fully polynomial approximation scheme if, for any instance x, and any > 0, A computes a feasible solution with relative error less than in a time which is polynomial in both |x| and 1/.
We have seen that some optimisation problems (probably) cannot be approximated within any fixed relative error in polynomial time. On the other hand, some NP -hard optimisation problems can be efficiently approximated within any desired relative error. Definition An algorithm A is a polynomial approximation scheme for an optimisation problem if, for any instance x, and any > 0, A computes a feasible solution with relative error less than in a time which is polynomial in |x| (but not necessarily in 1/, e.g., n^1 /) An algorithm A is a fully polynomial approximation scheme if, for any instance x, and any > 0, A computes a feasible solution with relative error less than in a time which is polynomial in both |x| and 1/.
The algorithm Ah runs in time O(n log n + 2 h) because line 3 requires O( 2 h) time while sorting is O(n log n) and dominates the rest. If we show that the relative error of solution produced
by Ah is at most 1/(h + 1 ) then for any > 0, the algorithm Ah with h = (^1) − 1
Note that OPT ≥ L where L = (^12)
∑n i= 1 xi^. Let^ 〈X^1 ,^ X^2 〉^ be the output of the Ah, and assume that
xj ∈X 1 xj^ ≥^
xj ∈X 2 xj^.
The algorithm Ah runs in time O(n log n + 2 h) because line 3 requires O( 2 h) time while sorting is O(n log n) and dominates the rest. If we show that the relative error of solution produced
by Ah is at most 1/(h + 1 ) then for any > 0, the algorithm Ah with h = (^1) − 1
Note that OPT ≥ L where L = (^12)
∑n i= 1 xi^. Let^ 〈X^1 ,^ X^2 〉^ be the output of the Ah, and assume that
xj ∈X 1 xj^ ≥^
xj ∈X 2 xj^.
Let a′^ be the element last added to X 1. If this happened in line 3 then the partition found is optimal. Otherwise (^) ∑
xj ∈X 1
xj − a′^ ≤
xj ∈X 2
xj
and hence ∑
xj ∈X 1
xj − L ≤ a′/ 2.
Since the numbers are non-increasing, we have xi ≥ a′^ for all i ≤ h + 1, and so
∑n i= 1 xi^ ≥^ (h^ +^1 )a′^ in turn which implies L ≥ (h+^1 )a
′ ∑^2. Now xj ∈X 1 xj^ −^ OPT OPT ≤
xj ∈X 1 xj^ −^ L L ≤^
a′ 2 L ≤^
h + 1
Let a′^ be the element last added to X 1. If this happened in line 3 then the partition found is optimal. Otherwise (^) ∑
xj ∈X 1
xj − a′^ ≤
xj ∈X 2
xj
and hence ∑
xj ∈X 1
xj − L ≤ a′/ 2.
Since the numbers are non-increasing, we have xi ≥ a′^ for all i ≤ h + 1, and so
∑n i= 1 xi^ ≥^ (h^ +^1 )a′^ in turn which implies L ≥ (h+^1 )a
′ ∑^2. Now xj ∈X 1 xj^ −^ OPT OPT ≤
xj ∈X 1 xj^ −^ L L ≤^
a′ 2 L ≤^
h + 1
The above algorithm for MINIMUM PARTITION is not polynomial in 1/. Can we fix it? ... Like KNAPSACK, MINIMUM PARTITION has a dynamic programming solution with time complexity in O(nS), where S = (
∑n i= 1 xi^ )/2, and hence in^ O(n
(^2) xmax ).
This is a pseudo-polynomial-time algorithm. It becomes polynomial when only small (i.e., polynomially bounded in n) numbers are allowed. We can use this to get an approximate solution efficiently by truncating the x values...
Replace each xi with yi = b 10 xit c Solve the new version (exactly), obtaining partition J Let SJ = max{
i∈J xi^ ,^
i 6 ∈J xi^ } Let I be the optimal partition for the original instance We have max{
i∈J
xi ,
i 6 ∈J
xi } < max{
i∈J
( 10 t^ yi + 10 t^ ),
i 6 ∈J
( 10 t^ yi + 10 t^ )}
≤ max{
i∈J
( 10 t^ yi ),
i 6 ∈J
( 10 t^ yi )} + n 10 t
≤ max{
i∈I
( 10 t^ yi ),
i 6 ∈I
( 10 t^ yi )} + n 10 t
≤ max{
i∈I
(xi ),
i 6 ∈I
(xi )} + n 10 t
= OPT(x) + n 10 t