Sounds like a variation on the Stable Roommate problem?

https://en.m.wikipedia.org/wiki/Stable_roommates_problem?wprov=sfla1

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to