Vol. I a living index of named laws · est. mmxxvi no ads · no account
The Law Tomeindex of named laws

The Stable Marriage Problem

also known as — Stable matching, The Gale-Shapley problem
"Given two groups ranking each other, you can always pair them so no two would rather abandon their partners for each other."
In plain English

What does The Stable Marriage Problem mean?

The stable marriage problem asks, given two equal-sized groups whose members each rank all members of the other group by preference, to find a stable matching: a one-to-one pairing with no blocking pair, no two people who both prefer each other to their assigned partners. Gale and Shapley proved that such a stable matching always exists, for any preferences, and can be found efficiently by the deferred-acceptance algorithm. The problem is a cornerstone of matching theory and market design, with the surprising guarantee of a stable outcome and a practical algorithm that together underpin real systems from medical residency matching to school choice.

Reliability

Rated Empirical: grounded in studies or measurable evidence. The other 608.

Lineage
1962COINED
How it works

How does The Stable Marriage Problem work?

The Gale-Shapley, or deferred-acceptance, algorithm proceeds in rounds. Members of one side propose, each to the highest-ranked partner who has not yet rejected them; each recipient tentatively holds the best proposal received so far and rejects the rest, and rejected proposers try their next choice. The process always terminates in a stable matching, in time proportional to the square of the group size. The outcome is proposer-optimal and receiver-pessimal: the proposing side gets the best partner it could have in any stable matching, and the receiving side the worst. Proposing truthfully is optimal for the proposers, while recipients can sometimes gain by misrepresenting preferences.

Where you'll see it

What are examples of The Stable Marriage Problem?

Medical residency The National Resident Matching Program uses a deferred-acceptance mechanism to assign graduating doctors to hospital residencies, an application central to Alvin Roth's market-design work.
School choice Cities including New York and Boston adopted deferred-acceptance mechanisms to assign students to public schools, redesigned with the help of matching theory.
Proposer advantage The side that proposes gets the best stable partner each member could have, while the receiving side gets its worst, so who proposes matters.
Types & variants

What are the types of The Stable Marriage Problem?

Hospitals and residents§

A many-to-one generalisation in which each hospital has a quota of positions, the form used in real residency matching.

Stable roommates§

A one-sided version, pairing within a single group, in which a stable matching may fail to exist, unlike the two-sided marriage problem.

Why it matters

Why does The Stable Marriage Problem matter?

The stable marriage problem is a foundational result in economics, computer science, and market design, combining a guarantee that a stable outcome always exists with an efficient algorithm to find it. Its deferred-acceptance mechanism is used to run real markets that cannot rely on prices, matching doctors to hospitals, students to schools, and more, and its ideas extend to organ exchange and beyond. Lloyd Shapley and Alvin Roth received the 2012 Nobel Memorial Prize in Economics for the theory of stable allocations and the practice of market design, a recognition of how deeply the idea reshaped both theory and institutions.

Working with it

How do you apply The Stable Marriage Problem?

  • Seek stability — aim for a matching with no blocking pair, so no two people would both prefer to leave their partners for each other.
  • Run deferred acceptance — have one side propose and the other tentatively hold the best offer so far, iterating to a guaranteed stable matching.
  • Mind who proposes — remember that the proposing side gets its best stable outcome and the receiving side its worst, so the roles are not symmetric.
Where it breaks down

What are the limits of The Stable Marriage Problem?

The classic result assumes strict, complete preferences over the other side and equal-sized groups. Variants complicate it: ties in preferences, incomplete lists where some partners are unacceptable, and the many-to-one hospitals-and-residents generalisation with quotas. The one-sided stable roommates problem, pairing within a single set, may have no stable matching at all, unlike the two-sided marriage problem. And the deferred-acceptance outcome is only one extreme, proposer-optimal, among possibly many stable matchings, and is not egalitarian or utilitarian-optimal.

What it doesn't say

What are common misconceptions about The Stable Marriage Problem?

Stable means there is no blocking pair, not that partners are each other's top choices, nor that the matching maximises total happiness. Proposer-optimality does not mean every proposer gets a first choice; it means each gets the best partner achievable across all stable matchings. Multiple stable matchings can exist, and the algorithm returns one extreme, not all of them. And the always-exists guarantee is specific to the two-sided problem; the one-sided roommates version can lack any stable matching.

Is it real?

Is The Stable Marriage Problem real?

Yes, as far as the evidence goes. The Stable Marriage Problem is rated Empirical here: it rests on studies or measurements rather than on a saying.

Rated from two sources. 609 of the 1,116 entries carry this rating. How the scale works.

Rarely printedin printed books: one of 196 names in its band, of 903 measured
36 of 69entries in software & systems carry the same rating

The best-known laws are the least likely to rest on measurement.

Origin

Where did The Stable Marriage Problem come from?

Introduced by David Gale and Lloyd Shapley in their 1962 paper 'College Admissions and the Stability of Marriage' in the American Mathematical Monthly; Shapley and Alvin Roth won the 2012 Nobel Memorial Prize in Economics for the resulting theory and its applications.

How the name spread

When did people start saying “The Stable Marriage Problem”?

1800coined 19622019
How often “Stable Marriage Problem” appears in printed English, which takes hold around 1976 and peaks around 2006. Coined 1962 and in print by about 1976, unusually close together. This still charts the phrase rather than the idea. Source: Google Books Ngrams.
Known elsewhere as

What is The Stable Marriage Problem called in other languages?

  • Arabicمشكلة الإقران المتكافئ
  • GermanStable Marriage Problem
  • SpanishProblema del matrimonio estable
  • FrenchProblème des mariages stables
  • ItalianProblema del matrimonio stabile
  • Japanese安定結婚問題
  • PortugueseProblema do emparelhamento estável
  • RussianЗадача о марьяже
  • Chinese穩定婚姻問題

9 languages, as recorded on Wikidata. These are names the idea already goes by, not translations we made. The whole index by language.

Sources

Sources & further reading

  1. 1Gale-Shapley algorithm, Wikipedia. — the stable-matching and blocking-pair definitions, the existence guarantee, and proposer-optimality.secondary
  2. 2The Sveriges Riksbank Prize in Economic Sciences 2012, NobelPrize.org. — the award to Roth and Shapley for stable allocations and market design.secondary

Everything above traces to en.wikipedia.org and nobelprize.org: two secondary sources, accounts of the original rather than the original itself, which has not been located for this entry. Nothing is written from memory, and the method is written down. Spot an error or a better source? Suggest a fix.

What we checked

  • 1,116entries in the tomeListed one by one on the browse page.
  • 1,116of them citing a sourceOpen any entry: its sources sit at the foot of the page.
  • 2,489source references in allEach is named, and linked wherever the source is online.