CSC2556 Lecture 5 Facility Location Stable Matching CSC2556 - Nisarg Shah 1
Facility Location CSC2556 - Nisarg Shah 2
Apprx Mechanism Design 1. Define the problem: agents, outcomes, values 2. Fix an objective function (e.g., maximizing sum of values) 3. Check if the objective function is maximized through a strategyproof mechanism 4. If not, find the strategyproof mechanism that provides the best worst-case approximation ratio of the objective function CSC304 - Nisarg Shah 3
Facility Location β’ Set of agents π β’ Each agent π has a true location π¦ π β β β’ Mechanism π β’ Takes as input reports ΰ·€ π¦ = (ΰ·€ π¦ 1 , ΰ·€ π¦ 2 , β¦ , ΰ·€ π¦ π ) β’ Returns a location π§ β β for the new facility β’ Cost to agent π : π π π§ = π§ β π¦ π β’ Social cost π· π§ = Ο π π π π§ = Ο π π§ β π¦ π CSC2556 - Nisarg Shah 4
Facility Location β’ Social cost π· π§ = Ο π π π π§ = Ο π π§ β π¦ π β’ Q: Ignoring incentives, what choice of π§ would minimize the social cost? β’ A: The median location med(π¦ 1 , β¦ , π¦ π ) β’ π is odd β the unique β (n+1)/2 β th smallest value β’ π is even β β n/2 β th or β (n/2)+1 β st smallest value β’ Why? CSC2556 - Nisarg Shah 5
Facility Location β’ Social cost π· π§ = Ο π π π π§ = Ο π π§ β π¦ π β’ Median is optimal (i.e., 1 -approximation) β’ What about incentives? β’ Median is also strategyproof (SP)! β’ Irrespective of the reports of other agents, agent π is best off reporting π¦ π CSC2556 - Nisarg Shah 6
Median is SP No manipulation can help CSC2556 - Nisarg Shah 7
Max Cost β’ A different objective function π· π§ = max π§ β π¦ π π β’ Q: Again ignoring incentives, what value of π§ minimizes the maximum cost? β’ A: The midpoint of the leftmost ( min π¦ π ) and the π rightmost ( max π¦ π ) locations π β’ Q: Is this optimal rule strategyproof? β’ A: No! CSC2556 - Nisarg Shah 8
Max Cost β’ π· π§ = max π π§ β π¦ π β’ We want to use a strategyproof mechanism. β’ Question: What is the approximation ratio of median for maximum cost? 1. β 1,2 2. β 2,3 3. β 3,4 4. β 4, β CSC2556 - Nisarg Shah 9
Max Cost β’ Answer: 2 -approximation β’ Other SP mechanisms that are 2 -approximation β’ Leftmost: Choose the leftmost reported location β’ Rightmost: Choose the rightmost reported location β’ Dictatorship: Choose the location reported by agent 1 β’ β¦ CSC2556 - Nisarg Shah 10
Max Cost β’ Theorem [Procaccia & Tennenholtz, β 09] No deterministic SP mechanism has approximation ratio < 2 for maximum cost. β’ Proof: CSC2556 - Nisarg Shah 11
Max Cost + Randomized β’ 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? (1/4)β2π·+(1/4)β2π·+(1/2)βπ· 3 β’ At most = π· 2 CSC2556 - Nisarg Shah 12
Max Cost + Randomized β’ Theorem [Procaccia & Tennenholtz, β 09]: The LRM mechanism is strategyproof. β’ Proof: 1/4 1/2 1/4 2π π 1/4 1/2 1/4 CSC2556 - Nisarg Shah 13
Max Cost + Randomized β’ Exercise for you! Try showing that no randomized SP mechanism can achieve approximation ratio < 3/2 . CSC2556 - Nisarg Shah 14
Stable Matching CSC2556 - Nisarg Shah 15
Stable Matching β’ 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 CSC2556 - Nisarg Shah 16
Stable Marriage Problem β’ 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 β ) CSC2556 - Nisarg Shah 17
Example: Preferences Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles β» β» CSC2556 - Nisarg Shah 18
Example: Matching 1 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? CSC2556 - Nisarg Shah 19
Example: Matching 1 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 . CSC2556 - Nisarg Shah 20
Example: Matching 2 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: How about this matching? CSC2556 - Nisarg Shah 21
Example: Matching 2 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.) CSC2556 - Nisarg Shah 22
Does a stable matching always exist in the marriage problem? Can we compute it in a strategyproof way? Can we compute it efficiently? CSC2556 - Nisarg Shah 23
Gale-Shapley 1962 β’ Men-Proposing Deferred Acceptance (MPDA): 1. Initially, no proposals, engagements, or matches are made. 2. While some man π is unengaged: β’ π₯ β π βs most preferred woman to whom π has not proposed yet β’ π proposes to π₯ β’ If π₯ is unengaged: o π and π₯ are engaged β’ Else if π₯ prefers π to her current partner πβ² o π and π₯ are engaged, πβ² becomes unengaged β’ Else: π₯ rejects π 3. Match all engaged pairs. CSC2556 - Nisarg Shah 24
Example: MPDA Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles = engaged = proposed = rejected CSC2556 - Nisarg Shah 25
Running Time β’ 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. CSC2556 - Nisarg Shah 26
Stable Matching β’ Theorem: DA always returns a stable matching. β’ Proof by contradiction: β’ Assume (π, π₯) is a blocking pair. β’ Case 1: π never proposed to π₯ o π cannot be unmatched o/w algorithm would not terminate. o Men propose in the order of preference. o Hence, π must be matched with a woman he prefers to π₯ o (π, π₯) is not a blocking pair CSC2556 - Nisarg Shah 27
Stable Matching β’ Theorem: DA always returns a stable matching. β’ Proof by contradiction: β’ Assume (π, π₯) is a blocking pair. β’ Case 2: π proposed to π₯ o π₯ must have rejected π at some point o Women only reject to get better partners o π₯ must be matched at the end, with a partner she prefers to π o (π, π₯) is not a blocking pair CSC2556 - Nisarg Shah 28
Men-Optimal Stable Matching β’ 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 πππ‘π’(π) . CSC2556 - Nisarg Shah 29
Men-Optimal Stable Matching β’ Theorem: Every execution of MPDA returns the β men- optimal β stable matching: every man is matched to his best valid partner. β’ Surprising that this is a matching. E.g., it means two men cannot have the same best valid partner! β’ Theorem: Every execution of MPDA produces the β women- pessimal β stable matching: every woman is matched to her worst valid partner. CSC2556 - Nisarg Shah 30
Recommend
More recommend