版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年拱墅区事业单位考试题目及答案
- 2025年合肥报班事业单位笔试及答案
- 2025年中国邮政柜台岗笔试及答案
- 2025年江西邮政笔试及答案
- 2025年航海技术事业编考试真题及答案
- 2025年华为德科gts在线笔试及答案
- 2025年安乡县事业编考试真题及答案
- 2025年年梧州市事业单位考试及答案
- XX中学团委书记在2026年春季学期入团积极分子培训开班仪式上的动员讲话与培训要求说明
- 2026四川治蜀兴川教育管理有限公司招聘7人备考题库含答案详解(夺分金卷)
- GB/T 19894-2025数码照相机光电转换函数(OECFs)的测量方法
- 2025年北京市物业管理行业市场深度分析及发展前景预测报告
- 旅游景区商户管理办法
- 好孩子公司管理制度
- 认知症专区管理制度
- 国家职业技术技能标准 6-23-03-15 无人机装调检修工 人社厅发202192号
- 乐理考试古今音乐对比试题及答案
- 变电站综合自动化课件 二次回路识图
- 水泥窑协同处置危废可行性研究报告
- 家用太阳能与风能发电系统在节约电力资源中的应用研究
- DB45T 2473-2022 消防设施维护保养规程
评论
0/150
提交评论