Stable roommates problem
In mathematics, economics and computer science, particularly in the fields of combinatorial game theory and algorithms, the stable-roommate problem (SRP) is the problem of finding a stable matching for an even-sized set. A matching is a separation of the set into disjoint pairs ("roommates").