stable marriage problem
play

Stable Marriage Problem Introduced by Gale and Shapley in a 1962 - PowerPoint PPT Presentation

Stable Marriage Problem Introduced by Gale and Shapley in a 1962 paper in the American Mathematical Monthly. Stable Marriage Problem Introduced by Gale and Shapley in a 1962 paper in the American Mathematical Monthly. Proved useful in many


  1. Example. Men Women A 1 2 3 1 C A B X B 1 2 3 2 A B C X C 2 1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 X 1 A, B A A , C X 2 C B, C B 3

  2. Example. Men Women X A 1 2 3 1 C A B X B 1 2 3 2 A B C X C 2 1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 X X , C 1 A, B A A X 2 C B, C B 3

  3. Example. Men Women X A 1 2 3 1 C A B X B 1 2 3 2 A B C X C 2 1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 X X , C 1 A, B A A C X 2 C B, C B A,B 3

  4. Example. Men Women X A 1 2 3 1 C A B X X B 1 2 3 2 A B C X C 2 1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 X X , C 1 A, B A A C X X 2 C B, C B A,B 3

  5. Example. Men Women X A 1 2 3 1 C A B X X B 1 2 3 2 A B C X C 2 1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 X X , C 1 A, B A A C C X X 2 C B, C B A,B A 3 B

  6. Example. Men Women X A 1 2 3 1 C A B X X B 1 2 3 2 A B C X C 2 1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 X X , C 1 A, B A A C C X X 2 C B, C B A,B A 3 B

  7. Termination.

  8. Termination. Every non-terminated day a man crossed an item off the list.

  9. Termination. Every non-terminated day a man crossed an item off the list. Total size of lists?

  10. Termination. Every non-terminated day a man crossed an item off the list. Total size of lists? n men, n length list.

  11. Termination. Every non-terminated day a man crossed an item off the list. Total size of lists? n men, n length list. n 2

  12. Termination. Every non-terminated day a man crossed an item off the list. Total size of lists? n men, n length list. n 2 Terminates in at most n 2 + 1 steps!

  13. It gets better every day for women..

  14. It gets better every day for women.. Improvement Lemma:

  15. It gets better every day for women.. Improvement Lemma: If man b proposes to a woman on day k ,

  16. It gets better every day for women.. Improvement Lemma: If man b proposes to a woman on day k , every future day, she has on a string a man b ′ she likes at least as much as b .

  17. It gets better every day for women.. Improvement Lemma: If man b proposes to a woman on day k , every future day, she has on a string a man b ′ she likes at least as much as b . (that is, her options get better)

  18. It gets better every day for women.. Improvement Lemma: If man b proposes to a woman on day k , every future day, she has on a string a man b ′ she likes at least as much as b . (that is, her options get better) Proof:

  19. It gets better every day for women.. Improvement Lemma: If man b proposes to a woman on day k , every future day, she has on a string a man b ′ she likes at least as much as b . (that is, her options get better) Proof: Ind. Hyp.: P ( j ) ( j ≥ k ) — “Woman has as good an option on day j as on day k .”

  20. It gets better every day for women.. Improvement Lemma: If man b proposes to a woman on day k , every future day, she has on a string a man b ′ she likes at least as much as b . (that is, her options get better) Proof: Ind. Hyp.: P ( j ) ( j ≥ k ) — “Woman has as good an option on day j as on day k .” Base Case: P ( k ) : either she has no one/worse on a string (so puts b or better on a string), or she has someone better already.

  21. It gets better every day for women.. Improvement Lemma: If man b proposes to a woman on day k , every future day, she has on a string a man b ′ she likes at least as much as b . (that is, her options get better) Proof: Ind. Hyp.: P ( j ) ( j ≥ k ) — “Woman has as good an option on day j as on day k .” Base Case: P ( k ) : either she has no one/worse on a string (so puts b or better on a string), or she has someone better already. Assume P ( j ) . Let ˆ b be man on string on day j ≥ k . So ˆ b is as good as b .

  22. It gets better every day for women.. Improvement Lemma: If man b proposes to a woman on day k , every future day, she has on a string a man b ′ she likes at least as much as b . (that is, her options get better) Proof: Ind. Hyp.: P ( j ) ( j ≥ k ) — “Woman has as good an option on day j as on day k .” Base Case: P ( k ) : either she has no one/worse on a string (so puts b or better on a string), or she has someone better already. Assume P ( j ) . Let ˆ b be man on string on day j ≥ k . So ˆ b is as good as b . On day j + 1, man ˆ b will come back (and possibly others).

  23. It gets better every day for women.. Improvement Lemma: If man b proposes to a woman on day k , every future day, she has on a string a man b ′ she likes at least as much as b . (that is, her options get better) Proof: Ind. Hyp.: P ( j ) ( j ≥ k ) — “Woman has as good an option on day j as on day k .” Base Case: P ( k ) : either she has no one/worse on a string (so puts b or better on a string), or she has someone better already. Assume P ( j ) . Let ˆ b be man on string on day j ≥ k . So ˆ b is as good as b . On day j + 1, man ˆ b will come back (and possibly others). Woman can choose ˆ b just as well,

  24. It gets better every day for women.. Improvement Lemma: If man b proposes to a woman on day k , every future day, she has on a string a man b ′ she likes at least as much as b . (that is, her options get better) Proof: Ind. Hyp.: P ( j ) ( j ≥ k ) — “Woman has as good an option on day j as on day k .” Base Case: P ( k ) : either she has no one/worse on a string (so puts b or better on a string), or she has someone better already. Assume P ( j ) . Let ˆ b be man on string on day j ≥ k . So ˆ b is as good as b . On day j + 1, man ˆ b will come back (and possibly others). Woman can choose ˆ b just as well, or pick a better option.

  25. It gets better every day for women.. Improvement Lemma: If man b proposes to a woman on day k , every future day, she has on a string a man b ′ she likes at least as much as b . (that is, her options get better) Proof: Ind. Hyp.: P ( j ) ( j ≥ k ) — “Woman has as good an option on day j as on day k .” Base Case: P ( k ) : either she has no one/worse on a string (so puts b or better on a string), or she has someone better already. Assume P ( j ) . Let ˆ b be man on string on day j ≥ k . So ˆ b is as good as b . On day j + 1, man ˆ b will come back (and possibly others). Woman can choose ˆ b just as well, or pick a better option. = ⇒ P ( j + 1 ) .

  26. Pairing when done. Lemma: Every man is matched at end.

  27. Pairing when done. Lemma: Every man is matched at end. Proof:

  28. Pairing when done. Lemma: Every man is matched at end. Proof: If not, a man b must have been rejected n times.

  29. Pairing when done. Lemma: Every man is matched at end. Proof: If not, a man b must have been rejected n times. Every woman has been proposed to by b ,

  30. Pairing when done. Lemma: Every man is matched at end. Proof: If not, a man b must have been rejected n times. Every woman has been proposed to by b , and Improvement lemma

  31. Pairing when done. Lemma: Every man is matched at end. Proof: If not, a man b must have been rejected n times. Every woman has been proposed to by b , and Improvement lemma = ⇒ each woman has a man on a string.

  32. Pairing when done. Lemma: Every man is matched at end. Proof: If not, a man b must have been rejected n times. Every woman has been proposed to by b , and Improvement lemma = ⇒ each woman has a man on a string. and each man on at most one string.

  33. Pairing when done. Lemma: Every man is matched at end. Proof: If not, a man b must have been rejected n times. Every woman has been proposed to by b , and Improvement lemma = ⇒ each woman has a man on a string. and each man on at most one string. n women and n men.

  34. Pairing when done. Lemma: Every man is matched at end. Proof: If not, a man b must have been rejected n times. Every woman has been proposed to by b , and Improvement lemma = ⇒ each woman has a man on a string. and each man on at most one string. n women and n men. Same number of each.

  35. Pairing when done. Lemma: Every man is matched at end. Proof: If not, a man b must have been rejected n times. Every woman has been proposed to by b , and Improvement lemma = ⇒ each woman has a man on a string. and each man on at most one string. n women and n men. Same number of each.

  36. Pairing when done. Lemma: Every man is matched at end. Proof: If not, a man b must have been rejected n times. Every woman has been proposed to by b , and Improvement lemma = ⇒ each woman has a man on a string. and each man on at most one string. n women and n men. Same number of each. = ⇒ b must be on some woman’s string!

  37. Pairing when done. Lemma: Every man is matched at end. Proof: If not, a man b must have been rejected n times. Every woman has been proposed to by b , and Improvement lemma = ⇒ each woman has a man on a string. and each man on at most one string. n women and n men. Same number of each. = ⇒ b must be on some woman’s string! Contradiction.

  38. Pairing is Stable. Lemma: There is no rogue couple for the pairing formed by stable marriage algorithm.

  39. Pairing is Stable. Lemma: There is no rogue couple for the pairing formed by stable marriage algorithm. Proof: Assume there is a rogue couple; ( b , g ∗ )

  40. Pairing is Stable. Lemma: There is no rogue couple for the pairing formed by stable marriage algorithm. Proof: Assume there is a rogue couple; ( b , g ∗ ) g ∗ b ∗ g b

  41. Pairing is Stable. Lemma: There is no rogue couple for the pairing formed by stable marriage algorithm. Proof: Assume there is a rogue couple; ( b , g ∗ ) g ∗ b ∗ g b

  42. Pairing is Stable. Lemma: There is no rogue couple for the pairing formed by stable marriage algorithm. Proof: Assume there is a rogue couple; ( b , g ∗ ) b likes g ∗ more than g . g ∗ b ∗ g ∗ likes b more than b ∗ . g b

  43. Pairing is Stable. Lemma: There is no rogue couple for the pairing formed by stable marriage algorithm. Proof: Assume there is a rogue couple; ( b , g ∗ ) b likes g ∗ more than g . g ∗ b ∗ g ∗ likes b more than b ∗ . g b Man b proposes to g ∗ before proposing to g .

  44. Pairing is Stable. Lemma: There is no rogue couple for the pairing formed by stable marriage algorithm. Proof: Assume there is a rogue couple; ( b , g ∗ ) b likes g ∗ more than g . g ∗ b ∗ g ∗ likes b more than b ∗ . g b Man b proposes to g ∗ before proposing to g . So g ∗ rejected b (since he moved on)

  45. Pairing is Stable. Lemma: There is no rogue couple for the pairing formed by stable marriage algorithm. Proof: Assume there is a rogue couple; ( b , g ∗ ) b likes g ∗ more than g . g ∗ b ∗ g ∗ likes b more than b ∗ . g b Man b proposes to g ∗ before proposing to g . So g ∗ rejected b (since he moved on) By improvement lemma, g ∗ likes b ∗ better than b .

  46. Pairing is Stable. Lemma: There is no rogue couple for the pairing formed by stable marriage algorithm. Proof: Assume there is a rogue couple; ( b , g ∗ ) b likes g ∗ more than g . g ∗ b ∗ g ∗ likes b more than b ∗ . g b Man b proposes to g ∗ before proposing to g . So g ∗ rejected b (since he moved on) By improvement lemma, g ∗ likes b ∗ better than b . Contradiction!

  47. Pairing is Stable. Lemma: There is no rogue couple for the pairing formed by stable marriage algorithm. Proof: Assume there is a rogue couple; ( b , g ∗ ) b likes g ∗ more than g . g ∗ b ∗ g ∗ likes b more than b ∗ . g b Man b proposes to g ∗ before proposing to g . So g ∗ rejected b (since he moved on) By improvement lemma, g ∗ likes b ∗ better than b . Contradiction!

  48. Good for men? women? Is the SMA better for men?

  49. Good for men? women? Is the SMA better for men? for women?

  50. Good for men? women? Is the SMA better for men? for women? Definition: A pairing is x -optimal if x ′ s partner is its best partner in any stable pairing.

  51. Good for men? women? Is the SMA better for men? for women? Definition: A pairing is x -optimal if x ′ s partner is its best partner in any stable pairing. Definition: A pairing is x -pessimal if x ′ s partner is its worst partner in any stable pairing.

  52. Good for men? women? Is the SMA better for men? for women? Definition: A pairing is x -optimal if x ′ s partner is its best partner in any stable pairing. Definition: A pairing is x -pessimal if x ′ s partner is its worst partner in any stable pairing. Definition: A pairing is man optimal if it is x -optimal for all men x .

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend