



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!




For each of the following two languages, answer whether or not it is decid- able, and prove your answer.
The derivative of a polynomial f (x) =
∑n k=0 akx k (^) is
d dx
f (x) =
∑^ n
k=
kakxk−^1.
For 0 ≤ t ≤ n − 1, the t-th derivative of f (x) is defined as
f (t)(x) =
f (x) if t = 0 d dx f^
(t−1)(x) if 1 ≤ t ≤ n − 1.
Devise an algorithm that given a polynomial f (x) of degree n and a point c, evaluates all the derivatives f (0)(c), f (1)(c),... , f (n−1)(c) at point c in time O(n log n), assuming that in one step one can compute an addition or a multiplication of two complex numbers. (Hint: Reduce the problem to a single convolution of two properly chosen vectors, one involving the coefficients a 0 , a 1 ,... , an of the polynomial f , and the other involving the powers 1, c,... , cn^ of the point c.)
Let X, Y and Z be three disjoint sets. Let E ⊆ X × Y × Z, that is, E is a subset of triples of the form (x, y, z) where x ∈ X, y ∈ Y and z ∈ Z. A subset M ⊆ E of triples is said to be a 3-D matching^1 if for every two distinct triples (x, y, z), (x′, y′, z′) ∈ M , it holds that x 6 = x′, y 6 = y′^ and z 6 = z′. The Maximum 3-D Matching problem is the following optimization problem: Given disjoint sets X, Y and Z, and a subset E ⊆ X × Y × Z of triples, find a maximum 3-D matching, i.e. a 3-D matching with the largest size. Maximum 3-D Matching is a well-known NP-Hard problem.^2 In this problem, you will give a polynomial-time algorithm that 3-approximates Maximum 3-D Matching, using ideas from the approximation algorithm for Vertex-Cover.
(^1) Note that a 2-D matching is just a matching in a bipartite graph. (^2) This should be contrasted with the Max 2-D (i.e. Bipartite) Matching problem that can be solved efficiently.
The following is a well-known theorem in graph theory.
Theorem 1 In every bipartite graph, the size of a maximum matching equals the size of a minimum vertex cover.
Alice and Bob each have a database of N distinct records, each of which is k-bits long, where k < N 2 k. Suppose that they want to test whether the two databases are identical, that is, whether they contain the same records.
and m with m ≥,(m `
≥ ( m). (Hint: How many databases with N distinct k-bit records are there?)
Let f : { 0 , 1 }∗^ → { 0 , 1 } be a Boolean function. Suppose that there is a randomized polynomial-time algorithm A for computing f such that that for each x with f (x) = 1, A(x) = f (x) = 1 always; and for each x with f (x) = 0, Pr[A(x) = 0] ≥ 1 /2, where the probability is taken over the random coin tosses of A. Suppose that at the meantime, there is another randomized polynomial-time algorithm B for computing f such that for each x with f (x) = 0, B(x) = f (x) = 0 always; and for each x with f (x) = 1, Pr[B(x) = 1] ≥ 1 /2. Construct a randomized algorithm C for computing f , using algorithms A and B as subroutines, such that