Nepedia
Back to Discover
Fluent Reader
🔢

Stable matching problem

math Maturity 5-7 Next article →

Imagine two groups of people trying to find the best partners. Each person has a list of who they like most. We want to create a matching where everyone is paired up. A matching is called stable if no two people want to switch. This means you cannot find a pair who both prefer each other over their current partners. If such a pair existed, the matching would be unstable.

Gale-Shapley
Gale-Shapley

In 1962, David Gale and Lloyd Shapley found a way to solve this. They created the Gale-Shapley algorithm to find stable matches. This method works in several rounds of proposals. First, each unengaged person proposes to their favorite choice. The other person says "maybe" or "no." If they say "maybe," they are provisionally engaged. In the next round, people propose to their next choice. A person can "trade up" if a better partner says "maybe."

Gale-Shapley
Gale-Shapley

This math is used for many important jobs in the real world. It helps match graduating medical students to their first hospital jobs. It is also used to assign rabbis to Jewish congregations. Even computer networks use these ideas to work well. They use it to send data to users as fast as possible. This helps reduce the time it takes for pages to load.

Gale-Shapley
Gale-Shapley

There are many different ways to have a stable matching. For example, three men and three women might have different lists. One stable match might give men their first choice. Another stable match might give women their first choice instead. In some cases, everyone might get their second choice. The number of stable matches can change based on the lists.

Gale-Shapley
Gale-Shapley

Math experts have studied these patterns for a long time. Lloyd Shapley and Alvin Roth won a Nobel Prize in 2012. They were honored for their work in market design. They studied how to make stable allocations for many people. There are even harder versions of this problem to solve. One version involves matching doctors to hospitals with different capacities.

Gale-Shapley
Gale-Shapley
331 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:Gale-Shapley.gif
Gale-Shapley.gif
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.