Data Structures & AlgorithmsVery hardICPC regional · matching theory

Problem: Which problem does the Gale-Shapley algorithm solve, and what is its typical outcome?

  1. A. Shortest paths with negative edges
  2. B. Minimum cut
  3. C. Longest common subsequence
  4. D. Stable marriage: the men-proposing version gives a stable matching optimal for the proposers

Correct answer: D. Stable marriage: the men-proposing version gives a stable matching optimal for the proposers

Men-proposing deferred acceptance yields the stable matching that is best for the men among all stable matchings.

More Coding Interview Problems questions

Exams that ask this topic