ParentFull threadzohebv·This looks like a variation of the stable marriage problem. http://en.wikipedia.org/wiki/Stable_marriage_problemView on HN