Questions: Randomized Algorithms

4 questions to test your understanding

Score: 0 / 4
Question 1 Multiple Choice

Randomized quicksort picks a pivot uniformly at random. Its expected number of comparisons on any input of size n is O(n log n). What probability technique most directly yields this result?

AUnion bound over all possible pivot sequences
BLinearity of expectation — define indicator variables for each pair of elements being compared, then sum their expectations
CMarkov's inequality applied to the total comparison count
DChernoff bounds on the depth of the recursion tree
Question 2 True / False

A randomized algorithm always produces the correct answer but its running time is a random variable. This describes a Las Vegas algorithm.

TTrue
FFalse
Question 3 True / False

Every Las Vegas algorithm can be converted to a Monte Carlo algorithm with the same expected resource usage.

TTrue
FFalse
Question 4 Short Answer

Karger's randomized min-cut algorithm contracts a randomly chosen edge at each step until two vertices remain. Why does repeating the algorithm O(n^2 log n) times and taking the minimum cut found yield the true minimum cut with high probability?

Think about your answer, then reveal below.