Gale–Shapley algorithm: Difference between revisions

Content deleted Content added
mNo edit summary
Line 4:
==Background==
{{main|stable matching problem}}
The stable matching problem, in its most basic form, takes as input equal numbers of two types of participants ({{mvar|n}} men and {{mvar|n}} women, or {{mvar|n}} medical students and {{mvar|n}} internships, for example), and an ordering for each participant giving their preference for whowhom to be matched to among the participants of the other type. A matching is ''not'' stable if:
 
{{Ordered list|list-style-type=numeric