Data Structures & AlgorithmsVery hardICPC regional · randomised algorithms

Problem: What is the expected number of rounds of a randomised min-cut (Karger's algorithm) needed for a graph with n vertices to find a min cut with constant probability?

  1. A. Exactly one run
  2. B. 2^n runs
  3. C. n runs
  4. D. About n^2 log n runs

Correct answer: D. About n^2 log n runs

Each run finds a minimum cut with probability at least 2 / (n (n - 1)), so about n^2 log n runs boost the success probability.

More Coding Interview Problems questions

Exams that ask this topic