Data Structures & AlgorithmsVery hardICPC regional · MST applications

Problem: Consider a graph where you must find the minimum 'maximum edge' on a path from s to t (a bottleneck path). Which algorithm computes it correctly and efficiently?

  1. A. Kruskal's MST, then the maximum edge on the MST path from s to t
  2. B. Dijkstra with edge weights summed along the path
  3. C. Floyd-Warshall with multiplication of weights
  4. D. Topological sort on the weights

Correct answer: A. Kruskal's MST, then the maximum edge on the MST path from s to t

The minimax path lies on the MST, so the answer is the heaviest edge on the MST path between s and t. Summing weights (Dijkstra) answers a different problem.

More Coding Interview Problems questions

Exams that ask this topic