Market Design: Lecture 1 NICOLE IMMORLICA, NORTHWESTERN UNIVERSITY

Similar documents
The key is that there are two disjoint populations, and everyone in the market is on either one side or the other

Matching: The Theory. Muriel Niederle Stanford and NBER. September 26, 2011

Matching. Terence Johnson. April 17, University of Notre Dame. Terence Johnson (ND) Matching April 17, / 41

Two-Sided Matching. Terence Johnson. December 1, University of Notre Dame. Terence Johnson (ND) Two-Sided Matching December 1, / 47

Matching Theory. Mihai Manea. Based on slides by Fuhito Kojima. MIT

What do you do when you can t use money to solve your problems?

1. REPRESENTATIVE PROBLEMS

We set up the basic model of two-sided, one-to-one matching

Recent Advances in Generalized Matching Theory

Two-Sided Matching. Terence Johnson. September 1, University of Notre Dame. Terence Johnson (ND) Two-Sided Matching September 1, / 37

CSC2556. Lecture 5. Matching - Stable Matching - Kidney Exchange [Slides : Ariel D. Procaccia]

Matching: The Theory. Muriel Niederle Stanford and NBER. September 26, 2011

SEQUENTIAL ENTRY IN ONE-TO-ONE MATCHING MARKETS

1 Definitions and Things You Know

1. STABLE MATCHING. stable matching problem Gale Shapley algorithm hospital optimality context

Game Theory: Lecture #5

1. REPRESENTATIVE PROBLEMS

1. REPRESENTATIVE PROBLEMS

Two-sided Matching Theory

Matching Theory and the Allocation of Kidney Transplantations

Stable matching. Carlos Hurtado. July 5th, Department of Economics University of Illinois at Urbana-Champaign

Input. A set of men M, and a set of women W.

Analysis of Algorithms Fall Some Representative Problems Stable Matching

Ma/CS 6b Class 3: Stable Matchings

COOPERATIVE GAME THEORY: CORE AND SHAPLEY VALUE

Incentives in Large Random Two-Sided Markets

Strategic Behavior and Manipulation in Gender- Neutral Matching Algorithms

Consider a complete bipartite graph with sets A and B, each with n vertices.

Ma/CS 6b Class 3: Stable Matchings

Optimal Truncation in Matching Markets

Matching and Market Design

Cheating to Get Better Roommates in a Random Stable Matching

Matching Problems. Roberto Lucchetti. Politecnico di Milano

PROBLEMS OF MARRIAGE Eugene Mukhin

STABLE MARRIAGE PROBLEM WITH TIES AND INCOMPLETE BOUNDED LENGTH PREFERENCE LIST UNDER SOCIAL STABILITY

Algorithm Design and Analysis

Weights in stable marriage problems increase manipulation opportunities

Two Sided Matching: An Algorithm with both sides making proposals

Stable Marriage with Ties and Bounded Length Preference Lists

THREE ESSAYS ON GAME THEORY. Demet Yilmazkuday. Dissertation. Submitted to the Faculty of the. Graduate School of Vanderbilt University

The Generalized Median Stable Matchings: finding them is not that easy

Weights in Stable Marriage Problems Increase Manipulation Opportunities

Matching with Couples: Semi-Stability and Algorithm

Matching with Myopic and Farsighted Players

Stable Matching Problems with Exchange Restrictions

Omega notation. Transitivity etc.

Matching Problems. Roberto Lucchetti. Politecnico di Milano

Matching with Couples: Semi-Stability and Algorithm

Coalition Manipulation of the Gale-Shapley Algorithm

Algorithm Design and Analysis

Matchings in Graphs. Definition 3 A matching N in G is said to be stable if it does not contain a blocking pair.

Bipartite Matchings and Stable Marriage

The Man-Exchange Stable Marriage Problem

arxiv: v1 [cs.gt] 11 Jul 2016

Stability in Matching Markets with Sizes

Manipulability in matching markets: conflict and coincidence of interests

Local Search Approaches in Stable Matching Problems

CS320 Algorithms: Theory and Practice. Course Introduction

What Matchings Can be Stable? Refutability in Matching Theory

Matching with Couples: Stability and Algorithm

Unbalanced Random Matching Markets: The Stark Effect of Competition

Marriage Matching: A Conjecture of Donald Knuth

A (ln 4)-Approximation Algorithm for Maximum Stable Matching with One-Sided Ties and Incomplete Lists

Equilibria under Deferred Acceptance: Dropping Strategies, Filled Positions, and Welfare

TWO-SIDED MATCHING WITH EXTERNALITIES: A SURVEY

The Blocking Lemma and Strategy-Proofness in Many-to-Many Matchings

Socially stable matchings in the Hospitals/Residents problem

Competition and Resource Sensitivity in Marriage and Roommate Markets

Published: Social Choice and Welfare, 33(1), June 2009, pp doi: /s SEQUENTIAL ENTRY IN MANY-TO-ONE MATCHING MARKETS

Dynamic Matching with a Fall-back Option

Efficiency and Stability of Probabilistic Assignments in Marriage Problems

Competition and Resource Sensitivity in Marriage and Roommate Markets

arxiv: v1 [cs.gt] 15 Oct 2017

arxiv: v2 [cs.gt] 25 Jul 2014

Stable Matching with Uncertain Linear Preferences

Algorithmics of Two-Sided Matching Problems

Algorithms. [Knuth, TAOCP] An algorithm is a finite, definite, effective procedure, with some input and some output.

AN IMPOSSIBILITY THEOREM IN MATCHING PROBLEMS

Dynamic Matching under Preferences

Three-dimensional Stable Matching Problems. Cheng Ng and Daniel S. Hirschberg. Department of Information and Computer Science

Approximation and Randomized Algorithms (ARA) Lecture 1, September 3, 2012

Math 301: Matchings in Graphs

CALIFORNIA INSTITUTE OF TECHNOLOGY

Unbalanced Random Matching Markets: The Stark Effect of Competition

Egalitarian solutions in the stable roommates problem

Radoslav S. Raykov. Bank of Canada Financial Stability Department. August 2017 Econometric Society Meeting

arxiv: v1 [cs.ds] 8 Apr 2019

An improved approximation algorithm for the stable marriage problem with one-sided ties

COMP251: Bipartite graphs

Petty Envy When Assigning Objects

Expanding Choice in School Choice

Two-Sided Matching with Indifferences

CS711008Z Algorithm Design and Analysis

Stable Matching Existence, Computation, Convergence Correlated Preferences. Stable Matching. Algorithmic Game Theory.

Substitutes and Stability for Matching with Contracts

Strategy-Proofness and the Core in House Allocation Problems

The Importance of Irrelevance of Rejected Contracts in Matching under Weakened Substitutes Conditions

Multi-period Matching with Commitment

Lecture 5: The Principle of Deferred Decisions. Chernoff Bounds

Creating new worlds inside the computer. COS 116: 2/10/2011 Sanjeev Arora

Transcription:

Market Design: Lecture 1 NICOLE IMMORLICA, NORTHWESTERN UNIVERSITY

Outline 1. IntroducEon: two- sided matching markets in pracece and impact of theory 2. Stable Matching Model: elementary definieons, fundamental existence result 3. Structure: combinatorial structure of the set of stable matchings, applicaeons

Part 1: IntroducEon.

Market Design Goal Develop simple theory, to deal with complexity in pracece

Two- Sided Matching firms workers 1. agents pareeoned into two disjoint sets (as opposed to commodiees markets where an agent can be both a buyer and a seller)

Two- Sided Matching firms workers 2. bilateral nature of exchange (vs. commodiees markets where agent sells wheat and buy tractors although wheat- buyer doesn t sell tractors and tractor- seller doesn t buy wheat)

Example: entry- level labor markets PracEce: NaEonal Residency Matching Program (NRMP): physicians look for residency programs at hospitals in the United States

Example: entry- level labor markets PracEce: decentralized, unraveling, inefficiencies 1950 1990 centralized clearinghouse, 95% voluntary parecipaeon dropping parecipaeon sparks redesign to accommodate couples, system sell in use

Example: entry- level labor markets Theory: Gale- Shapley stable marriage algorithm: NRMP central clearinghouse algorithm corresponds to GS algorithm, and so evolueon of market resulted in correct mechanism

Example: entry- level labor markets Issues: Understanding agents inceneves DistribuEon of interns to rural hospitals Dealing with couples Preference formaeon

Example: school choice PracEce: Boston, New York City, etc: students submit preferences about different schools; matched based on prioriees (e.g., test scores, geography, sibling matches)

Example: school choice PracEce: some mechanisms strategically complicated, result in unstable matches, many complaints in school boards

Example: school choice Theory: theorists proposed alternate mechanisms including top- trading cycles and GS algorithm for stable marriage, schools adopt these

Example: school choice Issues: Fairness and affirmaeve aceon goals RespecEng improvements in schools

Example: kidney exchange PracEce: In 2005: 75,000 paeents waieng for transplants 16,370 transplants performed (9,800 from deceased donors, 6,570 from living donors) 4,200 paeents died while waieng

Example: kidney exchange PracEce: Source and allocaeon of kidneys: cadaver kidneys: centralized matching mechanism based on priority queue living donors: paeent must idenefy donor, needs to be compaeble other: angel donors, black market sales

Example: kidney exchange Theory: living donor exchanges: paeent 1 donor 1 paeent 2 donor 2

Example: kidney exchange Theory: living donor exchanges: adopted mechanism uses top- trading cycles, theory of maximum matching, results in improved welfare (many more transplants)

Example: kidney exchange Issues: Larger cycles of exchanges Hospitals inceneves

Part 2: Stable Matching Model.

Stable Matching Model men M = {m 1,, m n } women W = {w 1,, w p } preferences a > x b if x prefers a to b a x b if x is likes a at least as well as b

Stable Matching Model preference lists P(m) ordered list of W U {m} P(m) = w 1, w 2, m, w 3,, w p (m prefers being single to marrying w 3,, w p ) P(w) ordered list of M U {w} P(w) = m 1, [m 2, m 3 ], m 4,, m n, w (w is indifferent between m 2 and m 3 )

Stable Matching Model preferences strict if no indifferences (we assume strict unless otherwise stated) ra'onal by assumpeon (preferences transieve and form a total ordering) matchings μ a correspondence μ from set M U W onto itself s.t. if μ(m) m then μ(m) in W (and vice versa)

Stable Matching Model matchings μ(m) is mate of m μ > x ν if μ(x) > x ν(x) (no externaliees: m cares only about own mate)

Stable Matching Model matching μ is stable if individually raeonal, unblocked by individuals: μ(x) x x for all x (agents can choose to be single, so IR only if every agent is acceptable to mate) unblocked by pairs: if y > x μ(x), then μ(y) > y x for all x,y (no pairwise deviaeons from matching) aside: stable iff in core (no subset deviaeons)

Example P(m 1 ) = w 2, w 1, w 3 P(w 1 ) = m 1, m 3, m 2 P(m 2 ) = w 1, w 3, w 2 P(w 2 ) = m 3, m 1, m 2 P(m 3 ) = w 1, w 2, w 3 P(w 3 ) = m 1, m 3, m 2 all matchings are individually raeonal (since all pairs mutually acceptable) μ = {(w 1, m 1 ), (w 2, m 2 ), (w 3, m 3 )} unstable (since blocked by (m 1, w 2 )) ν = {(w 1, m 1 ), (w 2, m 3 ), (w 3, m 2 )} is stable

PredicEon Only stable matchings will occur. complete informaeon and easy access (else blocking pairs persist because agents don t know about each other or can t find each other) good idea when parecipaeon is voluntary many theorems require strict preferences (indifference unlikely because knife- edge )

Non- Existence One- sided (roommate problem): n single people to be matched in pairs each person ranks n- 1 others matching stable if no blocking pairs example: people {a, b, c, d} P(a) = b, c, d P(c) = a, b, d P(b) = c, a, d P(d) = arbitrary no stable matching since person with d blocks

Other Non- existence Three- sided (man- woman- child): Preferences over pairs of other agents (m, w, c) block μ if (w, c) > m μ(m); (m, c) > w μ(w); (m, w) > c μ(c) One- to- many (workers- firms): Firms have preferences over sets of workers Firm f and subset of workers C block μ if C > f μ(f) and for all w in C, f > w μ(w)

Existence First auempt: rejeceon chains start with arbitrary matching Repeat unel no blocking pairs take arbitrary blocking pair (m,w) match m and w declare mates of m and w to be single

Example: rejeceon chains P(m 1 ) = w 2, w 1, w 3 P(w 1 ) = m 1, m 3, m 2 P(m 2 ) = w 1, w 3, w 2 P(w 2 ) = m 3, m 1, m 2 P(m 3 ) = w 1, w 2, w 3 P(w 3 ) = m 1, m 3, m 2 μ 1 = {(m 1, w 1 ), (m 2, w 2 ), (m 3, w 3 )} blocked by (m 1, w 2 ) μ 2 = {(m 1, w 2 ), (m 2, w 1 ), (m 3, w 3 )} blocked by (m 3, w 2 ) μ 3 = {(m 1, w 3 ), (m 2, w 1 ), (m 3, w 2 )} blocked by (m 3, w 1 ) μ 4 = {(m 1, w 3 ), (m 2, w 2 ), (m 3, w 1 )} blocked by (m 1, w 1 ) μ 1 = {(m 1, w 1 ), (m 2, w 2 ), (m 3, w 3 )} blocked by (m 1, w 2 )

Example: rejeceon chains P(m 1 ) = w 2, w 1, w 3 P(w 1 ) = m 1, m 3, m 2 P(m 2 ) = w 1, w 3, w 2 P(w 2 ) = m 3, m 1, m 2 P(m 3 ) = w 1, w 2, w 3 P(w 3 ) = m 1, m 3, m 2 Note: {(m 1, w 1 ), (m 2, w 2 ), (m 3, w 3 )} also blocked by (m 3, w 2 ) {(m 1, w 1 ), (m 2, w 3 ), (m 3, w 2 )} is stable There are always chains that lead to stable matching!

RejecEon chains Theorem [Roth- Vande Vate 90]. For any matching μ, there exists a finite sequence of matchings μ 1,, μ k such that μ = μ 1, μ k is stable, and for each i = 1,, k- 1, there is a blocking pair (m,w) for μ i s.t. μ i+1 is obtained from μ i by matching (m,w) and making their mates single

RejecEon chains Prf. Take arbitrary μ and subset S of agents s.t. S does not contain any blocking pairs for μ add arbitrary agent x to S if x blocks μ with an agent in S, chain at (x,y) where y is most preferred mate of x among those in S that form a blocking pair with x repeat unel no agents in S block μ conenue growing S unel all agents in S

RejecEon chains Prf. Take arbitrary μ and subset S of agents s.t. S does not contain any blocking pairs for μ add arbitrary agent x to S if x blocks μ with an agent in S, chain at (x,y) deferred where y acceptance is most preferred algorithm mate with of x respect among to those S (terminates S that with form no a blocking pairs with in S, see x next seceon) repeat unel no agents in S block μ conenue growing S unel all agents in S

RejecEon chains Corollary. Random chains converge to stable matching with probability one. QuesEon. Rate of convergence? QuesEon. Same results in more general se{ngs (e.g., many- to- many matchings)?

Existence: deferred acceptance IniEate: Each man proposes to 1 st choice. Each woman rejects all but most preferred acceptable proposal. Repeat (unel no more rejeceons): Any man rejected at previous step proposes to most preferred woman that has not yet rejected him (if such a woman exists). Each woman rejects all but most preferred acceptable proposal.

Existence: deferred acceptance Theorem [Gale- Shapley 62]. A stable matching exists for any marriage market. Prf. The deferred acceptance algorithm computes a stable matching.

Existence: deferred acceptance Prf. (of men- proposing) Terminates: finite number of women, each man proposes to each woman at most once. Stable: suppose (m, w) not matched and w > m μ(w) then m proposed to w and was rejected w must have rejected m for a preferred m as w s opeons improve, μ(w) w m > w m so (m, w) not a blocking pair

Example: men- proposing P(m 1 ) = w 2, w 1, w 3 P(w 1 ) = m 1, m 3, m 2 P(m 2 ) = w 1, w 3, w 2 P(w 2 ) = m 3, m 1, m 2 P(m 3 ) = w 1, w 2, w 3 P(w 3 ) = m 1, m 3, m 2 1. Proposals: {(m 1, w 2 ), (m 2, w 1 ), (m 3, w 1 )} Intermediate μ: {(m 1, w 2 ), (m 2 ), (w 3 ), (m 3, w 1 )} 2. Proposals: {(m 2, w 3 )} Final μ: {(m 1, w 2 ), (m 2, w 3 ), (m 3, w 1 )}

Example: women- proposing P(m 1 ) = w 2, w 1, w 3 P(w 1 ) = m 1, m 3, m 2 P(m 2 ) = w 1, w 3, w 2 P(w 2 ) = m 3, m 1, m 2 P(m 3 ) = w 1, w 2, w 3 P(w 3 ) = m 1, m 3, m 2 1. Proposals: {(m 1, w 1 ), (m 3, w 2 ), (m 1, w 3 )} Intermediate μ: {(m 1, w 1 ), (m 3, w 2 ), (m 2 ), (w 3 )} 2. Proposals: {(m 3, w 3 )} Intermediate μ: {(m 1, w 1 ), (m 3, w 2 ), (m 2 ), (w 3 )} 3. Proposals: {(m 2, w 3 )} Final μ: {(m 1, w 1 ), (m 3, w 2 ), (m 2, w 3 )}

ProperEes P(m 1 ) = w 2, w 1, w 3 P(w 1 ) = m 1, m 3, m 2 P(m 2 ) = w 1, w 3, w 2 P(w 2 ) = m 3, m 1, m 2 P(m 3 ) = w 1, w 2, w 3 P(w 3 ) = m 1, m 3, m 2 μ M = {(m 1, w 2 ), (m 2, w 3 ), (m 3, w 1 )} μ W = {(m 1, w 1 ), (m 2, w 3 ), (m 3, w 2 )} Each man prefers μ M to μ W ; each woman prefers μ W to μ M!

Why Not Disagree P(m 1 ) = w 1, w 2, w 3 P(w 1 ) = m 1, m 2, m 3 P(m 2 ) = w 1, w 3, w 2 P(w 2 ) = m 1, m 2, m 3 P(m 3 ) = w 1, w 2, w 3 P(w 3 ) = m 1, m 3, m 2 Among all matchings, each man likes a different one best (i.e., one where he gets w 1 ) Two stable matchings: μ = {(m 1,w 1 ), (m 2,w 2 ), (m 3,w 3 )} ν = {(m 1,w 1 ), (m 2,w 2 ), (m 3,w 3 )} stability eliminates disagreement

Common Interests Define μ M ν if for all men m, μ(m) m ν(m), μ > M ν if also for some m, μ(m) > m ν(m) note this is a pareal order and transieve μ is M- opemal if, for all stable ν, μ M ν Similarly, define μ W ν and W- opemal

Common Interests Theorem [Gale- Shapley 62]. There is always a unique M- opemal stable matching. The matching μ M produced by the men- proposing deferred acceptance algorithm is M- opemal (similarly for women).

Common Interests Prf. Define m and w to be achievable for each other if matched in some stable matching. Claim. No man is rejected by an achievable woman. By induceon: assume unel step k, no man is rejected by an achievable woman. At k+1, suppose m proposes to w and is rejected. If m is unacceptable to w (m > m w), we are done.

Common Interests Claim. No man is rejected by an achievable woman. Else w rejects m in favor of some m, so m > w m. Note m prefers w to all women except those who previously rejected him (who are unachievable by induceve hypothesis). Suppose w achievable for m and let μ be stable matching that matches them. Then μ(m ) achievable for m and μ(m ) w. So w > m μ(m ) and thus (m, w) block μ.

Opposing Interests Men and women disagree. Theorem [Knuth 76]. For stable matchings μ and ν, μ > M ν if and only if ν > W μ. Corollary. M- opemal matching is worst stable matching for women (each woman gets least- preferred achievable mate) and vice versa.

Opposing Interests Prf. Suppose μ > M ν and for some w, μ(w) > w ν(w). Then m = μ(w) has a different mate ν. Thus, by assumpeon, w = μ(m) > m ν(w). Thus, (m, w) block matching ν, contradiceon.

Part 3: Structure.

PoinEng Phenomenon Point to your most- preferred mate two men may point to same woman Point to your most- preferred achievable mate each man points to a different woman! resuleng matching is stable! What about poineng among mates in arbitrary stable matchings μ and ν? men point to different woman, matching stable

PoinEng Phenomenon Define λ = μ M ν as assign each man more- preferred mate: λ(m) = μ(m) if μ(m) > m ν(m); else λ(m) = ν(m). assign each woman less- preferred mate: λ(w) = μ(w) if ν(w) > w μ(w); else λ(w) = ν(w). Is λ a stable matching? if λ(m) = λ(m ), does m = m? if λ(m) = w, does λ(w) = m? is λ stable?

PoinEng Phenomenon Theorem [Conway]. If μ and ν are stable, then λ = μ M ν is a stable matching (also μ M ν). Prf. First show λ is a matching, i.e., λ(m) = w if and only if λ(w) = m. if λ(m) = w then w = μ(m) > m ν(m), so stability of ν requires ν(w) > w μ(w) = m implying λ(w) = m. if λ(w) = m, must worry about unmatched case

PoinEng Phenomenon Prf. Next show λ is stable. suppose (m, w) block λ then w > m λ(m), so w > m μ(m) and w > m ν(m) furthermore, m > w λ(w), so (m, w) block μ if λ(w) = μ(w) (m, w) block ν if λ(w) = ν(w)

Example P(m 1 ) = w 1, w 2, w 3, w 4 P(w 1 ) = m 4, m 3, m 2, m 1 P(m 2 ) = w 2, w 1, w 4, w 3 P(w 2 ) = m 3, m 4, m 1, m 2 P(m 3 ) = w 3, w 4, w 1, w 2 P(w 3 ) = m 2, m 1, m 4, m 3 P(m 4 ) = w 4, w 3, w 2, w 1 P(w 4 ) = m 1, m 2, m 3, m 4 Ten stable matchings, e.g., μ 1 = {(m 1, w 1 ), (m 2, w 2 ), (m 3, w 3 ), (m 4, w 4 )} μ 2 = {(m 1, w 2 ), (m 2, w 1 ), (m 3, w 3 ), (m 4, w 4 )} μ 3 = {(m 1, w 1 ), (m 2, w 2 ), (m 3, w 4 ), (m 4, w 3 )} μ 4 = {(m 1, w 2 ), (m 2, w 1 ), (m 3, w 4 ), (m 4, w 3 )}

Example μ 1 men improve can t compare μ 2 μ 3 women improve μ 4

La{ce Structure Defn. A la{ce is a pareally ordered set (poset) where every two elts have a least upper bound (join) and greatest lower bound (meet). complete if every subset has meet/join. distribueve if meet/join have distribueve law.

La{ce Structure la{ce is poset where all pairs have meet/join complete if every subset has meet/join. distribueve if meet/join have distribueve law. Eg. S is subset of integers ordered by divisibility: S la{ce? complete? distribueve? {1, 2, 3} {1, 2, 3, } {0, 1, 2, 3, }

La{ce Structure The set of stable matchings pareally ordered by poineng funceon M is a complete distribueve la{ce, and Every finite complete distribueve la{ce equals the set of stable matchings for some preferences.

ComputaEonal QuesEons GeneraEng all stable matchings The number of stable matchings Finding all achievable pairs

GeneraEng All Matchings Idea: μ M Compute μ M walk through la{ce. μ 3 μ 1 μ 4 μ 2 μ 5 μ 6 μ 7 μ W

GeneraEng All Matchings P(m 1 ) = w 2, w 1, w 3 P(w 1 ) = m 1, m 3, m 2 P(m 2 ) = w 1, w 3, w 2 P(w 2 ) = m 3, m 1, m 2 P(m 3 ) = w 1, w 2, w 3 P(w 3 ) = m 1, m 3, m 2 μ M = {(m 1, w 2 ), (m 2, w 3 ), (m 3, w 1 )} μ W = {(m 1, w 1 ), (m 2, w 3 ), (m 3, w 2 )}

GeneraEng All Matchings P(m 1 ) = w 2, w 1 P(w 1 ) = m 1, m 3 P(m 2 ) = w 3 P(w 2 ) = m 3, m 1 P(m 3 ) = w 1, w 2 P(w 3 ) = m 2 First element of P(.) is M- opemal mate Last element of P(.) is W- opemal mate Can rotate from μ M to μ W

GeneraEng All Matchings P(m 1 ) = w 2, w 1 P(w 1 ) = m 1, m 3 P(m 2 ) = w 3 P(w 2 ) = m 3, m 1 P(m 3 ) = w 1, w 2 P(w 3 ) = m 2 First element of P(m) is M- opemal mate Last element of P(m) is W- opemal mate First element of P(w) is W- opemal mate Last element of P(w) is M- opemal mate

GeneraEng All Matchings P(m 1 ) = w 2, w 1 P(w 1 ) = m 1, m 3 P(m 2 ) = w 3 P(w 2 ) = m 3, m 1 P(m 3 ) = w 1, w 2 P(w 3 ) = m 2 Can rotate from μ M to μ W Each man points to 2 nd favorite woman Each woman points to last man Perform rotaeon along cycle

GeneraEng All Matchings From point μ in la{ce, to generate children: 1. Reduce preferences by eliminaeng women beuer than μ and worse than μ W from men, men beuer than μ W and worse than μ from women, and all unacceptable people 2. Generate graph according to 2 nd - best women for men and worst men μ(w) for women 3. Perform rotaeon along each cycle Polynomial in number of stable matchings.

Number of Matchings Let n = M = W and suppose P(.) = n. Number of matchings can be n! Claim [Irving and Leather 86]. Number of stable matchings can be 2 n- 1.

Number of Matchings Double market (M, W, P) with M = {m 1,,m n } and W = {w 1,,w n } create (M,W,P ) with M ={m n+1,,m n+n }, W = {w n+1,,w n+n }, and P (x n+i ) = P(x i ) +n Merge market m i and m n+i are partners, w i and w n+i are partners for men, append partner s preferences to own for women, prepend partner s preferences to own

Number of Matchings Given μ stable for (M, W, P) and μ stable for (M, W, P ), set ν(m) = μ(m) if m in M, μ (m) if m in M set λ(w) = μ(w) if w in W, μ (w) if w in M. Then ν and λ are stable so if (M, W, P) has g(n) stable matchings, then merged market has 2[g(n)] 2 and size 2n.

Number of Matchings Claim [Irving and Leather 86]. Number of stable matchings can be 2 n- 1. Prf. Apply merging to market of size 1. g(1) = 1, g(n) = 2[g(n/2)] 2 Result follows by solving recurrence.

Number of Matchings P(m 1 ) = w 1, w 2, w 3, w 4 P(w 1 ) = m 4, m 3, m 2, m 1 P(m 2 ) = w 2, w 1, w 4, w 3 P(w 2 ) = m 3, m 4, m 1, m 2 P(m 3 ) = w 3, w 4, w 1, w 2 P(w 3 ) = m 2, m 1, m 4, m 3 P(m 4 ) = w 4, w 3, w 2, w 1 P(w 4 ) = m 1, m 2, m 3, m 4

Finding All Achievable Pairs Idea: μ M Compute μ M walk down la{ce. μ 3 μ 1 μ 4 μ 2 μ 5 μ 6 μ 7 μ W

Finding All Achievable Pairs To walk down, rotate just one cycle Creates path μ M = μ 1,, μ k = μ W in la{ce Claim [Irving and Leather]. Any such path generates all achievable pairs. QuesEon. How deep is la{ce?

Finding All Achievable Pairs Claim [Irving and Leather]. Any such path generates all achievable pairs. Prf. If μ i (m) = w i w i+1 = μ i+1 (m) and there is achievable w with w i > m w > m w i+1, then can find matching μ with μ i > M μ > M μ i+1.

Finding All Achievable Mates Given woman w, Run men- proposing deferred acceptance Find worst stable mate m of w Truncate w s list just before m (make m unacceptable) Iterate unel w is single