Free tools & games for everyone
Free · No sign-up · No accounts
Pair two groups by their preference lists with the Gale-Shapley algorithm: round-by-round steps, stable results for either side, and a checker for blocking pairs.
| Tab | Move between tabs, boxes and buttons |
|---|---|
| Enter in a one-line box | Match again |
David Gale and Lloyd Shapley described deferred acceptance in 1962. In each round every unmatched proposer asks the next person on their list; each person asked keeps the best offer they have had so far and turns down the others, who try again next round. It ends after at most n² offers. Versions of it match junior doctors to hospitals and pupils to schools in many countries; Shapley and Alvin Roth shared the 2012 economics Nobel Prize for this work. This page needs complete lists and equal groups; real schemes add capacities and ties. Everything runs in your browser.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product