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 ↗
2muchcoffeeman · · focus · HN ↗
Imagine A ranks X,Y,Z in that order B ranks Y,X,Z in that order C ranks X,Y,Z
X, Y, Z rank A,B,C in that order.
A will propose to X and match. B will propose to Y and match. C will propose to X and get rejected. C will propose to Y and get rejected. C will propose to Z and match.
Y will never get a proposal from A. Z will never get a proposal from A or B.
Edit: I think I fixed it.
jb1991 · · focus · HN ↗
2muchcoffeeman · · focus · HN ↗
Maybe 4 participants is too few to clearly see what happens.
computably · · focus · HN ↗
The minimal example with 4 participants is if each person P has unique preferences and P's 1st choice has P as 2nd choice. So in this case just flip X:
A:XY B:YX X:BA Y:AB
If A,B propose you get AX,BY. If X,Y propose you get BX,AY. Both are stable because the proposers are getting their first choice.
jb1991 · · focus · HN ↗
computably · · focus · HN ↗
This obviously doesn't factor in most of the complexity of romantic relationships: not knowing your own preferences, evolving preferences, incomplete/imperfect information in general, etc. Plus it assumes a global 1:1 matching across two categories, and people can of course be LGBT or choose to be single.
bluefirebrand · · focus · HN ↗
Which may be largely true for many people but it's definitely not a fixed thing!
When I was dating, I initiated with a lot of women, but the woman I wound up marrying messaged me first.
yurish · · focus · HN ↗