SF2972: Game theory. Introduction to matching

Similar documents
SF2972: Game theory. Plan. The top trading cycle (TTC) algorithm: reference

Mechanism Design without Money II: House Allocation, Kidney Exchange, Stable Matching

Two-Sided Matchings: An Algorithm for Ensuring They Are Minimax and Pareto-Optimal

Lecture 7: The Principle of Deferred Decisions

Topic 1: defining games and strategies. SF2972: Game theory. Not allowed: Extensive form game: formal definition

House Allocation with Existing Tenants and the Stable Roommate Problem

MATH4994 Capstone Projects in Mathematics and Economics

Game Theory and Algorithms Lecture 3: Weak Dominance and Truthfulness

Matching Soulmates. Vanderbilt University. January 31, 2017

37 Game Theory. Bebe b1 b2 b3. a Abe a a A Two-Person Zero-Sum Game

Game Theory and Randomized Algorithms

Resource Allocation and Decision Analysis (ECON 8010) Spring 2014 Foundations of Game Theory

1 Simultaneous move games of complete information 1

Constructions of Coverings of the Integers: Exploring an Erdős Problem

Dominant and Dominated Strategies

Introduction to Game Theory

EXPLAINING THE SHAPE OF RSK

Advanced Microeconomics (Economics 104) Spring 2011 Strategic games I

Dominant and Dominated Strategies

Asynchronous Best-Reply Dynamics

Edge-disjoint tree representation of three tree degree sequences

Econ 302: Microeconomics II - Strategic Behavior. Problem Set #5 June13, 2016

SF2972 Game Theory Written Exam March 17, 2011

Computing Nash Equilibrium; Maxmin

Mixed Strategies; Maxmin

MATH 351 Fall 2009 Homework 1 Due: Wednesday, September 30

U strictly dominates D for player A, and L strictly dominates R for player B. This leaves (U, L) as a Strict Dominant Strategy Equilibrium.

CS269I: Incentives in Computer Science Lecture #20: Fair Division

CIS 2033 Lecture 6, Spring 2017

THEORY: NASH EQUILIBRIUM

Combinatorics. Chapter Permutations. Counting Problems

Stable matching for channel access control in cognitive radio systems

1 Deterministic Solutions

Finite games: finite number of players, finite number of possible actions, finite number of moves. Canusegametreetodepicttheextensiveform.

Contents. MA 327/ECO 327 Introduction to Game Theory Fall 2017 Notes. 1 Wednesday, August Friday, August Monday, August 28 6

MATH4994 Capstone Projects in Mathematics and Economics. 1.1 Criteria for fair divisions Proportionality, envy-freeness, equitability and efficiency

Summary Overview of Topics in Econ 30200b: Decision theory: strong and weak domination by randomized strategies, domination theorem, expected utility

12. 6 jokes are minimal.

RMT 2015 Power Round Solutions February 14, 2015

LESSON 2. Opening Leads Against Suit Contracts. General Concepts. General Introduction. Group Activities. Sample Deals

Arpita Biswas. Speaker. PhD Student (Google Fellow) Game Theory Lab, Dept. of CSA, Indian Institute of Science, Bangalore

A stable matching based adaptive subcarrier assignment method for multimodal fibre access networks

Non-overlapping permutation patterns

ECON 282 Final Practice Problems

Cutting a Pie Is Not a Piece of Cake

NON-OVERLAPPING PERMUTATION PATTERNS. To Doron Zeilberger, for his Sixtieth Birthday

Refinements of Sequential Equilibrium

In Response to Peg Jumping for Fun and Profit

8.F The Possibility of Mistakes: Trembling Hand Perfection

Probability (Devore Chapter Two)

Name: Final Exam May 7, 2014

CS188 Spring 2010 Section 3: Game Trees

Exercises for Introduction to Game Theory SOLUTIONS

CS188 Spring 2014 Section 3: Games

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Algorithmic Game Theory Date: 12/6/18

5. (1-25 M) How many ways can 4 women and 4 men be seated around a circular table so that no two women are seated next to each other.

How to divide things fairly

and problem sheet 7

Dynamic Games: Backward Induction and Subgame Perfection

Algorithmique appliquée Projet UNO

28,800 Extremely Magic 5 5 Squares Arthur Holshouser. Harold Reiter.

Evolutionary Game Theory and Linguistics

17. Symmetries. Thus, the example above corresponds to the matrix: We shall now look at how permutations relate to trees.

Minmax and Dominance

Theory of Probability - Brett Bernstein

STRATEGY AND COMPLEXITY OF THE GAME OF SQUARES

Two-person symmetric whist

Game Theory and Economics Prof. Dr. Debarshi Das Humanities and Social Sciences Indian Institute of Technology, Guwahati

An Intuitive Approach to Groups

Game Theory and Economics of Contracts Lecture 4 Basics in Game Theory (2)

PATTERN AVOIDANCE IN PERMUTATIONS ON THE BOOLEAN LATTICE

Lecture 2. 1 Nondeterministic Communication Complexity

Variations on the Two Envelopes Problem

MITOCW watch?v=-qcpo_dwjk4

Student Name. Student ID

Permutation Groups. Definition and Notation

2. The Extensive Form of a Game

Introduction to (Networked) Game Theory. Networked Life NETS 112 Fall 2014 Prof. Michael Kearns

Counting and Probability Math 2320

18.S34 (FALL, 2007) PROBLEMS ON PROBABILITY

The Problem. Tom Davis December 19, 2016

Advanced Automata Theory 4 Games

Citation for published version (APA): Nutma, T. A. (2010). Kac-Moody Symmetries and Gauged Supergravity Groningen: s.n.

Asymptotic Results for the Queen Packing Problem

MA 110 Homework 1 ANSWERS

Lecture 6: Basics of Game Theory

Tiling Problems. This document supersedes the earlier notes posted about the tiling problem. 1 An Undecidable Problem about Tilings of the Plane

(a) Left Right (b) Left Right. Up Up 5-4. Row Down 0-5 Row Down 1 2. (c) B1 B2 (d) B1 B2 A1 4, 2-5, 6 A1 3, 2 0, 1

Math 1111 Math Exam Study Guide


CSCI 699: Topics in Learning and Game Theory Fall 2017 Lecture 3: Intro to Game Theory. Instructor: Shaddin Dughmi

Advanced Microeconomics: Game Theory

Introduction to (Networked) Game Theory. Networked Life NETS 112 Fall 2016 Prof. Michael Kearns

1. Introduction to Game Theory

Dota2 is a very popular video game currently.

Mind Ninja The Game of Boundless Forms

Solutions to Exercises Chapter 6: Latin squares and SDRs

Section Notes 6. Game Theory. Applied Math 121. Week of March 22, understand the difference between pure and mixed strategies.

Lecture 7: Dominance Concepts

Fundamentals of Probability

Transcription:

SF2972: Game theory Introduction to matching The 2012 Nobel Memorial Prize in Economic Sciences: awarded to Alvin E. Roth and Lloyd S. Shapley for the theory of stable allocations and the practice of market design

The related branch of game theory is often referred to as matching theory, which studies the design and performance of platforms for transactions between agents. Roughly speaking, it studies who interacts with whom, and how: which applicant gets which job, which students go to which universities, which donors give organs to which patients, and so on. Mark Voorneveld Game theory SF2972, Extensive form games 1/35

Plan Many methods for finding desirable allocations in matching problems are variants of two algorithms: 1 The deferred acceptance algorithm 2 The top trading cycle algorithm For each of the two algorithms, I will do the following: State the algorithm. State and prove nice properties of outcomes generated by the algorithm. Solve an example using the algorithm. Describe application(s). Give you related homework exercises. Mark Voorneveld Game theory SF2972, Extensive form games 2/35

The deferred acceptance (DA) algorithm: reference D. Gale and L.S. Shapley, 1962, College Admissions and the Stability of Marriage. American Mathematical Monthly 69, 9 15. Only seven pages...... and, yes, stability of marriage! Mark Voorneveld Game theory SF2972, Extensive form games 3/35

The deferred acceptance (DA) algorithm: marriage problem Men and women have strict preferences over partners of the opposite sex You may prefer staying single to marrying a certain partner A match is a set of pairs of the form (m, w), (m, m), or (w, w) such that each person has exactly one partner. Person i is unmatched if the match includes (i, i). i is acceptable to j if j prefers i to being unmatched. Given a proposed match, a pair (m, w) is blocking if both prefer each other to the person they re matched with. m prefers w to his match-partner w prefers m to her match-partner A match is unstable if someone has an unacceptable partner or if there is a blocking pair. Otherwise, it is stable. A match is man-optimal if it is stable and there is no other stable match that some man prefers. Woman-optimal analogously. Mark Voorneveld Game theory SF2972, Extensive form games 4/35

The deferred acceptance (DA) algorithm: statement Input: A nonempty, finite set M of men and W of women. Each man (woman) ranks acceptable women (men) from best to worst. DA algorithm, men proposing: 1 Men are not allowed to propose to women that find them unacceptable. Other than that: 2 Each man proposes to the highest ranked woman on his list. 3 Women hold at most one offer (her most preferred acceptable proposer), rejecting all others. 4 Each rejected man removes the rejecting woman from his list. 5 If there are no new rejections, stop. Otherwise, iterate. 6 After stopping, implement proposals that have not been rejected. Remarks: 1 DA algorithm, women proposing: switch roles! 2 Deferred acceptance: receiving side defers final acceptance of proposals until the very end. Mark Voorneveld Game theory SF2972, Extensive form games 5/35

The deferred acceptance (DA) algorithm: nice properties 1 The deferred acceptance algorithm ends with a stable match. Ends: the set of women a man can propose to does not increase and decreases for at least one (rejected) man. By construction, no person is matched to an unacceptable candidate. No (m, w) can be a blocking pair: if m strictly prefers w to his current match, he must have proposed to her and been rejected in favor of a candidate that w liked better. As the algorithm goes on, w can only do better. So w finds her match better than m. 2 This match is man-optimal (woman-pessimal). 3 Men have no incentives to lie about their preferences, women might. Strategy-proof for men See homework exercise 4 There is no mechanism that always ends in a stable match and that is strategy-proof for all participants. Of course, similar results apply if women propose. Mark Voorneveld Game theory SF2972, Extensive form games 6/35

The deferred acceptance (DA) algorithm: example For convenience M = W = 4. All partners of opposite sex are acceptable. Ranking matrix: w 1 w 2 w 3 w 4 m 1 1, 3 2, 3 3, 2 4, 3 m 2 1, 4 4, 1 3, 3 2, 2 m 3 2, 2 1, 4 3, 4 4, 1 m 4 4, 1 2, 2 3, 1 1, 4 Interpretation: entry (1, 3) in the first row and first column indicates that m 1 ranks w 1 first among the women and that w 1 ranks m 1 third among the men. Mark Voorneveld Game theory SF2972, Extensive form games 7/35

The deferred acceptance (DA) algorithm: example w 1 w 2 w 3 w 4 m 1 1, 3 2, 3 3, 2 4, 3 m 2 1, 4 4, 1 3, 3 2, 2 m 3 2, 2 1, 4 3, 4 4, 1 m 4 4, 1 2, 2 3, 1 1, 4 m 1 m 2 m 3 w 1 w 2 w 3 m 4 w 4 w 1 is the only person to receive multiple proposals; she compares m 1 (rank 3) with m 2 (rank 4) and rejects m 2. Strike this entry from the matrix and iterate. Mark Voorneveld Game theory SF2972, Extensive form games 8/35

The deferred acceptance (DA) algorithm: example w 1 w 2 w 3 w 4 m 1 1, 3 2, 3 3, 2 4, 3 m 2 1, 4 4, 1 3, 3 2, 2 m 3 2, 2 1, 4 3, 4 4, 1 m 4 4, 1 2, 2 3, 1 1, 4 m 1 m 2 m 3 w 1 w 2 w 3 m 4 w 4 w 4 is the only person to receive multiple proposals; she compares m 2 (rank 2) with m 4 (rank 4) and rejects m 4. Strike this entry from the matrix and iterate. Mark Voorneveld Game theory SF2972, Extensive form games 9/35

The deferred acceptance (DA) algorithm: example w 1 w 2 w 3 w 4 m 1 1, 3 2, 3 3, 2 4, 3 m 2 1, 4 4, 1 3, 3 2, 2 m 3 2, 2 1, 4 3, 4 4, 1 m 4 4, 1 2, 2 3, 1 1, 4 m 1 m 2 m 3 w 1 w 2 w 3 m 4 w 4 w 2 is the only person to receive multiple proposals; she compares m 3 (rank 4) with m 4 (rank 2) and rejects m 3. Strike this entry from the matrix and iterate. Mark Voorneveld Game theory SF2972, Extensive form games 10/35

The deferred acceptance (DA) algorithm: example w 1 w 2 w 3 w 4 m 1 1, 3 2, 3 3, 2 4, 3 m 2 1, 4 4, 1 3, 3 2, 2 m 3 2, 2 1, 4 3, 4 4, 1 m 4 4, 1 2, 2 3, 1 1, 4 m 1 m 2 m 3 w 1 w 2 w 3 m 4 w 4 w 1 is the only person to receive multiple proposals; she compares m 1 (rank 3) with m 3 (rank 2) and rejects m 1. Strike this entry from the matrix and iterate. Mark Voorneveld Game theory SF2972, Extensive form games 11/35

The deferred acceptance (DA) algorithm: example w 1 w 2 w 3 w 4 m 1 1, 3 2, 3 3, 2 4, 3 m 2 1, 4 4, 1 3, 3 2, 2 m 3 2, 2 1, 4 3, 4 4, 1 m 4 4, 1 2, 2 3, 1 1, 4 m 1 m 2 m 3 w 1 w 2 w 3 m 4 w 4 w 2 is the only person to receive multiple proposals; she compares m 1 (rank 3) with m 4 (rank 2) and rejects m 1. Strike this entry from the matrix and iterate. Mark Voorneveld Game theory SF2972, Extensive form games 12/35

The deferred acceptance (DA) algorithm: example w 1 w 2 w 3 w 4 m 1 1, 3 2, 3 3, 2 4, 3 m 2 1, 4 4, 1 3, 3 2, 2 m 3 2, 2 1, 4 3, 4 4, 1 m 4 4, 1 2, 2 3, 1 1, 4 m 1 m 2 m 3 w 1 w 2 w 3 m 4 w 4 No rejections; the algorithm stops with stable match (m 1, w 3 ), (m 2, w 4 ), (m 3, w 1 ), (m 4, w 2 ). Mark Voorneveld Game theory SF2972, Extensive form games 13/35

DA with men proposing: optimal for men We claimed that the men-proposing DA algorithm ends with a stable matching that is optimal for men: each man is at least as well off under this match as under any other stable matching. (Analogously, it is the worst/ pessimal stable matching for women). Why? Proof strategy: Call a woman possible for a man if they are partners in some stable matching. By induction on the stages of the DA algorithm, show that in each round, men are only rejected by impossible women. Since men propose to women in order of preference, each man ends up with his first/best possible partner. Mark Voorneveld Game theory SF2972, Extensive form games 14/35

Proof Assume: at no earlier stage has a man been rejected by a woman that is possible. At the current stage, suppose woman w rejects man m in favor of man m. Then w is impossible for m: Suppose we try to find a stable match pairing m to w. Then m must be matched to someone else. Not with a woman better than w: since m made an offer to w, all women he likes more must have refused him. By induction, these are impossible for him! Not with a woman worse than w: then m and w would elope as they would rather be with each other. Mark Voorneveld Game theory SF2972, Extensive form games 15/35

Rural hospital theorem A marriage problem may have several stable matchings. However: Theorem (Rural hospital theorem) The set of men and women who remain single is the same in every stable matching. This is called the rural hospital theorem : in the US, the National Resident Matching Program uses deferred acceptance to match physicians with hospitals. Since hospitals in sparsely populated areas had trouble filling their positions, they wondered whether changing the algorithm to some other stable matching would help them fill the empty spots. Mark Voorneveld Game theory SF2972, Extensive form games 16/35

Proof Let M DA, W DA be the sets of men and women matched in the man-optimal (woman-pessimal) stable matching: not-single. Let M, W be the sets of men and women matched in another stable matching. Any man in M must also be matched in the man-optimal stable matching: M M DA and M M DA. Any woman matched in the woman-pessimal stable matching must also be matched in W : W DA W and W DA W. Also, M DA = W DA and M = W. So M = M DA = W DA = W. So M = M DA and W = W DA. Mark Voorneveld Game theory SF2972, Extensive form games 17/35

DA with men proposing: men shouldn t lie In the men-proposing DA algorithm, men cannot benefit from lying about their preferences. Why? Proof strategy: Fix reported preferences of all women and all but one man. Show that any profile of reported preferences for this man can be weakly improved upon by a sequence of changes ending with a truthful report. Mark Voorneveld Game theory SF2972, Extensive form games 18/35

Proof Suppose the man m states preferences leading to a match µ that pairs him to woman w (if he stays single, that is worst anyway, so truthful reporting cannot harm). The following changes weakly improve upon the result: Report that w is his only acceptable candidate. Match µ remains stable (Only m changed preferences; earlier w and possibly others were acceptable, now only w, so there are fewer candidates for blocking pairs.) By the rural hospital theorem, m must be matched, and so must be paired with w. Report truthfully, but truncate at w. DA cannot result in a match where m is single: such a matching was blocked in the previous case and with m s new preferences there are even more candidates for blocking pairs. Report truthfully. This won t change the DA outcome, since convergence in the previous step was independent of what the man could have said after w. Mark Voorneveld Game theory SF2972, Extensive form games 19/35

Homework exercise 1 Consider the ranking matrix w 1 w 2 w 3 w 4 w 5 m 1 1, 3 3, 1 2, 1 5, 1 4, 2 m 2 1, 2 2, 2 x, x 3, 2 4, 1 m 3 3, 1 2, 3 1, 2 x, x 4, x Here, an x indicates an unacceptable partner. For instance, m 3 ranks w 5 fourth, but w 5 would rather be single than be matched with m 3. (a) Find a stable matching using the men-proposing DA algorithm. (b) Find a stable matching using the women-proposing DA algorithm. (c) Are there other stable matchings? Mark Voorneveld Game theory SF2972, Extensive form games 20/35

Homework exercise 2 Consider the ranking matrix w 1 w 2 m 1 1, 2 2, 1 m 2 2, 1 1, 2 (a) Find a stable matching using the men-proposing DA algorithm. (b) Find a stable matching using the women-proposing DA algorithm. (c) Suppose that w 1 lies about her preferences and says that she only finds m 2 acceptable. What is the outcome of the men-proposing DA algorithm now? Verify that both women are better off than under (a): it may pay for the women to lie! Mark Voorneveld Game theory SF2972, Extensive form games 21/35

Homework exercise 3: stability vs strategy-proofness Prove: if a mechanism always picks a stable matching (given reported preferences), then in the marriage problem of the previous exercise there is always some agent who can benefit from lying about his or her preferences. Hint: Verify: The matchings you found in (a) and (b) are the only stable ones. If the former is chosen, let w 1 lie as in (c) and show that the resulting problem has only one stable matching, which is better for w 1. Analogously (note the problem s symmetry), if the latter is chosen, m 1 can profitably lie about his preferences. Mark Voorneveld Game theory SF2972, Extensive form games 22/35

The college admissions problem The original motivation for the paper of Gale and Shapley. n applicants, m colleges, q i the quota of college i each applicant strictly ranks (no ties!) colleges, each college strictly ranks applicants as in the marriage problem, applicants may leave out unacceptable colleges and vice versa a matching of applicants to colleges can be blocked by an applicant a and a college c if a prefers c to her current match c prefers a to one of its current matches a matching is stable if all matched applicants and colleges find each other acceptable and there is no blocking pair. a stable assignment is (student) optimal if each applicant is at least as well off under it as under any other stable assignment. Mark Voorneveld Game theory SF2972, Extensive form games 23/35

Deferred acceptance for college admission 1 If a college finds a student unacceptable, the student is not allowed to apply there. 2 First, all students apply to the college of their first choice. 3 A college with quota q puts on a waiting list the q applicants it ranks highest, or all applicants if there are fewer than q, and rejects the rest. 4 Rejected applicants apply to their second choice and again each college keeps the (at most) q favorite applicants on its waiting list and rejects the rest. 5 The algorithm terminates when every applicant is either on a waiting list or has been rejected by every college to which (s)he is willing and permitted to apply. 6 At this stage, the colleges accept the students on their waiting list. Mark Voorneveld Game theory SF2972, Extensive form games 24/35

Stability and optimality in college admission This deferred acceptance algorithm gives an allocation that is both stable and optimal: 1 Stability follows as in the marriage problem: if applicant α would rather go to college C, then either that college does not allow α to apply, or it must have rejected α because the candidates on the waiting list are better. 2 Optimality: each applicant is at least as well off under the assignment given by the deferred acceptance algorithm as under any other stable assignment. (Proof as before in the marriage problem) Mark Voorneveld Game theory SF2972, Extensive form games 25/35

Roommate problem: stable matchings don t always exist In the marriage and college admissions problem, stable matchings always existed. This is not necessarily the case in other matching problems. Gale and Shapley illustrate this with a roommate problem. A group of students must be matched in pairs to share dormitory rooms. Example: Four students: α, β, γ, and δ. α ranks β first, β ranks γ first, γ ranks α first, all three rank δ last. Regardless of δ s preferences, there is no stable matching: whoever shares a room with δ wants to change and can find an eager friend among the other two. Mark Voorneveld Game theory SF2972, Extensive form games 26/35

The top trading cycle (TTC) algorithm: reference L.S. Shapley and H. Scarf, 1974, On Cores and Indivisibility. Journal of Mathematical Economics 1, 23 37. The algorithm is described in section 6, p. 30, and attributed to David Gale. Mark Voorneveld Game theory SF2972, Extensive form games 27/35

The top trading cycle (TTC) algorithm: statement Input: Each of n N agents owns an indivisible good (a house) and has strict preferences over all houses. Convention: agent i initially owns house h i. Question: Can the agents benefit from swapping houses? TTC algorithm: 1 Each agent i points to her most preferred house (possibly i s own); each house points back to its owner. 2 This creates a directed graph. In this graph, identify cycles. Finite: cycle exists. Strict preferences: each agent is in at most one cycle. 3 Give each agent in a cycle the house she points at and remove her from the market with her assigned house. 4 If unmatched agents/houses remain, iterate. Mark Voorneveld Game theory SF2972, Extensive form games 28/35

The top trading cycle (TTC) algorithm: nice properties The TTC assignment is such that no subset of owners can make all of its members better off by exchanging the houses they initially own in a different way. Suppose a subset S can make all its members better off. S contains no members from the first cycle in TTC: those already get their favorite. S contains no members from the second cycle in TTC: they get the best of what s left after round 1, so making them better off requires a member of the first cycle, but we already ruled out that those were in S. Etc. Mark Voorneveld Game theory SF2972, Extensive form games 29/35

The top trading cycle (TTC) algorithm: nice properties It is never advantageous to an agent to lie about preferences if the TTC algorithm is used. Consider an agent who reports truthfully and gets a house in round t. No change in the report can give the agent a house that was assigned in earlier rounds (those cycles remain, no matter what the agent says). And the agent gets the best of what s left by reporting truthfully. Mark Voorneveld Game theory SF2972, Extensive form games 30/35

The top trading cycle (TTC) algorithm: example Agents ranking from best (left) to worst (right): 1 : (h 3, h 2, h 4, h 1 ) 2 : (h 4, h 1, h 2, h 3 ) 3 : (h 1, h 4, h 3, h 2 ) 4 : (h 3, h 2, h 1, h 4 ) 1 2 3 h 1 h 2 h 3 4 h 4 Cycle: (1, h 3, 3, h 1, 1). So: 1 get h 3 and 3 gets h 1. Remove them and iterate. Mark Voorneveld Game theory SF2972, Extensive form games 31/35

The top trading cycle (TTC) algorithm: example Only agents 2 and 4 left with updated preferences: 2 : (h 4, h 2 ) 4 : (h 2, h 4 ) 2 4 h 2 h 4 Cycle: (2, h 4, 4, h 2, 2). So: 2 gets h 4 and 4 gets h 2. Done! Final match: (1, h 3 ), (2, h 4 ), (3, h 1 ), (4, h 2 ). Mark Voorneveld Game theory SF2972, Extensive form games 32/35

The top trading cycle (TTC) algorithm: application 1 A. Abdulkadiroğlu and T. Sönmez, 2003. School Choice: A Mechanism Design Approach. American Economic Review 93, 729 747. How to assign children to schools subject to priorities for siblings and distance? Input: Students submit strict preferences over schools Schools submit strict preferences over students based on priority criteria and (if necessary) a random number generator Modified TTC algorithm: 1 Each remaining student points at her most preferred unfilled school; each unfilled school points at its most preferred remaining student. 2 Cycles are identified and students in cycles are matched to the school they point at. 3 Remove assigned students and full schools. 4 If unmatched students remain, iterate. Mark Voorneveld Game theory SF2972, Extensive form games 33/35

The top trading cycle (TTC) algorithm: application 2 A.E. Roth, T. Sönmez, M.U. Ünver, 2004. Kidney Exchange. Quarterly Journal of Economics 119, 457 488. A case with patient-donor pairs: a patient in need of a kidney and a donor (family, friend) who is willing to donate one. Complications arise due to incompatibility (blood/tissue) groups, etc. So look at trading cycles: patient 1 might get the kidney of donor 2, if patient 2 gets the kidney of donor 1, etc. Mark Voorneveld Game theory SF2972, Extensive form games 34/35

The top trading cycle (TTC) algorithm: homework exercise 4 Apply the TTC algorithm to the following case: 1 : (h 5, h 2, h 1, h 3, h 4 ) 2 : (h 5, h 4, h 3, h 1, h 2 ) 3 : (h 4, h 2, h 3, h 5, h 1 ) 4 : (h 2, h 1, h 5, h 3, h 4 ) 5 : (h 2, h 4, h 1, h 5, h 3 ) Mark Voorneveld Game theory SF2972, Extensive form games 35/35