Docsity

5 Problems for Computability and Algorithms - Assignment 4 | CS 6505, Assignments of Computer Science

Toggle sidebar
bg1
CS 6505: Algorithms, Computability and
Complexity
Problem Set 4
Due December 6, 2007
Sove 3 of the 5 Problems.
Problem 1: 2-Approximating MAX-SAT
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.
Problem 2: On Approximating MAX-CLIQUE
1. Give a simple, polynomial-time algorithm that n
log n-approximates MAX-CLIQUE.
2. In class a reduction from CLIQUE to VERTEX-COVER was given. Also
given was a polynomial-time algorithm that 2-approximates MIN-VERTEX-COVER.
Do these results imply that there is a polynomial-time algorithm that
α-approximates MAX-CLIQUE for some constant α > 1? Justify your
answer.
3. For a graph G= (V, E ), its k-th power Gk= (Vk, Ek) is the graph
where the set of vertices Vkconsists of all ordered k-tuples of vertices in
V, and two distinct vertices (v1,. . . , vk) and (w1, . . . , wk) are adjacent
if and only if for each 1 ≤i≤k,{vi,wi} ∈ Eor vi=wi.1Prove that
the maximum clique size in Gkequals the k-th power of the maximum
clique size in G.
4. Based on Part (3), show that if there is a polynomial-time algorithm
that α-approximates MAX-CLIQUE for some constant α > 1, there
for every ε > 0, there is a polynomial-time algorithm that (1 + ε)-
approximates MAX-CLIQUE.
1Note that (v1,...,vk)6= (w1,...,wk) guarantees that for some i,vi6=wi.
1
pf3
pf4

Partial preview of the text

Download 5 Problems for Computability and Algorithms - Assignment 4 | CS 6505 and more Assignments Computer Science in PDF only on Docsity!

CS 6505: Algorithms, Computability and

Complexity

Problem Set 4

Due December 6, 2007

Sove 3 of the 5 Problems.

Problem 1: 2-Approximating MAX-SAT

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.

Problem 2: On Approximating MAX-CLIQUE

  1. Give a simple, polynomial-time algorithm that (^) logn n -approximates MAX-CLIQUE.
  2. In class a reduction from CLIQUE to VERTEX-COVER was given. Also given was a polynomial-time algorithm that 2-approximates MIN-VERTEX-COVER. Do these results imply that there is a polynomial-time algorithm that α-approximates MAX-CLIQUE for some constant α > 1? Justify your answer.
  3. For a graph G = (V, E), its k-th power Gk^ = (V k, Ek) is the graph where the set of vertices V k^ consists of all ordered k-tuples of vertices in V , and two distinct vertices (v 1 ,... , vk) and (w 1 ,... , wk) are adjacent if and only if for each 1 ≤ i ≤ k, {vi, wi} ∈ E or vi = wi.^1 Prove that the maximum clique size in Gk^ equals the k-th power of the maximum clique size in G.
  4. Based on Part (3), show that if there is a polynomial-time algorithm that α-approximates MAX-CLIQUE for some constant α > 1, there for every ε > 0, there is a polynomial-time algorithm that (1 + ε)- approximates MAX-CLIQUE.

(^1) Note that (v 1 ,... , vk ) 6 = (w 1 ,... , wk ) guarantees that for some i, vi 6 = wi.

Problem 3: Generating a Random Number in an Interval

  1. Recall that the standard model for randomized algorithm postulates that an algorithm has access to a sequence of independent and unbi- ased random bits. Give a randomized algorithm, in this model, that given an arbitrary positive integer N , outputs a uniformly random integer in the interval [1, N ], in time that is polynomial in log N.
  2. Show how to efficiently simulate, for any rational number 0 ≤ p ≤ 1, a (biased) coin that assumes value 1 with probability p, and 0 with probability 1 − p.

Problem 4: Fingerprints by Random Irreducible Polynomials

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:

  • Division with Reminader: For every f (x), g(x) ∈ F[x], there exist unique q(x), r(x) ∈ F[x] with 0 ≤ deg r(x) < deg g(x) such that f (x) = q(x)g(x) + r(x). The remainder r(x) is denoted r(x) = f (x) mod g(x). The quotient q(x) and remainder r(x) can be determined by long division.
  • Unique Factorization: Every monic^2 polynomial f (x) ∈ F[x] with deg f > 1 can be decomposed into a product of monic irreducible polynomials in F, and moreover the decomposition is unique up to the order of the irreducible factors.

If the field F is finite, then the following hold:

  • There is a simple deterministic polynomial time algorithm that tests whether a polynomial over F is irreducible. (^2) A polynomial is monic if its leading coefficient is 1.

Analyze the error probability and communication complexity of the protocol. Show how to choose the degree d so that Alice and Bob exchange O(log N ) bits and the probability of error is at most N −c^ for any given constant c.

Problem 5: Protocols for Hamming Distance

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.

  1. Give a simple deterministic protocol for Alice and Bob to determine the exact value of ∆(x, y) by sending N + log N bits, and prove that every deterministic protocol for this problem requires N bits of com- munication.
  2. Give a communication-efficient randomized protocol for Alice and Bob to approximate ∆(x, y) within an arbitrarily small ε > 0. Analyze the error probability and communication complexity of your protocol.

You may find the Chernoff Bound helpful:

Chernoff Bound: Let X 1 ,... , Xn be identically and independently dis- tributed Bernoulli (i.e. taking values in { 0 , 1 }) random variables. Let μ = Pr[Xi = 1] for each i. Then for every 0 < ε < μ(1 − μ),

Pr

[∣∣

∑n i=1 Xi n

− μ

∣∣ > ε

]

< 2 e−^2 ε

(^2) n .