Lably
Skip to content

Stable matching problem

Pairing where no unchosen pair prefers each other over their choice

  • 8 min read
  • 5 chapters

Related on Lably

Through Mathematics, Economics and Computer science

  1. There is an element A of the first matched set which prefers some given element B of the second matched set over the element to which A is already matched, and
  2. B also prefers A over the element to which B is already matched.

In other words, a matching is stable when there does not exist any pair (A, B) where both prefer each other to their current partner under the matching.

The stable marriage problem has been stated as follows:

Given n men and n women, where each person has ranked all members of the opposite sex in order of preference, marry the men and women together such that there are no two people of opposite sex who would both rather have each other than their current partners. When there are no such pairs of people, the set of marriages is deemed stable.

The existence of two classes that need to be paired with each other (heterosexual men and women in this example) distinguishes this problem from the stable roommates problem.

Applications

Algorithms for finding solutions to the stable marriage problem have applications in a variety of real-world situations, perhaps the best known of these being in the assignment of graduating medical students to their first hospital appointments. In 2012, the Nobel Memorial Prize in Economic Sciences was awarded to Lloyd S. Shapley and Alvin E. Roth "for the theory of stable allocations and the practice of market design."

An extension of the Gale-Shapley algorithm has been used in content delivery networks. Optimizing performance from a user's point of view and balancing server load requires a good matching of clusters of users accessing a given type of content (e.g. web pages or video) with clusters of servers well-positioned to serve them the desired content. This can be modeled as user clusters and server clusters having (partial) preferences over each other based on variables such as network topology or contractual agreements with internet service providers. This can then be solved as a stable matching problem. A generalization of the classic Gale-Shapley approach is necessary because there are unequal numbers of clusters on each side, because demand and capacity can vary between clusters, and because the preferences are partial instead of total.

The Gale–Shapley algorithm for stable matching is used to assign rabbis who graduate from Hebrew Union College to Jewish congregations.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Discrete mathematics