stablemarriage
Stable marriage refers to a class of problems in matching theory where two disjoint sets of agents, traditionally men and women, must be paired so that no two agents would both prefer each other to their assigned partners. Each participant has a strict preference ranking over members of the opposite set. A matching pairs each participant with at most one partner, and it is stable if there is no blocking pair—a man and a woman who would both prefer to be with each other rather than with their current partners.
Existence and construction: For any finite instance with strict preferences, a stable matching exists. The Gale–Shapley
Extensions and variants: The model extends to many-to-one matchings (hospital-residents, college admissions) and to cases with
Applications and impact: The framework underpins real-world systems such as medical residency placement, school choice programs,