Exercise

Analyze Karger's Contraction Algorithm

Bound survival of a fixed minimum cut and choose an amplification count.

Assignment sources

Noy 2025 high-quality exam preparation and community solutionsCommunity solutionפתרון מטלה 5 - סיבוכיות.pdfAssignment 5High-quality preparation and community solution — not official

Problem

Prove that one run of Karger's contraction algorithm outputs a minimum cut with probability at least 2/(n(n−1))2/(n(n-1)). How many independent runs suffice for failure probability at most δ\delta?

Hint 1

Condition on a fixed minimum cut of size λ\lambda surviving until ii supervertices remain.

Hint 2

Minimum degree is at least λ\lambda, so the current multigraph has at least iλ/2i\lambda/2 edges.

Full solution

While the fixed cut survives, contraction does not reduce its size λ\lambda, and every supervertex has degree at least λ\lambda; otherwise its incident edges would form a smaller cut. Thus with ii supervertices there are at least iλ/2i\lambda/2 edges. At most λ\lambda are in the fixed cut, so the conditional probability of preserving it in the next contraction is at least 1−2/i1-2/i.

Multiplying conditional probabilities,

Pr⁡[survival]≥∏i=n3i−2i=2n(n−1)=:p.\Pr[\text{survival}] \ge\prod_{i=n}^{3}\frac{i-2}{i} =\frac{2}{n(n-1)}=:p.

If the cut survives to two supervertices, the algorithm outputs it. Independent runs all fail with probability at most (1−p)r≤e−pr(1-p)^r\le e^{-pr}. Therefore it suffices to choose

r≥ln⁡(1/δ)p=n(n−1)2ln⁡1δ.r\ge \frac{\ln(1/\delta)}p =\frac{n(n-1)}2\ln\frac1\delta.

Checkpoint

Parallel edges encode multiplicity and must remain. Only self-loops are deleted after contraction.

Provenance note

Independently phrased standard analysis of Karger's algorithm. Student submissions are not authoritative.

Common mistakes

  • Skipping a direction of correctness or an input-format edge case.
  • Measuring resources against a numeric value rather than encoded input length.
  • Treating an informal intuition as a proof of the stated bound.

Sources and verification

  • Arora-Barak draft, randomized-algorithms discussion
  • Corpus coverage note: No direct merged-summary or 2026 transcript coverage.
  • Catalog mapping: data/exercises.json; statements and solutions are independently written; personal submissions are non-authoritative.
Guided construction

Karger contraction

Step 1 of 6
Karger contraction on a square with one diagonalA protected two-edge minimum cut at B survives contractions of the diagonal A C and then a safe edge to D. Parallel edges are retained and a self-loop is deleted.ABCDprotected cut F at B, λ=2
Fixed cut used only in analysisContracted safe edge