版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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: nx prefers y to its assigned hospital. ny prefers x to one of its admitted students. Stable assignment. Assignment with no unstable pairs. nNatural and desirable condition. nIndividual self-interest will prevent any applicant/hospital deal
3、 from being made. 4 Stable Matching Problem Goal. Given n men and n women, find a suitable matching. nParticipants rate members of opposite sex. nEach man lists women in order of preference from best to worst. nEach woman lists men in order of preference from best to worst. ZeusAmyClareBertha Yancey
4、BerthaClareAmy XavierAmyClareBertha 1st2nd3rd Mens Preference Profile favoriteleast favorite ClareXavierZeusYancey BerthaXavierZeusYancey AmyYanceyZeusXavier 1st2nd3rd Womens Preference Profile favoriteleast favorite 5 Stable Matching Problem Perfect matching: everyone is matched monogamously. nEach
5、 man gets exactly one woman. nEach woman gets exactly one man. Stability: no incentive for some pair of participants to undermine assignment by joint action. nIn matching M, an unmatched pair m-w is unstable if man m and woman w prefer each other to current partners. nUnstable pair m-w could each im
6、prove 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? ZeusAmyClareBertha YanceyBerthaClareAmy XavierA
7、myClareBertha 1st2nd3rd Mens Preference Profile ClareXavierZeusYancey BerthaXavierZeusYancey AmyYanceyZeusXavier 1st2nd3rd Womens Preference Profile favoriteleast favoritefavoriteleast favorite 7 Stable Matching Problem Q. Is assignment X-C, Y-B, Z-A stable? A. No. Bertha and Xavier will hook up. Ze
8、usAmyClareBertha YanceyBerthaClareAmy XavierAmyClareBertha ClareXavierZeusYancey BerthaXavierZeusYancey AmyYanceyZeusXavier 1st2nd3rd1st2nd3rd favoriteleast favoritefavoriteleast favorite Mens Preference ProfileWomens Preference Profile 8 Stable Matching Problem Q. Is assignment X-A, Y-B, Z-C stable
9、? A. Yes. ZeusAmyClareBertha YanceyBerthaClareAmy XavierAmyClareBertha ClareXavierZeusYancey BerthaXavierZeusYancey AmyYanceyZeusXavier 1st2nd3rd1st2nd3rd favoriteleast favoritefavoriteleast favorite Mens Preference ProfileWomens Preference Profile 9 Stable Roommate Problem Q. Do stable matchings al
10、ways exist? A. Not obvious. Stable roommate problem. n2n people; each person ranks others from 1 to 2n-1. nAssign roommate pairs so that no unstable pairs. Observation. Stable matchings do not always exist for stable roommate problem. B Bob Chris AdamC A B D D DoofusABC D C A 1st2nd3rd A-B, C-D B-C
11、unstable A-C, B-D A-B unstable A-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 to be free. while (some man is free and hasnt proposed to every woman) Choose such a
12、 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 of Correctness: Termination Observation 1. Men propose to women in decreasing order
13、 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 man proposes to a new woman. There are only n2 possible proposals. Wyatt Victor 1st A
14、 B 2nd C D 3rd C B AZeus Yancey XavierC D A B B A D C 4th E E 5th A D E E D C B E Bertha Amy 1st W X 2nd Y Z 3rd Y X VErika Diane ClareY Z V W W V Z X 4th V W 5th V Z X Y Y X W Z n(n-1) + 1 proposals required 12 Proof of Correctness: Perfection Claim. All men and women get matched. Pf. (by contradic
15、tion) nSuppose, for sake of contradiction, that Zeus is not matched upon termination of algorithm. nThen some woman, say Amy, is not matched upon termination. nBy Observation 2, Amy was never proposed to. nBut, Zeus proposes to everyone, since he ends up unmatched. 13 Claim. No unstable pairs. Pf. (
16、by contradiction) nSuppose A-Z is an unstable pair: each prefers each other to partner in Gale-Shapley matching S*. nCase 1: Z never proposed to A. Z prefers his GS partner to A. A-Z is stable. nCase 2: Z proposed to A. A rejected Z (right away or later) A prefers her GS partner to Z. A-Z is stable.
17、 nIn either case A-Z is stable, a contradiction. Proof of Correctness: Stability Bertha-Zeus Amy-Yancey S* . . . men propose in decreasing order 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.
18、 Gale-Shapley algorithm. Guarantees to find a stable matching for any problem instance. Q. How to implement GS algorithm efficiently? Q. If there are multiple stable matchings, which one does GS find? 15 Efficient Implementation Efficient implementation. We describe O(n2) time implementation. Repres
19、enting men and women. nAssume men are named 1, , n. nAssume women are named 1, , n. Engagements. nMaintain a list of free men, e.g., in a queue. nMaintain two arrays wifem, and husbandw. set entry to 0 if unmatched if m matched to w then wifem=w and husbandw=m Men proposing. nFor each man, maintain
20、a list of women, ordered by preference. nMaintain an array countm that counts the number of proposals made by man m. 16 Efficient Implementation Women rejecting/accepting. nDoes woman w prefer man m to man m? nFor each woman, create inverse of preference list of men. nConstant time access for each q
21、uery after O(n) preprocessing. for i = 1 to n inverseprefi = i Pref 1st 8 2nd 7 3rd 3 4th 4 5th 1526 6th7th8th Inverse4th2nd8th6th5th7th1st3rd 12345678 Amy Amy Amy prefers man 3 to 6 since inverse3 inverse6 27 17 Understanding the Solution Q. For a given problem instance, there may be several stable
22、 matchings. Do all executions of Gale- Shapley yield the same stable matching? If so, which one? An instance with two stable matchings. nA-X, B-Y, C-Z. nA-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 1st Y Y X 2nd Z Z Z 3rd 18 Understanding the Solution Q. For
23、 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 assignment, which
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026山东日照市消防救援支队政府专职消防队员招收备考题库参考答案详解
- 2026河南理工大学招聘备考题库及完整答案详解
- 2026浙江温州市苍南县人才发展有限公司招聘市场化工作人员1人备考题库及参考答案详解一套
- 2026浙江宁波东方海纳人力资源服务有限公司招聘6人备考题库及一套答案详解
- 2026浙江金华市义乌市福田街道强村公司招聘1人备考题库完整答案详解
- 2026广西百色市西林县第三初级中学招聘后勤人员1人备考题库及答案详解一套
- 2026四川创锦发展控股集团有限公司招聘项目负责人的1人备考题库及答案详解(名校卷)
- 2026山东日照市消防救援支队政府专职消防队员招收备考题库及答案详解(考点梳理)
- 2026浙江温州市少年宫招聘合同制员工1人备考题库附答案详解(完整版)
- 2026云南昆明安琪儿妇产医院招聘17人备考题库完整答案详解
- DB34∕T 4743-2024 大型群众性活动保安服务规范
- 初中物理欧姆定律(教学课件)2025-2026学年初中物理人教版(2024)九年级全一册
- 学校教辅选用管理委员会成立方案
- 肿瘤患者的营养评估及指导
- 成都存量房合同(标准版)
- 环境自适应材料开发-洞察与解读
- 小学科学国培汇报
- 服装生产线平衡分析与仿真优化研究
- 《财经应用文写作》课件-第八章 经济评论
- 采血飞针技术培训课件
- 2025国家义务教育质量监测小学德育测评估考试试题库及答案
评论
0/150
提交评论