


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!



CS265/CME309, Fall 2018. Instructor: Gregory Valiant
Electronic submission via Gradescope, due 11:59pm Thursday 12/13.
You must work alone. You may consult the textbook/course notes, and other online resources (wikipedia, etc.). You may not discuss any aspect of this test with other students (whether or not they are enrolled in the class). You may NOT troll the internet looking for problem-specific solutions, or post course-related questions on online forums, with the exception of our class Piazza forum which you may use to ask clarification-type questions.
Please answer the questions thoroughly yet succinctly. Points may be deducted for needlessly convoluted solutions. As always, if there is a hole in your proof, fewer points will be deducted if you acknowledge that you are aware of this hole, versus trying to hide it.
(a) (3 points) Suppose you wish to bound the probability that a real-valued random vari- able exceeds its expectation by a significant amount. Describe, in general terms, when you would apply Markov’s inequality, versus when you would expect a better bound by applying Chebyshev’s inequality. Feel free to clarify your response with an illustrative example. (b) (3 points) Describe the high-level steps in showing that some object (e.g. a graph with a certain property) exists, via the probabilistic method. (c) (3 points) Suppose I give you a randomized algorithm A for solving Problem X. [Re- call that a randomized algorithm is one that, during its execution, is allowed to request uniformly random bits.] Suppose I tell you that the algorithm will only ask for at most 10 random bits during any execution (ie. the algorithm will only ask for 10 coin flips), and that for any input, I can (upper) bound the probability that the algorithm will fail by 10 −^10. Describe how to turn algorithm A into a deterministic algorithm, and explain why your deterministic algorithm will always be correct.^1 (d) (4 points) Suppose we toss n balls independently into n bins. Describe two different approaches for proving that the number of bins with more than three balls will be tightly concentrated about its expectation (here “tightly concentrated” means that the probability that it is more than c standard deviations from its expectation will be inverse exponential in c). For each of the approaches, just describe the high-level strategy/outline, no need to give any calculations. (^1) The setup of this problem might sound bizarre, but this turns out to arise in some settings where you are trying to
derandomize a randomized algorithm. For example, suppose you have an algorithm that uses 100 random bits, and fails with small probability. Now, suppose you can show that, in fact, your analysis of the failure probability does not require that the bits actually be independent. For example, suppose you can show that the failure probability analysis still goes through even if you just pick 10 random bits, and feed that same sequence in 10 times to make a string of 100 bits. Well, now the randomized algorithm only actually requires 10 random bits, and the bound on its failure probability remains unchanged. Now you could apply your solution to the problem to fully de-randomize it.
(e) (3 points) Suppose your model of how people recognize faces is the following: upon seeing a face, you map the face to a d-dimensional vector of measurements (perhaps corresponding to the distance between the eyes, length sum of the length of the nose and width of the lips, the ratio of eye-brow angle to forehead protrusion, etc.), and then essentially look at how similar that vector is to each of the vectors corresponding to all the people whose faces you recognize. How large of a value of d would be reasonable if people are able to recognize n = 10, 000 faces? What value of d would seem like overkill (assuming that humans do face-recognition in a not-awful manner). Justify your answer with a brief explanation, ideally referencing some specific result from this class. (f) (3 points) Prove that any irreducible finite Markov chain that has at least one self-loop (that occurs with nonzero probability) must be aperiodic. (g) (3 points) Describe an irreducible aperiodic Markov chain whose states correspond to the numbers 1 through 10, and whose stationary distribution assigns probability proportional to i for state i (i.e. the stationary distribution puts twice as much probability on state 2 than on state 1, etc.). [There are many correct answers, though try to describe a simple one : )] No proof necessary, just describe a Markov chain with the desired properties. (h) You go to Vegas, and your friend is trying to convince you that there is a fancy scheme for deciding how much to bet on each round of roulette, and a rule for deciding when to stop playing, with the property that with probability 1 you will eventually stop playing (namely, the probability that you will have finished after t rounds tends to 1 as t tends to infinity), and your expected winnings when you stop playing is positive. [For this problem, assume that for each round of roulette, no matter what you bet on or how much you bet, your expected earnings are at most zero.] i. (1 point) Describe such a strategy. ii. (3 points) Explain why it is actually impossible for you to faithfully execute any/every strategy that has the properties described in the problem statement.
(a) (6 points) Prove that it is possible to assign each person an email address on their list (without assigning any two people to the same address). [Hint: If you use the LLL, be sure to clearly define a distribution, define the bad events, and define a valid dependency graph. To this end, there are two natural choices of distribution—either assigning each email address to one of the ≤ 3 people who list it, or having each person choose an email uniformly at random from their lists. One of these two distributions will end up working out more easily than the other.] (b) (2 points) Describe an algorithm for finding a valid assignment of emails, which runs in time polynomial in the number of people. [For full credit, just describe the algorithm, no need to prove its correctness or a bound on the runtime.]