Stable Matching: Gale and Shapley Algorithm
来源:互联网 发布:怎么把mac升级到10.11 编辑:程序博客网 时间:2024/06/18 06:12
讲解下该问题 ( from Algorithm Design written by Jon and Eva)
Origin:
双方根据自己的喜好配对
Formulating the Problem:
如果以applicant 和 company 举例,company 会招很多applicant, 并且company 的slot 比applicant多. 所以此时我们简化问题。
bare-bones version: 双方都只能和对方其中一个配对。
preferences: each member in M ranks each member in W, no ties
Definition
Matching S: a set of ordered pairs, with the property that each member of M and each member of W appears in at most one pair in S
Perfect matching S: each member of M and each member of W appears in exactly one pair in S
简单来说,matching S 可以只包含部分元素(如果两边个数不等), 但stable matching 需要两边数目一样。
Stable Matching: (1) perfect matching (2) no instability with respect to S 首先一定要perfect, 不然没法判断有没有stable 的pair
一个matching中可以有多个stable matching (书中最简单的例子,每边2个,只要左边的人选的都是第一志愿,他们肯定不会分开;同理,还可以是右边所有人)
Stable Matching
1. stable matching exists for every set of preference list ( 一定存在)
- Stable Matching: Gale and Shapley Algorithm
- Stable Matching (Gale Sharpley Algorithm)
- Stable Matching Problem —— Gale Shapley算法
- Gale-Shapley algorithm 博弈算法
- The Gale-Shapley Algorithm 学习笔记
- poj 3487 zoj 3120 The Stable Marriage Problem 延迟认可算法(Gale-Shapley算法)
- POJ 3487 The Stable Marriage Problem(Gale-Shapley算法求稳定婚姻)
- poj3487(Gale-Shapley算法) The Stable Marriage Problem(稳定婚姻问题)
- [算法]Gale-Shapley Algorithm-稳定匹配算法的设计、实现与探讨(上)
- [算法]Gale-Shapley Algorithm-稳定匹配算法的设计、实现与探讨(下)
- 稳定婚姻问题和Gale-Shapley算法
- 稳定婚姻问题和Gale-Shapley算法
- 稳定婚姻问题和Gale-Shapley算法
- gale-shapley算法的C语言实现
- 稳定婚姻问题和Gale-Shapley算法
- 稳定的匹配算法–Gale-Shapley
- 稳定婚姻问题和Gale-Shapley算法
- 稳定婚姻问题和Gale-Shapley算法
- Codeforces Round #267 (Div. 2) B
- c++ bit field
- Codeforces Round #267 (Div. 2) C
- 算法书籍推荐
- 有太多如同热度已投入的一天
- Stable Matching: Gale and Shapley Algorithm
- SQL Server Insert data into table
- 用javascript在对象中添加属性
- 第一次用阿里云ecs配置pptp vpn遇到的问题。
- f68;f86f7lfd865rf7l658
- struct 结构体的大小
- 的发货他并恢复后太阳能今天就白居易
- 关于das
- <leetcode> Gas station