Stable Marriage Problem Stable Marriage Problem Small town with n - - PowerPoint PPT Presentation

stable marriage problem stable marriage problem
SMART_READER_LITE
LIVE PREVIEW

Stable Marriage Problem Stable Marriage Problem Small town with n - - PowerPoint PPT Presentation

Stable Marriage Problem Stable Marriage Problem Small town with n boys and n girls. Stable Marriage Problem Small town with n boys and n girls. Each girl has a ranked preference list of boys. Stable Marriage Problem Small town


slide-1
SLIDE 1

Stable Marriage Problem

slide-2
SLIDE 2

Stable Marriage Problem

◮ Small town with n boys and n girls.

slide-3
SLIDE 3

Stable Marriage Problem

◮ Small town with n boys and n girls. ◮ Each girl has a ranked preference list of boys.

slide-4
SLIDE 4

Stable Marriage Problem

◮ Small town with n boys and n girls. ◮ Each girl has a ranked preference list of boys. ◮ Each boy has a ranked preference list of girls.

slide-5
SLIDE 5

Stable Marriage Problem

◮ Small town with n boys and n girls. ◮ Each girl has a ranked preference list of boys. ◮ Each boy has a ranked preference list of girls.

How should they be matched?

slide-6
SLIDE 6

Count the ways..

◮ Maximize total satisfaction.

slide-7
SLIDE 7

Count the ways..

◮ Maximize total satisfaction. ◮ Maximize number of first choices.

slide-8
SLIDE 8

Count the ways..

◮ Maximize total satisfaction. ◮ Maximize number of first choices. ◮ Maximize worse off.

slide-9
SLIDE 9

Count the ways..

◮ Maximize total satisfaction. ◮ Maximize number of first choices. ◮ Maximize worse off. ◮ Minimize difference between preference ranks.

slide-10
SLIDE 10

The best laid plans..

Consider the couples..

◮ Jennifer and Brad ◮ Angelina and Billy-Bob

slide-11
SLIDE 11

The best laid plans..

Consider the couples..

◮ Jennifer and Brad ◮ Angelina and Billy-Bob

Brad prefers Angelina to Jennifer.

slide-12
SLIDE 12

The best laid plans..

Consider the couples..

◮ Jennifer and Brad ◮ Angelina and Billy-Bob

Brad prefers Angelina to Jennifer. Angelina prefers Brad to BillyBob.

slide-13
SLIDE 13

The best laid plans..

Consider the couples..

◮ Jennifer and Brad ◮ Angelina and Billy-Bob

Brad prefers Angelina to Jennifer. Angelina prefers Brad to BillyBob. Uh..oh.

slide-14
SLIDE 14

So..

Produce a pairing where there is no running off!

slide-15
SLIDE 15

So..

Produce a pairing where there is no running off! Definition: A pairing is disjoint set of n boy-girl pairs.

slide-16
SLIDE 16

So..

Produce a pairing where there is no running off! Definition: A pairing is disjoint set of n boy-girl pairs. Example: A pairing S = {(Brad,Jen);(BillyBob,Angelina)}.

slide-17
SLIDE 17

So..

Produce a pairing where there is no running off! Definition: A pairing is disjoint set of n boy-girl pairs. Example: A pairing S = {(Brad,Jen);(BillyBob,Angelina)}. Definition: A rogue couple b,g∗ for a pairing S: b and g∗ prefer each other to their partners in S

slide-18
SLIDE 18

So..

Produce a pairing where there is no running off! Definition: A pairing is disjoint set of n boy-girl pairs. Example: A pairing S = {(Brad,Jen);(BillyBob,Angelina)}. Definition: A rogue couple b,g∗ for a pairing S: b and g∗ prefer each other to their partners in S Example: Brad and Angelina are a rogue couple in S.

slide-19
SLIDE 19

A stable pairing??

Given a set of preferences.

slide-20
SLIDE 20

A stable pairing??

Given a set of preferences. Is there a stable pairing? How does one find it?

slide-21
SLIDE 21

A stable pairing??

Given a set of preferences. Is there a stable pairing? How does one find it? Consider a single gender version: stable roommates.

A B C D B C A D C A B D D A B C

A B C D

slide-22
SLIDE 22

A stable pairing??

Given a set of preferences. Is there a stable pairing? How does one find it? Consider a single gender version: stable roommates.

A B C D B C A D C A B D D A B C

A B C D

slide-23
SLIDE 23

A stable pairing??

Given a set of preferences. Is there a stable pairing? How does one find it? Consider a single gender version: stable roommates.

A B C D B C A D C A B D D A B C

A B C D

slide-24
SLIDE 24

A stable pairing??

Given a set of preferences. Is there a stable pairing? How does one find it? Consider a single gender version: stable roommates.

A B C D B C A D C A B D D A B C

A B C D

slide-25
SLIDE 25

A stable pairing??

Given a set of preferences. Is there a stable pairing? How does one find it? Consider a single gender version: stable roommates.

A B C D B C A D C A B D D A B C

A B C D

slide-26
SLIDE 26

A stable pairing??

Given a set of preferences. Is there a stable pairing? How does one find it? Consider a single gender version: stable roommates.

A B C D B C A D C A B D D A B C

A B C D

slide-27
SLIDE 27

A stable pairing??

Given a set of preferences. Is there a stable pairing? How does one find it? Consider a single gender version: stable roommates.

A B C D B C A D C A B D D A B C

A B C D

slide-28
SLIDE 28

A stable pairing??

Given a set of preferences. Is there a stable pairing? How does one find it? Consider a single gender version: stable roommates.

A B C D B C A D C A B D D A B C

A B C D

slide-29
SLIDE 29

A stable pairing??

Given a set of preferences. Is there a stable pairing? How does one find it? Consider a single gender version: stable roommates.

A B C D B C A D C A B D D A B C

A B C D

slide-30
SLIDE 30

The Traditional Marriage Algorithm.

slide-31
SLIDE 31

The Traditional Marriage Algorithm.

Each Day:

slide-32
SLIDE 32

The Traditional Marriage Algorithm.

Each Day:

  • 1. Each boy proposes to his favorite woman on his list.
slide-33
SLIDE 33

The Traditional Marriage Algorithm.

Each Day:

  • 1. Each boy proposes to his favorite woman on his list.
  • 2. Each girl rejects all but her favorite proposer

(whom she puts on a string.)

slide-34
SLIDE 34

The Traditional Marriage Algorithm.

Each Day:

  • 1. Each boy proposes to his favorite woman on his list.
  • 2. Each girl rejects all but her favorite proposer

(whom she puts on a string.)

  • 3. Rejected boy crosses rejecting girl off his list.
slide-35
SLIDE 35

The Traditional Marriage Algorithm.

Each Day:

  • 1. Each boy proposes to his favorite woman on his list.
  • 2. Each girl rejects all but her favorite proposer

(whom she puts on a string.)

  • 3. Rejected boy crosses rejecting girl off his list.

Stop when each woman gets exactly one proposal.

slide-36
SLIDE 36

The Traditional Marriage Algorithm.

Each Day:

  • 1. Each boy proposes to his favorite woman on his list.
  • 2. Each girl rejects all but her favorite proposer

(whom she puts on a string.)

  • 3. Rejected boy crosses rejecting girl off his list.

Stop when each woman gets exactly one proposal. Does this terminate?

slide-37
SLIDE 37

The Traditional Marriage Algorithm.

Each Day:

  • 1. Each boy proposes to his favorite woman on his list.
  • 2. Each girl rejects all but her favorite proposer

(whom she puts on a string.)

  • 3. Rejected boy crosses rejecting girl off his list.

Stop when each woman gets exactly one proposal. Does this terminate? ...produce a pairing?

slide-38
SLIDE 38

The Traditional Marriage Algorithm.

Each Day:

  • 1. Each boy proposes to his favorite woman on his list.
  • 2. Each girl rejects all but her favorite proposer

(whom she puts on a string.)

  • 3. Rejected boy crosses rejecting girl off his list.

Stop when each woman gets exactly one proposal. Does this terminate? ...produce a pairing? ....a stable pairing?

slide-39
SLIDE 39

The Traditional Marriage Algorithm.

Each Day:

  • 1. Each boy proposes to his favorite woman on his list.
  • 2. Each girl rejects all but her favorite proposer

(whom she puts on a string.)

  • 3. Rejected boy crosses rejecting girl off his list.

Stop when each woman gets exactly one proposal. Does this terminate? ...produce a pairing? ....a stable pairing? Do boys or girls do “better”?

slide-40
SLIDE 40

The Traditional Marriage Algorithm.

Each Day:

  • 1. Each boy proposes to his favorite woman on his list.
  • 2. Each girl rejects all but her favorite proposer

(whom she puts on a string.)

  • 3. Rejected boy crosses rejecting girl off his list.

Stop when each woman gets exactly one proposal. Does this terminate? ...produce a pairing? ....a stable pairing? Do boys or girls do “better”?

slide-41
SLIDE 41

Example.

Boys Girls A 1 2 3 1 C A B B 1 2 3 2 A B C C 2 1 3 3 A C B

slide-42
SLIDE 42

Example.

Boys Girls A 1 2 3 1 C A B B 1 2 3 2 A B C C 2 1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 1 2 3

slide-43
SLIDE 43

Example.

Boys Girls A 1 2 3 1 C A B B 1 2 3 2 A B C C 2 1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 1 A, B 2 C 3

slide-44
SLIDE 44

Example.

Boys Girls A 1 2 3 1 C A B B 1

X

2 3 2 A B C C 2 1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 1 A, B

X

2 C 3

slide-45
SLIDE 45

Example.

Boys Girls A 1 2 3 1 C A B B 1

X

2 3 2 A B C C 2 1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 1 A, B

X

A 2 C B, C 3

slide-46
SLIDE 46

Example.

Boys Girls A 1 2 3 1 C A B B 1

X

2 3 2 A B C C 2

X

1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 1 A, B

X

A 2 C B, C

X

3

slide-47
SLIDE 47

Example.

Boys Girls A 1 2 3 1 C A B B 1

X

2 3 2 A B C C 2

X

1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 1 A, B

X

A A , C 2 C B, C

X

B 3

slide-48
SLIDE 48

Example.

Boys Girls A 1

X

2 3 1 C A B B 1

X

2 3 2 A B C C 2

X

1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 1 A, B

X

A A

X , C

2 C B, C

X

B 3

slide-49
SLIDE 49

Example.

Boys Girls A 1

X

2 3 1 C A B B 1

X

2 3 2 A B C C 2

X

1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 1 A, B

X

A A

X , C

C 2 C B, C

X

B A,B 3

slide-50
SLIDE 50

Example.

Boys Girls A 1

X

2 3 1 C A B B 1

X

2

X

3 2 A B C C 2

X

1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 1 A, B

X

A A

X , C

C 2 C B, C

X

B A,B

X

3

slide-51
SLIDE 51

Example.

Boys Girls A 1

X

2 3 1 C A B B 1

X

2

X

3 2 A B C C 2

X

1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 1 A, B

X

A A

X , C

C C 2 C B, C

X

B A,B

X

A 3 B

slide-52
SLIDE 52

Example.

Boys Girls A 1

X

2 3 1 C A B B 1

X

2

X

3 2 A B C C 2

X

1 3 3 A C B Day 1 Day 2 Day 3 Day 4 Day 5 1 A, B

X

A A

X , C

C C 2 C B, C

X

B A,B

X

A 3 B

slide-53
SLIDE 53

Termination.

slide-54
SLIDE 54

Termination.

Every non-terminated day a boy crossed an item off the list.

slide-55
SLIDE 55

Termination.

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

slide-56
SLIDE 56

Termination.

Every non-terminated day a boy crossed an item off the list. Total size of lists? n boys, n length list.

slide-57
SLIDE 57

Termination.

Every non-terminated day a boy crossed an item off the list. Total size of lists? n boys, n length list. n2

slide-58
SLIDE 58

Termination.

Every non-terminated day a boy crossed an item off the list. Total size of lists? n boys, n length list. n2 Terminates in at most n2 +1 steps!

slide-59
SLIDE 59

It gets better every day for girls..

slide-60
SLIDE 60

It gets better every day for girls..

Improvement Lemma:

slide-61
SLIDE 61

It gets better every day for girls..

Improvement Lemma: On any day, if girl has a boy b on a string,

slide-62
SLIDE 62

It gets better every day for girls..

Improvement Lemma: On any day, if girl has a boy b on a string, any future boy, b′, on string is at least as good as b.

slide-63
SLIDE 63

It gets better every day for girls..

Improvement Lemma: On any day, if girl has a boy b on a string, any future boy, b′, on string is at least as good as b. Proof:

slide-64
SLIDE 64

It gets better every day for girls..

Improvement Lemma: On any day, if girl has a boy b on a string, any future boy, b′, on string is at least as good as b. Proof: P(k)- - “every day before k girl had better boy.”

slide-65
SLIDE 65

It gets better every day for girls..

Improvement Lemma: On any day, if girl has a boy b on a string, any future boy, b′, on string is at least as good as b. Proof: P(k)- - “every day before k girl had better boy.” P(0)– always true as there is no day before.

slide-66
SLIDE 66

It gets better every day for girls..

Improvement Lemma: On any day, if girl has a boy b on a string, any future boy, b′, on string is at least as good as b. Proof: P(k)- - “every day before k girl had better boy.” P(0)– always true as there is no day before. Assume P(k). Let b be boy on string on day k.

slide-67
SLIDE 67

It gets better every day for girls..

Improvement Lemma: On any day, if girl has a boy b on a string, any future boy, b′, on string is at least as good as b. Proof: P(k)- - “every day before k girl had better boy.” P(0)– always true as there is no day before. Assume P(k). Let b be boy on string on day k. On day k +1, boy b comes back.

slide-68
SLIDE 68

It gets better every day for girls..

Improvement Lemma: On any day, if girl has a boy b on a string, any future boy, b′, on string is at least as good as b. Proof: P(k)- - “every day before k girl had better boy.” P(0)– always true as there is no day before. Assume P(k). Let b be boy on string on day k. On day k +1, boy b comes back. Girl can choose b just as well,

slide-69
SLIDE 69

It gets better every day for girls..

Improvement Lemma: On any day, if girl has a boy b on a string, any future boy, b′, on string is at least as good as b. Proof: P(k)- - “every day before k girl had better boy.” P(0)– always true as there is no day before. Assume P(k). Let b be boy on string on day k. On day k +1, boy b comes back. Girl can choose b just as well, or do better.

slide-70
SLIDE 70

It gets better every day for girls..

Improvement Lemma: On any day, if girl has a boy b on a string, any future boy, b′, on string is at least as good as b. Proof: P(k)- - “every day before k girl had better boy.” P(0)– always true as there is no day before. Assume P(k). Let b be boy on string on day k. On day k +1, boy b comes back. Girl can choose b just as well, or do better. = ⇒ P(k +1).

slide-71
SLIDE 71

Pairing when done.

Lemma: Every boy is matched at end.

slide-72
SLIDE 72

Pairing when done.

Lemma: Every boy is matched at end. Proof:

slide-73
SLIDE 73

Pairing when done.

Lemma: Every boy is matched at end. Proof: If not, a boy b must have been rejected n times.

slide-74
SLIDE 74

Pairing when done.

Lemma: Every boy is matched at end. Proof: If not, a boy b must have been rejected n times. Every girl has been proposed to by b,

slide-75
SLIDE 75

Pairing when done.

Lemma: Every boy is matched at end. Proof: If not, a boy b must have been rejected n times. Every girl has been proposed to by b, and Improvement lemma

slide-76
SLIDE 76

Pairing when done.

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

slide-77
SLIDE 77

Pairing when done.

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

slide-78
SLIDE 78

Pairing when done.

Lemma: Every boy is matched at end. Proof: If not, a boy b must have been rejected n times. Every girl has been proposed to by b, and Improvement lemma = ⇒ each girl has a boy on a string. and each boy on at most one string. n girls and n boys.

slide-79
SLIDE 79

Pairing when done.

Lemma: Every boy is matched at end. Proof: If not, a boy b must have been rejected n times. Every girl has been proposed to by b, and Improvement lemma = ⇒ each girl has a boy on a string. and each boy on at most one string. n girls and n boys. Same number of each.

slide-80
SLIDE 80

Pairing when done.

Lemma: Every boy is matched at end. Proof: If not, a boy b must have been rejected n times. Every girl has been proposed to by b, and Improvement lemma = ⇒ each girl has a boy on a string. and each boy on at most one string. n girls and n boys. Same number of each.

slide-81
SLIDE 81

Pairing when done.

Lemma: Every boy is matched at end. Proof: If not, a boy b must have been rejected n times. Every girl has been proposed to by b, and Improvement lemma = ⇒ each girl has a boy on a string. and each boy on at most one string. n girls and n boys. Same number of each. = ⇒ b must be on some girl’s string!

slide-82
SLIDE 82

Pairing when done.

Lemma: Every boy is matched at end. Proof: If not, a boy b must have been rejected n times. Every girl has been proposed to by b, and Improvement lemma = ⇒ each girl has a boy on a string. and each boy on at most one string. n girls and n boys. Same number of each. = ⇒ b must be on some girl’s string! Contradiction.

slide-83
SLIDE 83

Pairing is Stable.

Lemma: There is no rogue couple for the pairing formed by traditional marriage algorithm.

slide-84
SLIDE 84

Pairing is Stable.

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

slide-85
SLIDE 85

Pairing is Stable.

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

slide-86
SLIDE 86

Pairing is Stable.

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

slide-87
SLIDE 87

Pairing is Stable.

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

slide-88
SLIDE 88

Pairing is Stable.

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

slide-89
SLIDE 89

Pairing is Stable.

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

slide-90
SLIDE 90

Pairing is Stable.

Lemma: There is no rogue couple for the pairing formed by traditional marriage algorithm. Proof: Assume there is a rogue couple; (b,g∗) b g b∗ g∗ b likes g∗ more than g. g∗ likes b more than b∗. Boy 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.

slide-91
SLIDE 91

Pairing is Stable.

Lemma: There is no rogue couple for the pairing formed by traditional marriage algorithm. Proof: Assume there is a rogue couple; (b,g∗) b g b∗ g∗ b likes g∗ more than g. g∗ likes b more than b∗. Boy 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!

slide-92
SLIDE 92

Pairing is Stable.

Lemma: There is no rogue couple for the pairing formed by traditional marriage algorithm. Proof: Assume there is a rogue couple; (b,g∗) b g b∗ g∗ b likes g∗ more than g. g∗ likes b more than b∗. Boy 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!

slide-93
SLIDE 93

Good for boys? girls?

Is the TMA better for boys?

slide-94
SLIDE 94

Good for boys? girls?

Is the TMA better for boys? for girls?

slide-95
SLIDE 95

Good for boys? girls?

Is the TMA better for boys? for girls? Definition: A pairing is x-optimal if x′s partner is its best partner in any stable pairing.

slide-96
SLIDE 96

Good for boys? girls?

Is the TMA better for boys? for girls? 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.

slide-97
SLIDE 97

Good for boys? girls?

Is the TMA better for boys? for girls? 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 boy optimal if it is x-optimal for all boys x.

slide-98
SLIDE 98

Good for boys? girls?

Is the TMA better for boys? for girls? 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 boy optimal if it is x-optimal for all boys x. ..and so on for boy pessimal, girl optimal, girl pessimal.

slide-99
SLIDE 99

Good for boys? girls?

Is the TMA better for boys? for girls? 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 boy optimal if it is x-optimal for all boys x. ..and so on for boy pessimal, girl optimal, girl pessimal. Claim: The optimal partner for a boy must be first in his preference list.

slide-100
SLIDE 100

Good for boys? girls?

Is the TMA better for boys? for girls? 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 boy optimal if it is x-optimal for all boys x. ..and so on for boy pessimal, girl optimal, girl pessimal. Claim: The optimal partner for a boy must be first in his preference list. True?

slide-101
SLIDE 101

Good for boys? girls?

Is the TMA better for boys? for girls? 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 boy optimal if it is x-optimal for all boys x. ..and so on for boy pessimal, girl optimal, girl pessimal. Claim: The optimal partner for a boy must be first in his preference list. True? False?

slide-102
SLIDE 102

Good for boys? girls?

Is the TMA better for boys? for girls? 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 boy optimal if it is x-optimal for all boys x. ..and so on for boy pessimal, girl optimal, girl pessimal. Claim: The optimal partner for a boy must be first in his preference list. True? False? False!

slide-103
SLIDE 103

Good for boys? girls?

Is the TMA better for boys? for girls? 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 boy optimal if it is x-optimal for all boys x. ..and so on for boy pessimal, girl optimal, girl pessimal. Claim: The optimal partner for a boy must be first in his preference list. True? False? False! Subtlety here: Best partner in any stable pairing.

slide-104
SLIDE 104

Good for boys? girls?

Is the TMA better for boys? for girls? 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 boy optimal if it is x-optimal for all boys x. ..and so on for boy pessimal, girl optimal, girl pessimal. Claim: The optimal partner for a boy must be first in his preference list. True? False? False! Subtlety here: Best partner in any stable pairing. As well as you can in a globally stable solution!

slide-105
SLIDE 105

Good for boys? girls?

Is the TMA better for boys? for girls? 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 boy optimal if it is x-optimal for all boys x. ..and so on for boy pessimal, girl optimal, girl pessimal. Claim: The optimal partner for a boy must be first in his preference list. True? False? False! Subtlety here: Best partner in any stable pairing. As well as you can in a globally stable solution! Question: Is there a even boy or girl optimal pairing?

slide-106
SLIDE 106

Good for boys? girls?

Is the TMA better for boys? for girls? 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 boy optimal if it is x-optimal for all boys x. ..and so on for boy pessimal, girl optimal, girl pessimal. Claim: The optimal partner for a boy must be first in his preference list. True? False? False! Subtlety here: Best partner in any stable pairing. As well as you can in a globally stable solution! Question: Is there a even boy or girl optimal pairing?

slide-107
SLIDE 107

TMA is optimal!

For boys?

slide-108
SLIDE 108

TMA is optimal!

For boys? For girls?

slide-109
SLIDE 109

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing.

slide-110
SLIDE 110

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof:

slide-111
SLIDE 111

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not:

slide-112
SLIDE 112

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl.

slide-113
SLIDE 113

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected

slide-114
SLIDE 114

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with

slide-115
SLIDE 115

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with in stable pairing S.

slide-116
SLIDE 116

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with in stable pairing S. b∗ - knocks b off of g’s string on day t

slide-117
SLIDE 117

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with in stable pairing S. b∗ - knocks b off of g’s string on day t = ⇒ g prefers b∗ to b

slide-118
SLIDE 118

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with in stable pairing S. b∗ - knocks b off of g’s string on day t = ⇒ g prefers b∗ to b By choice of t, b∗ prefers g to optimal girl.

slide-119
SLIDE 119

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with in stable pairing S. b∗ - knocks b off of g’s string on day t = ⇒ g prefers b∗ to b By choice of t, b∗ prefers g to optimal girl. = ⇒ b∗ prefers g to his partner g∗ in S.

slide-120
SLIDE 120

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with in stable pairing S. b∗ - knocks b off of g’s string on day t = ⇒ g prefers b∗ to b By choice of t, b∗ prefers g to optimal girl. = ⇒ b∗ prefers g to his partner g∗ in S. Rogue couple for S.

slide-121
SLIDE 121

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with in stable pairing S. b∗ - knocks b off of g’s string on day t = ⇒ g prefers b∗ to b By choice of t, b∗ prefers g to optimal girl. = ⇒ b∗ prefers g to his partner g∗ in S. Rogue couple for S. So S is not a stable pairing.

slide-122
SLIDE 122

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with in stable pairing S. b∗ - knocks b off of g’s string on day t = ⇒ g prefers b∗ to b By choice of t, b∗ prefers g to optimal girl. = ⇒ b∗ prefers g to his partner g∗ in S. Rogue couple for S. So S is not a stable pairing. Contradiction.

slide-123
SLIDE 123

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with in stable pairing S. b∗ - knocks b off of g’s string on day t = ⇒ g prefers b∗ to b By choice of t, b∗ prefers g to optimal girl. = ⇒ b∗ prefers g to his partner g∗ in S. Rogue couple for S. So S is not a stable pairing. Contradiction.

slide-124
SLIDE 124

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with in stable pairing S. b∗ - knocks b off of g’s string on day t = ⇒ g prefers b∗ to b By choice of t, b∗ prefers g to optimal girl. = ⇒ b∗ prefers g to his partner g∗ in S. Rogue couple for S. So S is not a stable pairing. Contradiction. Notes:

slide-125
SLIDE 125

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with in stable pairing S. b∗ - knocks b off of g’s string on day t = ⇒ g prefers b∗ to b By choice of t, b∗ prefers g to optimal girl. = ⇒ b∗ prefers g to his partner g∗ in S. Rogue couple for S. So S is not a stable pairing. Contradiction. Notes: S - stable.

slide-126
SLIDE 126

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with in stable pairing S. b∗ - knocks b off of g’s string on day t = ⇒ g prefers b∗ to b By choice of t, b∗ prefers g to optimal girl. = ⇒ b∗ prefers g to his partner g∗ in S. Rogue couple for S. So S is not a stable pairing. Contradiction. Notes: S - stable. (b∗,g∗) ∈ S.

slide-127
SLIDE 127

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with in stable pairing S. b∗ - knocks b off of g’s string on day t = ⇒ g prefers b∗ to b By choice of t, b∗ prefers g to optimal girl. = ⇒ b∗ prefers g to his partner g∗ in S. Rogue couple for S. So S is not a stable pairing. Contradiction. Notes: S - stable. (b∗,g∗) ∈ S. But (b∗,g)

slide-128
SLIDE 128

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with in stable pairing S. b∗ - knocks b off of g’s string on day t = ⇒ g prefers b∗ to b By choice of t, b∗ prefers g to optimal girl. = ⇒ b∗ prefers g to his partner g∗ in S. Rogue couple for S. So S is not a stable pairing. Contradiction. Notes: S - stable. (b∗,g∗) ∈ S. But (b∗,g) is rogue couple!

slide-129
SLIDE 129

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with in stable pairing S. b∗ - knocks b off of g’s string on day t = ⇒ g prefers b∗ to b By choice of t, b∗ prefers g to optimal girl. = ⇒ b∗ prefers g to his partner g∗ in S. Rogue couple for S. So S is not a stable pairing. Contradiction. Notes: S - stable. (b∗,g∗) ∈ S. But (b∗,g) is rogue couple! Used Well-Ordering principle...

slide-130
SLIDE 130

TMA is optimal!

For boys? For girls? Theorem: TMA produces a boy-optimal pairing. Proof: Assume not: there are boys who do not get their optimal girl. Let t be first day a boy b gets rejected by his optimal girl g who he is paired with in stable pairing S. b∗ - knocks b off of g’s string on day t = ⇒ g prefers b∗ to b By choice of t, b∗ prefers g to optimal girl. = ⇒ b∗ prefers g to his partner g∗ in S. Rogue couple for S. So S is not a stable pairing. Contradiction. Notes: S - stable. (b∗,g∗) ∈ S. But (b∗,g) is rogue couple! Used Well-Ordering principle...Induction.

slide-131
SLIDE 131

How about for girls?

slide-132
SLIDE 132

How about for girls?

Theorem: TMA produces girl-pessimal pairing.

slide-133
SLIDE 133

How about for girls?

Theorem: TMA produces girl-pessimal pairing. T – pairing produced by TMA.

slide-134
SLIDE 134

How about for girls?

Theorem: TMA produces girl-pessimal pairing. T – pairing produced by TMA. S – worse stable pairing for girl g.

slide-135
SLIDE 135

How about for girls?

Theorem: TMA produces girl-pessimal pairing. T – pairing produced by TMA. S – worse stable pairing for girl g. In T, (g,b) is pair.

slide-136
SLIDE 136

How about for girls?

Theorem: TMA produces girl-pessimal pairing. T – pairing produced by TMA. S – worse stable pairing for girl g. In T, (g,b) is pair. In S, (g,b∗) is pair.

slide-137
SLIDE 137

How about for girls?

Theorem: TMA produces girl-pessimal pairing. T – pairing produced by TMA. S – worse stable pairing for girl g. In T, (g,b) is pair. In S, (g,b∗) is pair. g likes b∗ less than she likes b.

slide-138
SLIDE 138

How about for girls?

Theorem: TMA produces girl-pessimal pairing. T – pairing produced by TMA. S – worse stable pairing for girl g. In T, (g,b) is pair. In S, (g,b∗) is pair. g likes b∗ less than she likes b. T is boy optimal, so b likes g more than his partner in S.

slide-139
SLIDE 139

How about for girls?

Theorem: TMA produces girl-pessimal pairing. T – pairing produced by TMA. S – worse stable pairing for girl g. In T, (g,b) is pair. In S, (g,b∗) is pair. g likes b∗ less than she likes b. T is boy optimal, so b likes g more than his partner in S. (g,b) is Rogue couple for S

slide-140
SLIDE 140

How about for girls?

Theorem: TMA produces girl-pessimal pairing. T – pairing produced by TMA. S – worse stable pairing for girl g. In T, (g,b) is pair. In S, (g,b∗) is pair. g likes b∗ less than she likes b. T is boy optimal, so b likes g more than his partner in S. (g,b) is Rogue couple for S S is not stable.

slide-141
SLIDE 141

How about for girls?

Theorem: TMA produces girl-pessimal pairing. T – pairing produced by TMA. S – worse stable pairing for girl g. In T, (g,b) is pair. In S, (g,b∗) is pair. g likes b∗ less than she likes b. T is boy optimal, so b likes g more than his partner in S. (g,b) is Rogue couple for S S is not stable. Contradiction.

slide-142
SLIDE 142

How about for girls?

Theorem: TMA produces girl-pessimal pairing. T – pairing produced by TMA. S – worse stable pairing for girl g. In T, (g,b) is pair. In S, (g,b∗) is pair. g likes b∗ less than she likes b. T is boy optimal, so b likes g more than his partner in S. (g,b) is Rogue couple for S S is not stable. Contradiction.

slide-143
SLIDE 143

Residency Matching..

slide-144
SLIDE 144

Residency Matching..

The method was used to match residents to hospitals.

slide-145
SLIDE 145

Residency Matching..

The method was used to match residents to hospitals. Hospital optimal....

slide-146
SLIDE 146

Residency Matching..

The method was used to match residents to hospitals. Hospital optimal.... ..until 1990’s...

slide-147
SLIDE 147

Residency Matching..

The method was used to match residents to hospitals. Hospital optimal.... ..until 1990’s...Resident optimal.

slide-148
SLIDE 148

Residency Matching..

The method was used to match residents to hospitals. Hospital optimal.... ..until 1990’s...Resident optimal. Variations: couples!

slide-149
SLIDE 149

Don’t go!

Summary.

slide-150
SLIDE 150

Don’t go!

Summary.

Link