Deferred Acceptance, Step by Step

The Gale–Shapley (1962) algorithm for one-to-one matching with strict preferences. Each round has two phases: unmatched proposers make offers, then each receiver keeps the best offer it holds and rejects the rest. Edit the preferences below to build your own market.

Proposing side

Market

proposal tentatively held rejected final match

Preference lists (most preferred first)

xproposal this round xheld xalready rejected
Edit the market

One agent per line: name: first, second, third, …. Both sides need the same number of agents (2–8), and each list must rank everyone on the other side exactly once.

What to notice

Use ← → to step and space to play. Built for teaching by Peter Shum.