Docsity

Randomized Algorithms Homework Assignment 2 for CMSC 858T, Spring 2003 - Prof. Aravind Sri, Assignments of Computer Science

Toggle sidebar
bg1
CMSC 858T: Randomized Algorithms
Spring 2003
Ungraded Homework Assignment #2, handed out March 4, 2003
Please note: We will have ungraded homework assignments such as this one, as well as ones
that will be graded. I will post the solutions for all the assignments some time after they
are handed out. You will get the most out of this course if you do your best to solve all the
homework problems (whether they are graded or not) by yourself, or in collaboration with your
classmates. The suggested deadline by which to finish this assignment is March 11th; since this
assignment is ungraded, you don’t need to turn it in – just compare your solutions with the
solutions I give.
0. Read Handout 3.
1. Verify the bounds on F+(µ, δ) that we showed in class, for the cases δ≤1 and δ > 1.
2. Fix a language L∈BP P , and the corresponding randomized algorithm A; recall that
whatever the input xis, Awill be correct with probability at least 2/3, in deciding whether
x∈Lor not. Now suppose we want to boost this probability of 2/3 to at least 1 −2−r, for
some r≥2. To do so, we run Aon the input string xindependently some odd number tof
times, and take the majority outcome of A’s outputs on these truns. Give an upper bound on
tthat will suffice to achieve the “1 −2−r” guarantee.
3. Consider the same basic setting as in class, for the Chernoff bound: X=Pn
i=1 Xi, where:
•all the Xilie in [0,1] and are independent of each other;
•E[Xi] = µifor each i, and E[X] = µ=Piµi.
Consider some t > 0. As with the Chernoff bound,
E[etX ] =
n
Y
i=1
E[etXi]≤
n
Y
i=1
(1 + µi(et−1)).
Now, instead of upper-bounding the last product by
n
Y
i=1
eµi(et
−1)
as we did in class, upper-bound the product using the AM-GM inequality. Proceeding in this
vein, what upper-tail bound do you get (i.e., given δ > 0, what upper bound do you get on
Pr[X≥µ(1 + δ)]?).
4. Give a high-probability upper bound on the maximum load on any bin in the “mballs, n
bins” problem, for the entire range of m=m(n). (The functions ∆+and ∆−from Handout 3
could help you here.)
5. Suppose a random variable Xtakes values in the interval [a,b], for some given real numbers
aand b. Suppose we want to estimate the mean of Xto within an additive error of by the
sampling procedure discussed in class. How many samples are sufficient?
1

Partial preview of the text

Download Randomized Algorithms Homework Assignment 2 for CMSC 858T, Spring 2003 - Prof. Aravind Sri and more Assignments Computer Science in PDF only on Docsity!

CMSC 858T: Randomized Algorithms

Spring 2003

Ungraded Homework Assignment #2, handed out March 4, 2003

Please note: We will have ungraded homework assignments such as this one, as well as ones that will be graded. I will post the solutions for all the assignments some time after they are handed out. You will get the most out of this course if you do your best to solve all the homework problems (whether they are graded or not) by yourself, or in collaboration with your classmates. The suggested deadline by which to finish this assignment is March 11th; since this assignment is ungraded, you don’t need to turn it in – just compare your solutions with the solutions I give.

  1. Read Handout 3.
  2. Verify the bounds on F +(μ, δ) that we showed in class, for the cases δ ≤ 1 and δ > 1.
  3. Fix a language L ∈ BP P , and the corresponding randomized algorithm A; recall that whatever the input x is, A will be correct with probability at least 2/3, in deciding whether x ∈ L or not. Now suppose we want to boost this probability of 2/3 to at least 1 − 2 −r, for some r ≥ 2. To do so, we run A on the input string x independently some odd number t of times, and take the majority outcome of A’s outputs on these t runs. Give an upper bound on t that will suffice to achieve the “1 − 2 −r” guarantee.
  4. Consider the same basic setting as in class, for the Chernoff bound: X =

∑n i=1 Xi, where:

  • all the Xi lie in [0, 1] and are independent of each other;
  • E[Xi] = μi for each i, and E[X] = μ =

∑ i μi.

Consider some t > 0. As with the Chernoff bound,

E[etX^ ] =

∏^ n

i=

E[etXi^ ] ≤

∏^ n

i=

(1 + μi(et^ − 1)).

Now, instead of upper-bounding the last product by

∏^ n

i=

eμi(e

t−1)

as we did in class, upper-bound the product using the AM-GM inequality. Proceeding in this vein, what upper-tail bound do you get (i.e., given δ > 0, what upper bound do you get on Pr[X ≥ μ(1 + δ)]?).

  1. Give a high-probability upper bound on the maximum load on any bin in the “m balls, n bins” problem, for the entire range of m = m(n). (The functions ∆+^ and ∆−^ from Handout 3 could help you here.)
  2. Suppose a random variable X takes values in the interval [a, b], for some given real numbers a and b. Suppose we want to estimate the mean of X to within an additive error of  by the sampling procedure discussed in class. How many samples are sufficient?