Docsity

Randomized Algorithms - Homework Assignment 3 Fall 2003 | CMSC 858, Assignments of Computer Science

Toggle sidebar
bg1
CMSC 858T: Randomized Algorithms
Spring 2003
Ungraded Homework Assignment #3, handed out April 4, 2003
The suggested deadline by which to finish this assignment is April 17th; since this assignment
is ungraded, you don’t need to turn it in – just compare your solutions with the solutions I
give.
Notation: The set {1,2, . . . , k}is denoted [k].
0. Read Handouts 5 and 6.
1. Recall that we showed in class that for any graph with medges, there is a cut with at
least m/2 edges; derandomize this using the method of conditional probabilities. Look at your
derandomization carefully, and see if the deterministic algorithm obtained is actually quite
intuitive.
2. Recall Problem 4 of HW 1, where we construct (n, k)-universal sets. Suppose you are given
aconstant k; give a deterministic polynomial-time algorithm to construct (n, k)-universal sets
with the same number of rows (of the matrix) as guaranteed by the probabilistic argument.
3. For parts (a) and (b) of this problem, let X1, X2, . . . , X`be independent r.v.s, each taking
values in {0,1}. We will let ~
X.
= (X1, X2, . . . , X`), and all events and r.v.s considered here
are completely determined by the value of ~
X. Suppose Eis some event. A random variable
g=g(~
X) is said to be a well-behaved estimator for E(w.r.t. ~
X) iff it satisfies the following
properties (P1), (P2), (P3) and (P4), ∀t≤`, ∀T={i1, i2, . . . , it} ⊆ [`],∀b1, b2, . . . , bt∈ {0,1};
for convenience, let Bdenote “Vt
s=1(Xis=bs)”.
(P1) E[g|B] is efficiently computable;
(P2) Pr[E|B]≤E[g|B];
(P3) if Eis increasing, then ∀it+1 ∈([`]−T),E[g|(Xit+1 = 0) ∧ B]≤E[g|(Xit+1 = 1) ∧ B]; and
(P4) if Eis decreasing, then ∀it+1 ∈([`]−T),E[g|(Xit+1 = 1) ∧ B]≤E[g|(Xit+1 = 0) ∧ B].
Taking gto be the indicator variable for Ewill satisfy (P2), (P3) and (P4), but not necessarily
(P1). So the idea is that we want to approximate quantities such as Pr[E|B] “well” (in the sense
of (P2), (P3) and (P4)) by an efficiently computable value (E[g|B]).
For any r.v. Xand event A, let E’[X] and E’[X|A] respectively denote min{E[X],1}and
min{E[X|A],1}. Suppose Pr[Xi= 1] = pifor each i. Let E1,E2, . . . , Ekall be increasing events
with respective well-behaved estimators h1, h2, . . . , hk.
(a). Define, for all i∈[k],
ui=E[hi|
t
^
j=1
(Xj=bj)]); u0
i= min{ui,1};
vi=E[hi|((Xt+1 = 0) ∧
t
^
j=1
(Xj=bj))]; v0
i= min{vi,1};
wi=E[hi|((Xt+1 = 1) ∧
t
^
j=1
(Xj=bj))]; w0
i= min{wi,1}.
1
pf2

Partial preview of the text

Download Randomized Algorithms - Homework Assignment 3 Fall 2003 | CMSC 858 and more Assignments Computer Science in PDF only on Docsity!

CMSC 858T: Randomized Algorithms

Spring 2003

Ungraded Homework Assignment #3, handed out April 4, 2003

The suggested deadline by which to finish this assignment is April 17th; since this assignment is ungraded, you don’t need to turn it in – just compare your solutions with the solutions I give.

Notation: The set { 1 , 2 ,... , k} is denoted [k].

  1. Read Handouts 5 and 6.
  2. Recall that we showed in class that for any graph with m edges, there is a cut with at least m/2 edges; derandomize this using the method of conditional probabilities. Look at your derandomization carefully, and see if the deterministic algorithm obtained is actually quite intuitive.
  3. Recall Problem 4 of HW 1, where we construct (n, k)-universal sets. Suppose you are given a constant k; give a deterministic polynomial-time algorithm to construct (n, k)-universal sets with the same number of rows (of the matrix) as guaranteed by the probabilistic argument.
  4. For parts (a) and (b) of this problem, let X 1 , X 2 ,... , Xbe independent r.v.s, each taking values in { 0 , 1 }. We will let X~ = (. X 1 , X 2 ,... , X), and all events and r.v.s considered here are completely determined by the value of X~. Suppose E is some event. A random variable g = g( X~) is said to be a well-behaved estimator for E (w.r.t. X~) iff it satisfies the following properties (P1), (P2), (P3) and (P4), ∀t ≤ , ∀T = {i 1 , i 2 ,... , it} ⊆ [], ∀b 1 , b 2 ,... , bt ∈ { 0 , 1 }; for convenience, let B denote “

∧t s=1(Xis =^ bs)”.

(P1) E[g|B] is efficiently computable;

(P2) Pr[E|B] ≤ E[g|B];

(P3) if E is increasing, then ∀it+1 ∈ ([`] − T ), E[g|(Xit+1 = 0) ∧ B] ≤ E[g|(Xit+1 = 1) ∧ B]; and

(P4) if E is decreasing, then ∀it+1 ∈ ([`] − T ), E[g|(Xit+1 = 1) ∧ B] ≤ E[g|(Xit+1 = 0) ∧ B].

Taking g to be the indicator variable for E will satisfy (P2), (P3) and (P4), but not necessarily (P1). So the idea is that we want to approximate quantities such as Pr[E|B] “well” (in the sense of (P2), (P3) and (P4)) by an efficiently computable value (E[g|B]). For any r.v. X and event A, let E’[X] and E’[X|A] respectively denote min{E[X], 1 } and min{E[X|A], 1 }. Suppose Pr[Xi = 1] = pi for each i. Let E 1 , E 2 ,... , Ek all be increasing events with respective well-behaved estimators h 1 , h 2 ,... , hk.

(a). Define, for all i ∈ [k],

ui = E[hi|

∧^ t

j=

(Xj = bj )]); u′ i = min{ui, 1 };

vi = E[hi|((Xt+1 = 0) ∧

∧^ t

j=

(Xj = bj ))]; v i′ = min{vi, 1 };

wi = E[hi|((Xt+1 = 1) ∧

∧^ t

j=

(Xj = bj ))]; w′ i = min{wi, 1 }.

Show that for all i ∈ [k], u′ i ≥ (1 − pt+1) · v i′ + pt+1 · w′ i.

(b). Prove that for any non-negative integer t ≤ ` − 1 and any ~b = (b 1 , b 2 ,... , bt) ∈ { 0 , 1 }t,

∏^ k

i=

(1 − E’[hi|

∧^ t

j=

(Xj = bj )]) ≤ (1 − pt+1) ·

∏^ k

i=

(1 − E’[hi|((Xt+1 = 0) ∧

∧^ t

j=

(Xj = bj ))]) +

pt+1 ·

∏^ k

i=

(1 − E’[hi|((Xt+1 = 1) ∧

∧^ t

j=

(Xj = bj ))]).

One approach is to use the result of part (a) along with an induction on k.

(c). Use part (b) to derandomize the approach using FKG that we developed for the edge- disjoint paths problem.

4(a). Suppose X =

∑t i=1 Xi, where the random variables^ Xi^ lie in [0,^ 1] and are^ pairwise independent. Let the mean of X be μ. Is it true that for any a > 0, Pr[|X − μ| ≥ a] ≤ μ/a^2? (b). Suppose the Xi are in fact d-wise independent for some d ≥ 4. Suggest a possibly better approach to bound Pr[|X − μ| ≥ a] than the above.

  1. Suppose we have a BPP algorithm A for a language L and an input instance x for which the following holds: A uses R perfectly random bits on input x, and is correct with probability at least 2/3. (That is, if x ∈ L, A will say “Yes” with probability at least 2/3; if x 6 ∈ L, then A will say “No” with probability at least 2/3. Also, R is bounded by some fixed polynomial of |x|.) Suppose we want to boost this “2/3” to 1 − 1 /R; recall that the standard way to do this boosting is to run A on x an odd number of times and then taking the majority outcome. Show how to do this boosting in polynomial time, using O(R log R) random bits. Next, use problem 4 to show how to do this boosting in polynomial time, using only O(R) random bits.
  2. Recall the two-party problem of deciding Equality, in the communication complexity setting: Alice and Bob have n-bit strings x and y respectively, and want to determine if x = y or not. Consider the following protocol, where t is a predetermined parameter. Alice chooses a random integer r from the range [t], and sends the pair (r, x mod r) to Bob; Bob replies “Yes” to Alice if x mod r = y mod r, and replies “No” otherwise. Note that the protocol communicates O(log t) bits. Suppose you desire the error probability to be at most p; then, how large a t is sufficient?
  3. We are given parameters n, k ≤ n, and  ∈ (0, 1). Design a randomized hashing strategy whose domain is [n] and such that the hash function can be specified using only O(log k + log(1/) + log log n) random bits, such that the following holds: for any given subset S of [n] such that |S| = k, the hash values of all the elements of S are different with probability at least 1 − . (We are not claiming that this simultaneously holds for all S; instead, for every given S, the claim is true.)