ParentFull threadnarsil·Yeah, the Stable Marriage problem provides a solution for matching these ordered preferences between two sets of people/elements: https://en.wikipedia.org/wiki/Stable_marriage_problemView on HN