版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、1,Salute Lloyd Shapley,Lloyd Stowell Shapley (June 2, 1923 March 12, 2016,1980,Nobel Memorial Prize in Economic Sciences(2012,Stable Matching,3,Matching Residents to Hospitals,Goal. Given a set of preferences among hospitals and medical school students, design a self-reinforcing admissions process.
2、Unstable pair: applicant x and hospital y are unstable if: x prefers y to its assigned hospital. y prefers x to one of its admitted students. Stable assignment. Assignment with no unstable pairs. Natural and desirable condition. Individual self-interest will prevent any applicant/hospital deal from
3、being made,4,Stable Matching Problem,Goal. Given n men and n women, find a suitable matching. Participants rate members of opposite sex. Each man lists women in order of preference from best to worst. Each woman lists men in order of preference from best to worst,Zeus,Amy,Clare,Bertha,Yancey,Bertha,
4、Clare,Amy,Xavier,Amy,Clare,Bertha,1st,2nd,3rd,Mens Preference Profile,favorite,least favorite,Clare,Xavier,Zeus,Yancey,Bertha,Xavier,Zeus,Yancey,Amy,Yancey,Zeus,Xavier,1st,2nd,3rd,Womens Preference Profile,favorite,least favorite,5,Stable Matching Problem,Perfect matching: everyone is matched monoga
5、mously. Each man gets exactly one woman. Each woman gets exactly one man. Stability: no incentive for some pair of participants to undermine assignment by joint action. In matching M, an unmatched pair m-w is unstable if man m and woman w prefer each other to current partners. Unstable pair m-w coul
6、d each improve by eloping. Stable matching: perfect matching with no unstable pairs. Stable matching problem. Given the preference lists of n men and n women, find a stable matching if one exists,6,Stable Matching Problem,Q. Is assignment X-C, Y-B, Z-A stable,Zeus,Amy,Clare,Bertha,Yancey,Bertha,Clar
7、e,Amy,Xavier,Amy,Clare,Bertha,1st,2nd,3rd,Mens Preference Profile,Clare,Xavier,Zeus,Yancey,Bertha,Xavier,Zeus,Yancey,Amy,Yancey,Zeus,Xavier,1st,2nd,3rd,Womens Preference Profile,favorite,least favorite,favorite,least favorite,7,Stable Matching Problem,Q. Is assignment X-C, Y-B, Z-A stable? A. No. Be
8、rtha and Xavier will hook up,Zeus,Amy,Clare,Bertha,Yancey,Bertha,Clare,Amy,Xavier,Amy,Clare,Bertha,Clare,Xavier,Zeus,Yancey,Bertha,Xavier,Zeus,Yancey,Amy,Yancey,Zeus,Xavier,1st,2nd,3rd,1st,2nd,3rd,favorite,least favorite,favorite,least favorite,Mens Preference Profile,Womens Preference Profile,8,Sta
9、ble Matching Problem,Q. Is assignment X-A, Y-B, Z-C stable? A. Yes,Zeus,Amy,Clare,Bertha,Yancey,Bertha,Clare,Amy,Xavier,Amy,Clare,Bertha,Clare,Xavier,Zeus,Yancey,Bertha,Xavier,Zeus,Yancey,Amy,Yancey,Zeus,Xavier,1st,2nd,3rd,1st,2nd,3rd,favorite,least favorite,favorite,least favorite,Mens Preference P
10、rofile,Womens Preference Profile,9,Stable Roommate Problem,Q. Do stable matchings always exist? A. Not obvious. Stable roommate problem. 2n people; each person ranks others from 1 to 2n-1. Assign roommate pairs so that no unstable pairs. Observation. Stable matchings do not always exist for stable r
11、oommate problem,B,Bob,Chris,Adam,C,A,B,D,D,Doofus,A,B,C,D,C,A,1st,2nd,3rd,A-B, C-D B-C unstableA-C, B-D A-B unstableA-D, B-C A-C unstable,10,Propose-and-reject algorithm. Gale-Shapley 1962 Intuitive method that guarantees to find a stable matching,Propose-And-Reject Algorithm,Initialize each person
12、to be free. while (some man is free and hasnt proposed to every woman) Choose such a man m w = 1st woman on ms list to whom m has not yet proposed if (w is free) assign m and w to be engaged else if (w prefers m to her fianc m) assign m and w to be engaged, and m to be free else w rejects m,11,Proof
13、 of Correctness: Termination,Observation 1. Men propose to women in decreasing order of preference. Observation 2. Once a woman is matched, she never becomes unmatched; she only trades up. Claim. Algorithm terminates after at most n2 iterations of while loop. Pf. Each time through the while loop a m
14、an proposes to a new woman. There are only n2 possible proposals.,n(n-1) + 1 proposals required,12,Proof of Correctness: Perfection,Claim. All men and women get matched. Pf. (by contradiction) Suppose, for sake of contradiction, that Zeus is not matched upon termination of algorithm. Then some woman
15、, say Amy, is not matched upon termination. By Observation 2, Amy was never proposed to. But, Zeus proposes to everyone, since he ends up unmatched.,13,Claim. No unstable pairs. Pf. (by contradiction) Suppose A-Z is an unstable pair: each prefers each other to partner in Gale-Shapley matching S*. Ca
16、se 1: Z never proposed to A. Z prefers his GS partner to A. A-Z is stable. Case 2: Z proposed to A. A rejected Z (right away or later) A prefers her GS partner to Z. A-Z is stable. In either case A-Z is stable, a contradiction.,Proof of Correctness: Stability,Bertha-Zeus,Amy-Yancey,S,.,men propose i
17、n decreasingorder of preference,women only trade up,14,Summary,Stable matching problem. Given n men and n women, and their preferences, find a stable matching if one exists. Gale-Shapley algorithm. Guarantees to find a stable matching for any problem instance. Q. How to implement GS algorithm effici
18、ently? Q. If there are multiple stable matchings, which one does GS find,15,Efficient Implementation,Efficient implementation. We describe O(n2) time implementation. Representing men and women. Assume men are named 1, , n. Assume women are named 1, , n. Engagements. Maintain a list of free men, e.g.
19、, in a queue. Maintain two arrays wifem, and husbandw. set entry to 0 if unmatched if m matched to w then wifem=w and husbandw=m Men proposing. For each man, maintain a list of women, ordered by preference. Maintain an array countm that counts the number of proposals made by man m,16,Efficient Imple
20、mentation,Women rejecting/accepting. Does woman w prefer man m to man m? For each woman, create inverse of preference list of men. Constant time access for each query after O(n) preprocessing,for i = 1 to n inverseprefi = i,Amy prefers man 3 to 6since inverse3 inverse6,2,7,17,Understanding the Solut
21、ion,Q. For a given problem instance, there may be several stable matchings. Do all executions of Gale-Shapley yield the same stable matching? If so, which one? An instance with two stable matchings. A-X, B-Y, C-Z. A-Y, B-X, C-Z,Zeus,Yancey,Xavier,A,B,A,1st,B,A,B,2nd,C,C,C,3rd,Clare,Bertha,Amy,X,X,Y,
22、1st,Y,Y,X,2nd,Z,Z,Z,3rd,18,Understanding the Solution,Q. For a given problem instance, there may be several stable matchings. Do all executions of Gale-Shapley yield the same stable matching? If so, which one? Def. Man m is a valid partner of woman w if there exists some stable matching in which they are matched. Man-optimal assignment. Each man receives best valid partner. Claim. All executions of GS yield man-optimal assi
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026村社区面试题及答案
- 2026党建办文秘面试题及答案
- 2026年保定高考化学学科全程复习规划(新高考专用)
- 2026风控部面试题及答案
- 2026搞笑的二货面试题及答案
- 2026沟通类面试题库及答案
- 2026广播社团面试题及答案大全
- 2026年招小学教师试题及答案
- 公卫考试试题及答案
- 管道消防试题及答案
- 天津英华国际学校人教版五年级下册数学期末测试题
- 北师大版九年级数学下册 第二章 二次函数复习题(课件)
- 江苏省苏州相城区苏州大学实验学校2023-2024学年小升初七年级上学期分班考英语试卷(含答案)
- 清华大学实验室安全教育考试题库(全)
- 西安交通大学工程热力学考研考点精编(含历年真题解析)
- SL703-2015灌溉与排水工程施工质量评定表
- DB1410-T 110-2020 地震宏观观测网建设和管理要求
- 七年级数学期中考试质量分析
- 叠合板施工技术交底57948
- 航理ppt课件 7-1概述及航空活塞动力装置-1
- 江西省食品小作坊登记申请表优质资料
评论
0/150
提交评论