CSC304 Lecture 13 Finishing Facility Location: Randomized - - PowerPoint PPT Presentation

β–Ά
csc304 lecture 13
SMART_READER_LITE
LIVE PREVIEW

CSC304 Lecture 13 Finishing Facility Location: Randomized - - PowerPoint PPT Presentation

CSC304 Lecture 13 Finishing Facility Location: Randomized Left-Right-Middle Mechanism Begin Stable Matching: Gale-Shapley Algorithm CSC304 - Nisarg Shah 1 Recap: Facility Location Set of agents Each agent has a true location


slide-1
SLIDE 1

CSC304 Lecture 13

Finishing Facility Location: Randomized Left-Right-Middle Mechanism Begin Stable Matching: Gale-Shapley Algorithm

CSC304 - Nisarg Shah 1

slide-2
SLIDE 2

Recap: Facility Location

CSC304 - Nisarg Shah 2

  • Set of agents 𝑂
  • Each agent 𝑗 has a true location 𝑦𝑗 ∈ ℝ
  • Mechanism 𝑔 takes as input reported locations ΰ·€

𝑦 = (ΰ·€ 𝑦1, ΰ·€ 𝑦2, … , ΰ·€ π‘¦π‘œ), and places the facility at 𝑧 ∈ ℝ

  • Cost to agent 𝑗 : 𝑑𝑗 𝑧 = 𝑧 βˆ’ 𝑦𝑗
slide-3
SLIDE 3

Recap: Facility Location

CSC304 - Nisarg Shah 3

  • Social cost 𝐷 𝑧 = σ𝑗 𝑑𝑗 𝑧 = σ𝑗 𝑧 βˆ’ 𝑦𝑗

➒ Median is strategyproof (SP) and optimal (i.e., provides a

1-approximation)

  • Maximum cost 𝐷 𝑧 = max

𝑗

|𝑧 βˆ’ 𝑦𝑗|

➒ Median, Leftmost, Rightmost, Dictatorship, etc are

strategyproof and provide a 2-approximation

➒ No deterministic SP mechanism can provide < 2

approximation

slide-4
SLIDE 4

Max Cost + Randomized

CSC304 - Nisarg Shah 4

  • The Left-Right-Middle (LRM) Mechanism

➒ Choose min

𝑗

𝑦𝑗 with probability ΒΌ

➒ Choose max

𝑗

𝑦𝑗 with probability ΒΌ

➒ Choose (min

𝑗

𝑦𝑗 + max

𝑗

𝑦𝑗)/2 with probability Β½

  • Question: What is the approximation ratio of LRM

for maximum cost?

  • At most

(1/4)βˆ—2𝐷+(1/4)βˆ—2𝐷+(1/2)βˆ—π· 𝐷

=

3 2

slide-5
SLIDE 5

Max Cost + Randomized

CSC304 - Nisarg Shah 5

  • Theorem [Procaccia & Tennenholtz, β€˜09]:

The LRM mechanism is strategyproof.

  • Proof:

1/4 1/4 1/2 1/4 1/4 1/2 2πœ€ πœ€

slide-6
SLIDE 6

Max Cost + Randomized

CSC304 - Nisarg Shah 6

  • Exercise for you!

Try showing that no randomized SP mechanism can achieve approximation ratio < 3/2

  • Suggested outline

➒ Consider two agents with 𝑦1 = 0 and 𝑦2 = 1 ➒ Show that one of them has expected cost at least Β½ ➒ What happens if that agent moves 1 unit farther from the

  • ther agent?
slide-7
SLIDE 7

Stable Matching

CSC304 - Nisarg Shah 7

  • Recap Graph Theory:
  • In graph 𝐻 = (π‘Š, 𝐹), a matching 𝑁 βŠ† 𝐹 is a set of

edges with no common vertices

➒ That is, each vertex should have at most one incident

edge

➒ A matching is perfect if no vertex is left unmatched.

  • 𝐻 is a bipartite graph if there exist π‘Š

1, π‘Š 2 such that

π‘Š = π‘Š

1 βˆͺ π‘Š 2 and 𝐹 βŠ† π‘Š 1 Γ— π‘Š 2

slide-8
SLIDE 8

Stable Marriage Problem

CSC304 - Nisarg Shah 8

  • Bipartite graph, two sides with equal vertices

➒ π‘œ men and π‘œ women (old school terminology )

  • Each man has a ranking over women & vice versa

➒ E.g., Eden might prefer Alice ≻ Tina ≻ Maya ➒ And Tina might prefer Tony ≻ Alan ≻ Eden

  • Want: a perfect, stable matching

➒ Match each man to a unique woman such that no pair of

man 𝑛 and woman π‘₯ prefer each other to their current matches (such a pair is called a β€œblocking pair”)

slide-9
SLIDE 9

Example: Preferences

CSC304 - Nisarg Shah 9

Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles

≻ ≻

slide-10
SLIDE 10

Example: Matching 1

CSC304 - Nisarg Shah 10

Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles

Question: Is this a stable matching?

slide-11
SLIDE 11

Example: Matching 1

CSC304 - Nisarg Shah 11

Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles

No, Albert and Emily form a blocking pair.

slide-12
SLIDE 12

Example: Matching 2

CSC304 - Nisarg Shah 12

Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles

Question: What about this matching?

slide-13
SLIDE 13

Example: Matching 2

CSC304 - Nisarg Shah 13

Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles

Yes! (Charles and Fergie are unhappy, but helpless.)

slide-14
SLIDE 14

Does a stable matching always exist in the marriage problem?

CSC304 - Nisarg Shah 14

Can we compute it in a strategyproof way?

Can we compute it efficiently?

slide-15
SLIDE 15

Gale-Shapley 1962

CSC304 - Nisarg Shah 15

  • Men-Proposing Deferred Acceptance (MPDA):
  • 1. Initially, no one has proposed, no one is matched.
  • 2. While some man 𝑛 is unmatched:

➒ π‘₯ ← 𝑛’s most preferred woman to whom 𝑛 has not

proposed yet

➒ 𝑛 proposes to π‘₯ ➒ If π‘₯ is unmatched:

  • 𝑛 and π‘₯ are engaged

➒ Else if π‘₯ prefers 𝑛 to her current partner 𝑛′

  • 𝑛 and π‘₯ are engaged, 𝑛′ becomes unengaged

➒ Else: π‘₯ rejects 𝑛

  • 3. Match all engaged pairs.
slide-16
SLIDE 16

Example: MPDA

CSC304 - Nisarg Shah 16

Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles = proposed = engaged = rejected

slide-17
SLIDE 17

Running Time

CSC304 - Nisarg Shah 17

  • Theorem: DA terminates in polynomial time (at

most π‘œ2 iterations of the outer loop)

  • Proof:

➒ In each iteration, a man proposes to someone to whom

he has never proposed before.

➒ π‘œ men, π‘œ women β†’ π‘œ Γ— π‘œ possible proposals ➒ Can actually tighten a bit to π‘œ π‘œ βˆ’ 1 + 1 iterations

  • At termination, it must return a perfect matching.
slide-18
SLIDE 18

Stable Matching

CSC304 - Nisarg Shah 18

  • Theorem: DA always returns a stable matching.
  • Proof by contradiction:

➒ Assume (𝑛, π‘₯) is a blocking pair. ➒ Case 1: 𝑛 never proposed to π‘₯

  • GS: 𝑛 cannot be unmatched o/w algorithm would not terminate.
  • GS: Men propose in the order of preference.
  • Hence, 𝑛 must be matched with a woman he prefers to π‘₯
  • (𝑛, π‘₯) is not a blocking pair
slide-19
SLIDE 19

Stable Matching

CSC304 - Nisarg Shah 19

  • Theorem: DA always returns a stable matching.
  • Proof by contradiction:

➒ Assume (𝑛, π‘₯) is a blocking pair. ➒ Case 2: 𝑛 proposed to π‘₯

  • π‘₯ must have rejected 𝑛 at some point
  • GS: Women only reject to get better partners
  • π‘₯ must be matched at the end, with a partner she prefers to 𝑛
  • (𝑛, π‘₯) is not a blocking pair
slide-20
SLIDE 20

Men-Optimal Stable Matching

CSC304 - Nisarg Shah 20

  • The stable matching found by MPDA is special.
  • Valid partner: For a man 𝑛, call a woman π‘₯ a valid

partner if (𝑛, π‘₯) is in some stable matching.

  • Best valid partner: For a man 𝑛, a woman π‘₯ is the

best valid partner if she is a valid partner, and 𝑛 prefers her to every other valid partner.

➒ Denote the best valid partner of 𝑛 by 𝑐𝑓𝑑𝑒(𝑛).

slide-21
SLIDE 21

Men-Optimal Stable Matching

CSC304 - Nisarg Shah 21

  • Theorem: Every execution of MPDA returns the men-
  • ptimal stable matching in which every man is matched to

his best valid partner 𝑐𝑓𝑑𝑒 𝑛 .

➒ Surprising that this is even a matching. E.g., why can’t two

men have the same best valid partner?

➒ Every man is simultaneously matched with his best

possible partner across all stable matchings

  • Theorem: Every execution of MPDA produces the women-

pessimal stable matching in which every woman is matched to her worst valid partner.

slide-22
SLIDE 22

Men-Optimal Stable Matching

CSC304 - Nisarg Shah 22

  • Theorem: Every execution of MPDA returns the men-
  • ptimal stable matching.
  • Proof by contradiction:

➒ Let 𝑇 = matching returned by MPDA. ➒ 𝑛 ← first man rejected by 𝑐𝑓𝑑𝑒 𝑛 = π‘₯ ➒ 𝑛′ ← the more preferred man due to which π‘₯ rejected 𝑛 ➒ π‘₯ is valid for 𝑛, so (𝑛, π‘₯) part of stable matching 𝑇′ ➒ π‘₯β€² ← woman 𝑛′ is matched to in 𝑇′ ➒ We show that 𝑇′ cannot be stable because (𝑛′, π‘₯) is a

blocking pair.

slide-23
SLIDE 23

Men-Optimal Stable Matching

CSC304 - Nisarg Shah 23

  • Theorem: Every execution of MPDA returns the men-
  • ptimal stable matching.
  • Proof by contradiction:

𝑇 𝑇′

π‘₯ 𝑛 𝑛′

X

π‘₯ 𝑛 𝑛′ π‘₯β€²

Not yet rejected by a valid partner β‡’ hasn’t proposed to π‘₯β€² β‡’ prefers π‘₯ to π‘₯β€² First to be rejected by best valid partner (π‘₯) Rejects 𝑛 because prefers 𝑛′ to 𝑛 Blocking pair

slide-24
SLIDE 24

Strategyproofness

CSC304 - Nisarg Shah 24

  • Theorem: MPDA is strategyproof for men, i.e.,

reporting the true ranking is a weakly dominant strategy for every man.

➒ We’ll skip the proof of this. ➒ Actually, it is group-strategyproof.

  • But the women might want to misreport.
  • Theorem: No algorithm for the stable matching

problem is strategyproof for both men and women.

slide-25
SLIDE 25

Women-Proposing Version

CSC304 - Nisarg Shah 25

  • Women-Proposing Deferred Acceptance (WPDA)

➒ Just flip the roles of men and women ➒ Strategyproof for women, not strategyproof for men ➒ Returns the women-optimal and men-pessimal stable

matching

slide-26
SLIDE 26

Extensions

CSC304 - Nisarg Shah 26

  • Unacceptable matches

➒ Allow every agent to report a partial ranking ➒ If woman π‘₯ does not include man 𝑛 in her preference

list, it means she would rather be unmatched than matched with 𝑛. And vice versa.

➒ (𝑛, π‘₯) is blocking if each prefers the other over their

current state (matched with another partner or unmatched)

➒ Just 𝑛 (or just π‘₯) can also be blocking if they prefer being

unmatched than be matched to their current partner

  • Magically, DA still produces a stable matching.
slide-27
SLIDE 27

Extensions

CSC304 - Nisarg Shah 27

  • Resident Matching (or College Admission)

➒ Men β†’ residents (or students) ➒ Women β†’ hospitals (or colleges) ➒ Each side has a ranked preference over the other side ➒ But each hospital (or college) π‘Ÿ can accept π‘‘π‘Ÿ > 1

residents (or students)

➒ Many-to-one matching

  • An extension of Deferred Acceptance works

➒ Resident-proposing (resp. hospital-proposing) results in

resident-optimal (resp. hospital-optimal) stable matching

slide-28
SLIDE 28

Extensions

CSC304 - Nisarg Shah 28

  • For ~20 years, most people thought that these

problems are very similar to the stable marriage problem

  • Roth [1985] shows:

➒ No stable matching algorithm exists such that truth-

telling is a weakly dominant strategy for hospitals (or colleges).

slide-29
SLIDE 29

Extensions

CSC304 - Nisarg Shah 29

  • Roommate Matching

➒ Still one-to-one matching ➒ But no partition into men and women

  • β€œGeneralizing from bipartite graphs to general graphs”

➒ Each of π‘œ agents submits a ranking over the other π‘œ βˆ’ 1

agents

  • Unfortunately, there are instances where no stable

matching exist.

➒ A variant of DA can still find a stable matching if it exists. ➒ Due to Irving [1985]

slide-30
SLIDE 30

NRMP: Matching in Practice

CSC304 - Nisarg Shah 30

  • 1940s: Decentralized resident-hospital matching

➒ Markets β€œunralveled”, offers came earlier and earlier, quality of

matches decreased

  • 1950s: NRMP introduces centralized β€œclearinghouse”
  • 1960s: Gale-Shapley introduce DA
  • 1984: Al Roth studies NRMP algorithm, finds it is really a version of DA!
  • 1970s: Couples increasingly don’t use NRMP
  • 1998: NRMP implements matching with couple constraints

(stable matchings may not exist anymore…)

  • More recently, DA applied to college admissions