Data Structures & AlgorithmsVery hardICPC regional · matching

Problem: Which algorithm computes a minimum-weight perfect matching in general (non-bipartite) graphs?

  1. A. Hungarian algorithm
  2. B. Edmonds' blossom algorithm
  3. C. Kruskal's algorithm
  4. D. Dijkstra's algorithm

Correct answer: B. Edmonds' blossom algorithm

The Hungarian method works for bipartite graphs only; blossom contraction handles odd cycles in general graphs.

More Coding Interview Problems questions

Exams that ask this topic