

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Solutions to homework 6 of the 6.856: randomized algorithms course, which covers topics such as maximal independent set algorithms, sampling tricks, and dnf counting. It includes problems on finding maximal independent sets using randomized algorithms, amplification for sampling, estimating the mean of a distribution, and estimating the number of satisfying assignments to a dnf formula.
Typology: Exercises
1 / 2
This page cannot be seen from the preview
Don't miss anything!


(a) Argue that the set of vertices output over all phases is a maximal independent set. (b) Assuming that v has degree d during a phase, what is the probability that vertex v stays marked? (c) Show that this approach yields an RNC algorithm for maximal independent set.
(a) Amplification for sampling. Suppose you have an estimation algorithm that will find a (1 ± ) approximation to the correct value with probability 3/4. Show that you can reduce the failure probability exponentially fast from 1/4 to any desired δ by performing some number k of estimation experiments and taking the median value returned. Give the smallest upper bound you can on k as a function of δ. This shows the log(1/δ) term in μ,δ is natural. (b) Error bound for sampling. Suppose you are able to sample from some probability distribution whose standard deviation is less than its mean. Give an (, δ)-FPRAS for estimating the mean of this distribution (to within 1± with probability 1−δ) with a number of samples polynomial in 1/ and log 1/δ. Hint: Consider the sum of n independent samples from the distribution and determine its mean and variance. Bound the probability that this sum deviates greatly from its mean. Now use the previous part. This shows the 1/^2 term in μ,δ is natural.
(a) Prove that N · E[Xt] is the number of satisfying assignments to the DNF formula (b) Prove that O(mμδ) trials (and computation of the resulting
Xt) suffice to DNF-count to within (1 ± ) with probability 1 − δ. Hint: use the Chernoff bound generalization from MR 4.7. (c) Once a has been chosen in the previous subproblem, give an algorithm for quickly estimating ca to within (1 ± ). Argue that this is sufficient to give us the (1 ± ) approximation for DNF-counting. (d) Using the new scheme from the previous subproblem, analyze the expected num- ber of clauses you need to evaluate in the course of the algorithm. Assuming all clauses are the same size, what is the actual running time of the scheme in terms of basic operations? (e) (Optional) Justify the assumption that all clauses are the same size to within a logarithmic factor, thus extending the runtime analysis to arbitrary formulae.