随机算法 (Spring 2013)/Problem Set 1

From TCS Wiki
Revision as of 13:28, 11 March 2013 by imported>Etone (Problem 3)
Jump to navigation Jump to search

Problem 1

  • Suppose that you are given a coin for which the probability of HEADS, say p, is unknown. How can you use this coin to generate unbiased (i.e., Pr[HEADS]=Pr[TAILS]=1/2) coin-flips? Give a scheme for which the expected number of flips of the biased coin for extracting one unbiased coin-flip is no more than 1p(1p).

Problem 2

We start with n people, each with 2 hands. None of these hands hold each other.

At each round, we uniformly pick 2 free hands and let them hold together.

  • After how many rounds, there are no free hands left?
  • What is the expected number of cycles made by people holding hands with each other (one person with left hand holding right hand is also counted as a cycle), when there are no free hands left?

(Hint: Consider how to count the number of cycles using indicator random variables.)

Problem 3

For any α1, a cut C in an undirected graph G(V,E)is called an α-min-cut if |C|α|C| where C is a min-cut in G.

Give an analysis to lower bound the probability that a single iteration of Karger's Random Contraction algorithm returns an α-min-cut in a graph G(V,E) of n vertices and m edges.

Problem 4

Freivalds' Theorem
Let A be an n×n matrix such that A0. For a uniformly random r{0,1}n,
Pr[Ar=0]12.
Schwartz-Zippel Theorem
Let fF[x1,x2,,xn] be a multivariate polynomial of degree d over a field F such that f0. Fix any finite set SF, and let r1,r2,rn be chosen uniformly and independently at random from S. Then
Pr[f(r1,r2,,rn)=0]d|S|.

Prove that Schwartz-Zippel Theorem implies Freivalds Theorem.