Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Game Theory›Gale-Shapley Algorithm
Machine learningGame-theoretic

Gale-Shapley Algorithm

Gale-Shapley Stable Marriage Algorithm · Also known as: Stable Marriage Problem, Deferred Acceptance, Two-Sided Matching

The Gale-Shapley algorithm solves the stable marriage problem: how to match two groups (e.g., medical residents to hospitals, students to schools) such that no pair prefers each other to their assigned partners. Introduced by David Gale and Lloyd Shapley in 1962, the algorithm guarantees a stable matching in polynomial time through a deferred acceptance process where one side proposes sequentially and the other side responds, revising choices as better options arrive.

ScholarGate
  1. Machine learning
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Gale-Shapley Algorithm
Bayesian Nash EquilibriumPrincipal-Agent ModelTop Trading CyclesVCG Mechanism

When to use it

Apply the Gale-Shapley algorithm when matching two-sided markets where stability is crucial: medical resident placement, student-to-school assignment, kidney exchange, labor market matching, or online dating markets. Use when there is a risk of matching instability (blocking pairs) that could unravel a matching after assignment. The algorithm is ideal when one side can move first with a strategic advantage.

Strengths & limitations

Strengths
  • Guaranteed stability: no blocking pairs exist in the final matching
  • Polynomial time: O(n^2) complexity, making it efficient for large populations
  • Simple implementation: easy to execute in practice with transparent preference collection
  • Strategic incentives: the proposing side has a strategic advantage, preferring early proposals to later ones
  • Universally applicable: works for any preference profiles without assuming convexity or transitivity
Limitations
  • Not Pareto optimal: the matching may not maximize total welfare; blocked pairs may exist that could all benefit from trading partners
  • Strategic vulnerability: the proposing side can gain by misrepresenting preferences, while the responding side is truthful
  • Asymmetry: outcomes depend heavily on which side proposes first
  • Does not handle constraints: difficult to incorporate complex preferences (e.g., couples, regional preferences) without algorithmic modification

Frequently asked

Why is stability important in matching?

Without stability, matched pairs might later discover they prefer each other to their assigned partners, creating incentive to break the matching. Stable matchings prevent such blocking pairs, ensuring the matching persists without renegotiation.

Does the Gale-Shapley algorithm always produce the same matching?

No. Different preference lists or proposal orders can yield different stable matchings. However, there is always a 'man-optimal' stable matching (best for all proposers) and a 'woman-optimal' stable matching (best for all responders).

How does Gale-Shapley handle preferences over groups (e.g., couples)?

The standard algorithm does not directly handle couples or other constraints. Extensions like the couples algorithm exist but are more complex and may not guarantee stability for all preference profiles.

Sources

  1. Gale, D., & Shapley, L. S. (1962). College admissions and the stability of marriage. The American Mathematical Monthly, 69(1), 9-15. DOI: 10.1080/00029890.1962.11989827 ↗
  2. Roth, A. E. (1984). The economics of matching: Stability and incentives. Mathematics of Operations Research, 7(4), 617-628. DOI: 10.1287/moor.7.4.617 ↗

How to cite this page

ScholarGate. (2026, June 3). Gale-Shapley Stable Marriage Algorithm. ScholarGate. https://scholargate.app/en/game-theory/gale-shapley-algorithm

Related methods

Bayesian Nash EquilibriumPrincipal-Agent ModelTop Trading CyclesVCG Mechanism

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Bayesian Nash EquilibriumGame Theory↔ compare
  • Principal-Agent ModelGame Theory↔ compare
  • Top Trading CyclesGame Theory↔ compare
  • VCG MechanismGame Theory↔ compare
Compare side by side →

Referenced by

Top Trading Cycles

Similar methods

Top Trading CyclesNash EquilibriumFord-Fulkerson AlgorithmVCG MechanismEvolutionary Game TheoryShapley ValueJob Shop SchedulingDeterministic Genetic Algorithm

Related reference concepts

Market DesignNetwork Flow AlgorithmsGame Theory for AgentsBargaining Theory • Matching TheoryGreedy AlgorithmsMechanism Design

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Gale-Shapley Algorithm (Gale-Shapley Stable Marriage Algorithm). Retrieved 2026-07-21 from https://scholargate.app/en/game-theory/gale-shapley-algorithm · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
David Gale, Lloyd Shapley
Subfamily
Game-theoretic
Year
1962
Type
algorithm
Related methods
Bayesian Nash EquilibriumPrincipal-Agent ModelTop Trading CyclesVCG Mechanism
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account