Randomized Min-Cut and Concentration Bounds
Learning Objectives
- Distinguish Las Vegas algorithms (always correct, random running time) from Monte Carlo algorithms (bounded running time, small probability of error), and explain how independent repetition reduces error.
- Describe Karger's contraction algorithm for global minimum cut and prove that one run succeeds with probability at least .
- Compute how many repetitions make the failure probability at most , and derive the corollary that a graph has at most minimum cuts.
- State the Markov, Chebyshev, and Chernoff bounds and compare how tightly each bounds the same tail probability.
Context & Motivation
algorithms-software/algorithms computed minimum - cuts through maximum flow: fix a source and a sink, push flow, and read off the cut. The global minimum cut problem asks for the smallest set of edges whose removal disconnects the graph at all, with no designated and . Solving it with flows means running max-flow for many pairs, which is expensive and intricate.
In 1993 David Karger, then a PhD student at Stanford, gave an algorithm that fits in a few lines and uses no flow at all: pick a random edge, merge its endpoints, repeat until two vertices remain, and output the edges between them. It is usually wrong. But it is right often enough, with a probability that can be proven, that repeating it a polynomial number of times makes it right with near certainty. The analysis is a model for how randomized algorithms are reasoned about in MIT's 6.856 (Randomized Algorithms) and 6.046, and it relies on the tail bounds that also underpin hashing, sketching, and the complexity class BPP later in this track.
Core Theory
Two kinds of randomized algorithms
A Las Vegas algorithm always returns a correct answer; only its running time is random (randomized quicksort is the classic example). A Monte Carlo algorithm runs in bounded time but may return a wrong answer with some probability. If a Monte Carlo algorithm fails with probability at most and runs are independent, then runs all fail with probability at most , which decays exponentially. When answers can be compared (for minimum cut, keep the smallest cut found), repetition turns a weak success probability into a strong one.
Karger's contraction algorithm
Work on a multigraph (parallel edges allowed). Contracting edge merges and into one vertex, keeps all other edges (some become parallel), and deletes self-loops. The algorithm:
- While more than two vertices remain, pick an edge uniformly at random and contract it.
- Output the edges between the two remaining super-vertices.
Each super-vertex is a set of original vertices, so the output is a cut of the original graph. It is a minimum cut exactly when no edge of some fixed minimum cut was ever contracted.
The success probability
Let be a minimum cut with edges. Every vertex has degree at least (otherwise its edges alone would be a smaller cut), so the graph has at least edges. The probability that the first contraction picks an edge of is at most . After contractions there are vertices, the same argument applies to the contracted graph (contraction never decreases the min-cut size), and so:
The product telescopes because each numerator cancels the denominator two factors later. This is small, about , but only polynomially small.
Amplification
Run the algorithm times and keep the smallest cut. Using :
Each run takes time with a simple implementation, so the total is . Karger and Stein (1996) observed that early contractions are safe and late ones risky, and recursed: contract to about vertices twice independently and recurse on each, giving .
A free corollary: every minimum cut survives with probability at least , and these are disjoint events (the algorithm outputs one cut), so their probabilities sum to at most 1. Hence a graph has at most distinct minimum cuts, a purely combinatorial fact proved by probability.
Concentration bounds
Analyzing randomized algorithms constantly requires bounding the probability that a random quantity is far from its mean. Three tools, from weakest assumptions to strongest conclusions:
- Markov: for , . Needs only the mean.
- Chebyshev: . Needs the variance; decays quadratically.
- Chernoff: if is a sum of independent indicator variables with mean , then for , , and symmetrically . Needs independence; decays exponentially.
Chernoff is what justifies statements like "with high probability every bucket of a hash table has items" or "majority vote over 50 independent runs is wrong with probability below ".
Worked Examples
Example 1: how many runs on a small graph
Problem: A graph has vertices. What is the guaranteed single-run success probability of Karger's algorithm, and how many runs guarantee failure probability at most 1%?
Trace: Single run: . We need . Taking logarithms, . So 205 independent runs suffice. Using the cruder gives , nearly the same. Each run is cheap, so even a guarantee of (about 933 runs) is practical for small graphs.
Example 2: three bounds on one tail
Problem: Flip a fair coin 100 times. Bound with Markov, Chebyshev, and Chernoff.
Trace: = number of heads, , . Markov: . Chebyshev: deviation 25, so . Chernoff with : . The true probability is about . Each additional assumption buys a much better bound, and Chernoff's exponential decay is the one that scales: at 1,000 flips and 750 heads, Chernoff gives while Chebyshev still only gives .
Common Misconceptions & Pitfalls
- "A randomized algorithm is unreliable." Its failure probability is a parameter you choose. Failure below is far less likely than a hardware fault during the computation, and it costs only a logarithmic number of extra repetitions.
- "Contraction picks a random vertex pair." It picks a uniformly random edge, which is what makes vertices joined by many parallel edges (likely on the same side of the minimum cut) merge first. Picking random vertex pairs breaks the analysis.
- "Chernoff applies to any sum." It requires independence (or a specific weaker form of it). Sums of dependent variables, such as indicators that items collide with each other, need other tools, often Chebyshev with a pairwise-independence argument.
Summary
Monte Carlo algorithms trade certainty for simplicity, and independent repetition drives their error down exponentially. Karger's algorithm contracts random edges until two vertices remain; because every vertex has degree at least the min-cut size, each step avoids a fixed minimum cut with probability at least , and the telescoping product gives success at least . About runs make failure at most , and the analysis also proves a graph has at most minimum cuts. Markov, Chebyshev, and Chernoff bound tail probabilities with progressively stronger assumptions and conclusions. The next concept uses randomness differently: hash functions chosen so that similar items collide on purpose.