Data Structures & AlgorithmsHardICPC regional · matching theory

Problem: What does the Kuhn-Munkres (Hungarian) algorithm compute on a bipartite graph with weights?

  1. A. The number of spanning trees
  2. B. The shortest path between all pairs
  3. C. The chromatic number
  4. D. A maximum-weight perfect matching when one exists

Correct answer: D. A maximum-weight perfect matching when one exists

The Hungarian method finds an optimal perfect matching for the assignment problem.

More Coding Interview Problems questions

Exams that ask this topic