Reputation: 29
I thought i understood stable matching but am really confused with pairs, can anybody help me understand this simply?
Upvotes: 0
Views: 943
Reputation: 8005
Let's quickly remember Gale-Shapley Algorithm:
S
selects from H
.H
will propose to their most preferable option.Accept: If it is the hospital's first offer or the S
is at better ranking than their current S
ranking.
W
) current is Ahmed(A
) and Laura(L
) proposes for W
. L
replaced with À
Reject: S
ranking is worse than their current S
ranking.
W
) current is Ahmed(A
) and Elena(E
) proposes for W
. E
is rejected.So:
Laura(L
) selects Royal Free(R
)
Elena(E
) selects St. Thomas(T
)
Ahmad(A
) selects Whittington(W
)
Simon(S
) selects HighGate(H
) ok.
If Elena(E
) selects Royal Free(R
), this will create an unstable pair. Since E
is accepted. According to the R
, E
has a higher rank compared to the L
.
If Simon(S
) selects Whittington(W
), he will be rejected. Since his rank is the lowest according to the W
.
If Ahmad(A
) selects St. Thomas(T
), he will be rejected. The highest rank of the H
is E
.
If Elena(E
) selects HighGate(H
), she will be rejected. Since her rank is the lowest according to the H
.
For Unstable-pairs
Upvotes: 0