随机算法 (Spring 2013)/Problem Set 2: Difference between revisions
imported>Etone |
imported>Etone |
||
Line 15: | Line 15: | ||
(Due to Karger and Motwani) | (Due to Karger and Motwani) | ||
* Let <math>S,T</math> be two disjoint subsets of a universe <math>U</math> such that <math>|S|=|T|=n</math>. Suppose we select a random set <math>R\subseteq U</math> by independently sampling each element of <math>U</math> with probability <math>p</math>. We say that the random sample <math>R</math> is ''good'' if the following two conditions hold: <math>R\cap S=\emptyset</math> and <math>R\cap T\neq\emptyset</math>. SHow that for <math>p=1/n</math>, the probability that <math>R</math> is good is larger than some positive constant. | * Let <math>S,T</math> be two disjoint subsets of a universe <math>U</math> such that <math>|S|=|T|=n</math>. Suppose we select a random set <math>R\subseteq U</math> by independently sampling each element of <math>U</math> with probability <math>p</math>. We say that the random sample <math>R</math> is ''good'' if the following two conditions hold: <math>R\cap S=\emptyset</math> and <math>R\cap T\neq\emptyset</math>. SHow that for <math>p=1/n</math>, the probability that <math>R</math> is good is larger than some positive constant. | ||
* Suppose now that the random set <math>R</math> is chosen by sampling the elements of <math>U</math> with only '''''pairwise''''' independence. Show that for a suitable choice of the value of <math>p</math>, the probability that <math>R</math> is good is larger than some positive constant. | * Suppose now that the random set <math>R</math> is chosen by sampling the elements of <math>U</math> with only '''''pairwise''''' independence. Show that for a suitable choice of the value of <math>p</math>, the probability that <math>R</math> is good is larger than some positive constant. (Hint: Use the second moment.) | ||
(Hint: Use the second moment.) | |||
== Problem 3== | == Problem 3== |
Revision as of 01:23, 9 April 2013
- 注意写明自己的姓名与学号。
- 必须包含完整的解题过程,中英文不限。
Problem 1
(Due to Karp)
Consider a bin containing
(Spoiler alert: You may want to stop here for a moment and start thinking about the solution before proceeding to read the following part.)
Consider the following strategy. Suppose that
Problem 2
(Due to Karger and Motwani)
- Let
be two disjoint subsets of a universe such that . Suppose we select a random set by independently sampling each element of with probability . We say that the random sample is good if the following two conditions hold: and . SHow that for , the probability that is good is larger than some positive constant. - Suppose now that the random set
is chosen by sampling the elements of with only pairwise independence. Show that for a suitable choice of the value of , the probability that is good is larger than some positive constant. (Hint: Use the second moment.)
Problem 3
- Generalize the LazySelect algorithm for the
-selection problem: Given as input an array of distinct numbers and an integer , find the th smallest number in the array. - Use the Chernoff bounds instead of Chebyshev's inequality in the analysis of the LazySelect Algorithm and try to use as few random samples as possible.
Problem 4
(Generalization of Chernoff bound to the sum of geometric random variables.)
Let