Singapore govt dating app uses Gale-Shapley stable marriage algorithm
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
Singapore govt dating app uses Gale-Shapley stable marriage algorithm
Unofficial Hacker News client; not affiliated with Y Combinator.
qihqi · · focus · HN ↗
jb1991 · · focus · HN ↗
layman51 · · focus · HN ↗
An applicant (the receiver) will end up with a "worst" match in the sense that if you look at all "stable" pairings (there can be multiple configurations), the applicant is going to have the least favorable one among the different pairings.
There's an important concept of a "blocking pair", and the Gale-Shapley algorithm is trying to eliminate all blocking pairs, and you could say that pairings are stable when no blocking pairs exist. A blocking pair is a job applicant and employer who aren't matched together, but both prefer each other over their current match.
Suppose that after the algorithm is done with its work, Alice doesn't end up with a job offer from her top choice, Google. This must mean that Google never offered her a job because Alice was just too far down on their list, and Google made a deal with someone else they like better than Alice.
jb1991 · · focus · HN ↗
I don’t understand why this would always be true. In your example, Google may indeed like Alice, so they both get their top choice.
layman51 · · focus · HN ↗
When Alice and Google are not paired up, then they will always form a “blocking pair” in any matching where they aren’t together so that means any matching that doesn’t have Alice and Google paired is not stable.
I think the confusion is that Alice only has one possible stable employer and thus her worst one happens to be her best one.
If Alice’s top choice wasn’t Google, but some other company, then there might be multiple employers she could be matched with to form a stable pairing.
This algorithm is definitely weird too though because it’s possible for some candidates to be paired with a company they don’t really like, but it’s considered a stable situation because the other companies don’t want them more than their current employees.
I guess in real life, you could try improving yourself and then the matching becomes unstable again if preferences change.
jb1991 · · focus · HN ↗
Thus extrapolating to a dating app, it’s possible for someone in the matched pair to not really like the other person. Sounds like a rousingly success.