





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!






In the MAX-SAT problem, one is give a Boolean formula Φ in the conjunctive normal form (CNF), and wants to find an assignment that satisfies the maximum number of clauses in Φ. Give a simple, linear-time deterministic algorithm that 2-approximates MAX-SAT.
Solution: Let Φ be any Boolean formula in the conjunctive normal form. Let A be an arbitrary assignment of { 0 , 1 } to the variables of Φ, and let A be the negation of A, that is, for each variable x, A(x) = ¬A(x). Note that A satisfies at least all the clauses that are not satisfied by A. Therefore, at least one of A or A must satisfy at least 1/2 of the clauses of Φ, which is clearly at least 1/2 of the maximum number of clauses that are simultane- ously satisfiable. This yields the following linear-time algorithm that that 2-approximates MAX-SAT:
Algorithm: On input Φ,
K/ℓ vertices in C. This yields the following algorithm that (^) logn 2 n - approximates MAX-CLIQUE.
Algorithm: On input G = (V, E),
(a) Arbitrarily partition V into ℓ = (^) logn 2 n disjoint subsets V 1 ,... , Vℓ of log 2 n vertices each. (b) For each i, by exhaustive search, find a maximum clique Ci of the subgraph Gi induced by Vi. (c) Output the largest Ci found in the previous phase.
By the above analysis, this algorithm outputs a clique whose size is at least log n^2 ntimes the maximum clique size, thus (^) logn 2 n -approximates MAX-CLIQUE. It remains to show that the algorithm takes polynomial- time. Clearly Phase 1 and Phase 3 of the algorithm take linear time. For each i, since |Vi| = log 2 n, Vi has 2log^2 n^ = n subsets. Thus exhaus- tive search is feasible and Phase 2 takes polynomial time.
(^1) Note that (v 1 ,... , vk) 6 = (w 1 ,... , wk) guarantees that for some i, vi 6 = wi.
(a) Find the integer k such that 2k−^1 < N ≤ 2 k. (b) Choose a random integer m ∈ [1, 2 k^ ] by flipping k independent fair coins. (c) If m ≤ N , then output m and halt; else goto 1 and repeat.
For each ℓ ∈ { 1 ,... , N },
Pr [ℓ is output] = Pr [m = ℓ | m ∈ [1, N ]]
=
Pr [m = ℓ] Pr [m ∈ [1, N ]]
=
1 / 2 k N/ 2 k^
Thus each integer in the interval [1, N ] is chosen with equal probability. To analyze the running time, note that
Pr [m ∈ [1, N ]] =
2 k^
Thus the expected number of iterations is at most 2. Since each iter- ation takes O(k) = O(log N ) steps, the expected running time of the algorithm is O(log N ).
Let F be a field. A non-constant polynomial f (x) ∈ F[x] is said to be irreducible if f (x) does not have a non-constant factor g(x) ∈ F[x] with 0 < deg g < deg f. The roles played by irreducible polynomials among polynomials are similar to those played by prime numbers among integers. The following are some basic yet fundamental facts about polynomials and irreducible polynomials over a field F:
If the field F is finite, then the following hold:
qd^ − qd/^2 log 2 d d
Answer the following questions using the above facts.
(a) Choose a random monic degree-d polynomial f (x) = xd+ad− 1 xd−^1 + · · · + a 1 x + a 0 ∈ Fq[x] by choosing the coefficients a 0 , a 1 ,... , ad− 1 randomly from Fq. (b) Test if f is irreducible. If so, then output f and halt; else goto 1 and repeat. (^2) A polynomial is monic if its leading coefficient is 1. (^3) Note that this is not true in general when F is infinite. (^4) The exact number of irreducible polynomials can be expressed using the so called Mobius Inversion Formula. The formula however does not give the number in a closed form.
for each i and deg C ≤ N −1, we have that rd < N , and thus r < N/d. Therefore, A(x) − B(x) has at most N/d distinct irreducible factors of degree d, while there are ∼ 2 d/d polynomials of degree d over F 2. Therefore,
Pr [The Protocol is Incorrect] = Pr [f (x) | (A(x) − B(x))]
< N/d 2 d/d
2 d^
Hence, setting d = (c + 1) log 2 N , the probability of error is at most N/N c+1^ = N −c, and the number of bits exchanged between Alice and Bob is 2d + 1 = 2(c + 1) log 2 N + 1 = O(log 2 N ).
For strings x, y ∈ { 0 , 1 }N^ , the relative Hamming distance ∆(x, y) between x and y is the fraction of positions at which x and y differ. That is,
∆(x, y) = | {i : 1 ≤ i ≤ N and xi 6 = yi} | N
Suppose that two parties Alice and Bob hold strings x, y ∈ { 0 , 1 }N^ respec- tively.
same answer as they do when their inputs are x and x respectively. This implies that the protocol must be incorrect, since ∆(x, x) = 0 and ∆(x, y) 6 = 0. Therefore, N bits of communication are necessary for every deterministic protocol that computes ∆(x, y) exactly.