Fundamentals 7 min read

Can Game Theory Explain Dating? Exploring the Stable Matching Algorithm

This article uses the classic stable matching (Gale‑Shapley) algorithm to model romantic courtship, illustrating how men‑proposing and women‑proposing versions lead to different stable pairings and highlighting the advantage of the proactive side in achieving preferred matches.

21CTO
21CTO
21CTO
Can Game Theory Explain Dating? Exploring the Stable Matching Algorithm

Stable Matching and Romance

After a game‑theory class the author asks: what kinds of games exist in dating, and how should each side decide to achieve a mutually optimal outcome?

Stable Matching (Gale‑Shapley)

The classic stable matching problem, introduced by David Gale and Lloyd Shapley (Nobel 2012), finds a stable one‑to‑one pairing between two equally sized sets based on preference lists.

Assumed World 999

Consider a parallel world with n men and n women. Each man ranks all women, each woman ranks all men. The following pursuit rules are applied:

Only men propose; a woman can accept (“be my boyfriend”) or reject (“go away”).

A man may propose only while single; each woman can have at most one boyfriend.

A man proposes to the highest‑ranked woman on his list who has not yet rejected him; if a woman already has a boyfriend she keeps the one she prefers more and drops the other.

Men continue proposing until they are matched.

When everyone has a partner, the couples “marry”.

Examples

One man, one woman: No ranking needed; they simply pair.

Two men (A, B) and two women (A, B): Various preference configurations are examined, showing how the proposing side secures its top‑ranked choice while the other side may end up with a less‑preferred partner.

When men propose, the resulting stable matching gives each man his highest possible partner, but some women receive their least‑preferred match. Reversing the roles (women propose) yields the opposite outcome.

Generalization to N

With N men and N women the same reasoning holds: the proposing side is guaranteed to obtain the best possible partner according to its preferences, while the receiving side may be forced into a less‑preferred match.

Conclusion

The analysis shows that in this algorithmic “courtship” the active side has a systematic advantage. Therefore, the practical advice derived is: when a woman likes a man, she should take the initiative.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

algorithmGame TheorydatingGale-Shapleystable matching
21CTO
Written by

21CTO

21CTO (21CTO.com) offers developers community, training, and services, making it your go‑to learning and service platform.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.