Data Structures & AlgorithmsVery hardICPC regional · geometry

Problem: What is the expected linear-time algorithm for the smallest enclosing circle of n points?

  1. A. Dijkstra's algorithm
  2. B. Floyd-Warshall
  3. C. Welzl's randomised incremental algorithm
  4. D. Prim's algorithm

Correct answer: C. Welzl's randomised incremental algorithm

Random insertion order makes the expected work linear, using the circle-through-points lemma.

More Coding Interview Problems questions

Exams that ask this topic