News for hackers. Stuff that matters.
Re:Singapore Govt Dating App Uses Gale-Shapley Stable Marria... by 2muchcoffeeman on Wednesday September 30, 2026 @07:55PM (#49916005)
Imagine you are the proposer. You will start at the top of your list and work your way down only if rejected. So you are guaranteed to the best you could possibly do.

Imagine A ranks X and Y in that order B ranks Y and X in that order

Both X and Y rank A and B in that order.

A will propose to X and match. B will propose to X and get rejected. B will propose to Y and match. Y will never get a proposal from A.

Re:Singapore Govt Dating App Uses Gale-Shapley Stable Marria... by jb1991 on Wednesday September 30, 2026 @08:01PM (#49916039)
Why will B propose to X first if their first choice is Y?
Re:Singapore Govt Dating App Uses Gale-Shapley Stable Marria... by 2muchcoffeeman on Wednesday September 30, 2026 @08:24PM (#49916210)
You’re absolutely right. I’m on my phone trying to imagine the scenarios in my head and trying to find the simplest possible example.

Maybe 4 participants is too few to clearly see what happens.

Re:Singapore Govt Dating App Uses Gale-Shapley Stable Marria... by computably on Wednesday September 30, 2026 @08:49PM (#49916363)
(A,X),(B,Y) as the proposals is fine for the point being made. The issue is if we reverse which group is the proposer, we still end up with the same matching, because (A,X) strictly prefer each other.

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.

Re:Singapore Govt Dating App Uses Gale-Shapley Stable Marria... by jb1991 on Wednesday September 30, 2026 @09:17PM (#49916517)
I find this algorithm to have a curious definition of the word "stable."
Re:Singapore Govt Dating App Uses Gale-Shapley Stable Marria... by computably on Thursday October 01, 2026 @02:15PM (#49925140)
Not sure if you're referring to the actual definition. It's basically "no two participants from different pairs in the matching would prefer each other to their current matches." It seems an elegant definition to me.

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.

Re:Singapore Govt Dating App Uses Gale-Shapley Stable Marria... by bluefirebrand on Wednesday September 30, 2026 @09:59PM (#49916778)
The big assumption here is that people are either proposers or receivers and never switch roles.

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.

Re:Singapore Govt Dating App Uses Gale-Shapley Stable Marria... by yurish on Thursday October 01, 2026 @03:20AM (#49918729)
This assumption is built-in for Gale-Shapley algorithm.