1 Stable Marriage Problem. 2 Consider a society with n men (denoted by capital letters) and n women (denoted by lower case letters). A marriage M is a.

Slides:



Advertisements
Similar presentations
Stable Matching Problems with Constant Length Preference Lists Rob Irving, David Manlove, Gregg OMalley University Of Glasgow Department of Computing Science.
Advertisements

Piyush Kumar (Lecture 3: Stable Marriage) Welcome to COT5405.
Marriage, Honesty, & Stability N ICOLE I MMORLICA, N ORTHWESTERN U NIVERSITY.
Matching Theory.
Lecture 2: Greedy Algorithms II Shang-Hua Teng Optimization Problems A problem that may have many feasible solutions. Each solution has a value In maximization.
Outline. Theorem For the two processor network, Bit C(Leader) = Bit C(MaxF) = 2[log 2 ((M + 2)/3.5)] and Bit C t (Leader) = Bit C t (MaxF) = 2[log 2 ((M.
Selecting the the k-th smallest element in a set.
1 The Monte Carlo method. 2 (0,0) (1,1) (-1,-1) (-1,1) (1,-1) 1 Z= 1 If  X 2 +Y 2  1 0 o/w (X,Y) is a point chosen uniformly at random in a 2  2 square.
Chapter 2 Discrete Random Variables
1 Discrete Structures & Algorithms Graphs and Trees: IV EECE 320.
Derandomized DP  Thus far, the DP-test was over sets of size k  For instance, the Z-Test required three random sets: a set of size k, a set of size k-k’
Lecture 14: Oct 28 Inclusion-Exclusion Principle.
CSE 421 Algorithms Richard Anderson Lecture 2. Announcements Office Hours –Richard Anderson, CSE 582 Monday, 10:00 – 11:00 Friday, 11:00 – 12:00 –Yiannis.
A Longer Example: Stable Matching UNC Chapel HillZ. Guo.
Asaf Cohen (joint work with Rami Atar) Department of Mathematics University of Michigan Financial Mathematics Seminar University of Michigan March 11,
Chapter 10: Iterative Improvement Simplex Method The Design and Analysis of Algorithms.
Lecture 9. Arithmetic and geometric series and mathematical induction
The Stable Marriage Problem
1 Stable Matching Problem Goal. Given n men and n women, find a "suitable" matching. n Participants rate members of opposite sex. n Each man lists women.
L3 #1 The Hospitals / Residents Problem and Some Extensions David Manlove University of Glasgow Department of Computing Science Supported by EPSRC grant.
Dept of Bioenvironmental Systems Engineering National Taiwan University Lab for Remote Sensing Hydrology and Spatial Modeling STATISTICS Random Variables.
Binomial Coefficients, Inclusion-exclusion principle
The Mathematics Of 1950’s Dating: Who wins the battle of the sexes? Adapted from a presentation by Stephen Rudich.
결혼문제로 본 조합론.
The Mathematics Of 1950’s Dating: Who wins the battle of the sexes? Presentation by Shuchi Chawla with some modifications.
The Integers. The Division Algorithms A high-school question: Compute 58/17. We can write 58 as 58 = 3 (17) + 7 This forms illustrates the answer: “3.
Stable Matchings a.k.a. the Stable Marriage Problem
Stable Marriage Problem Introductory talk Yosuke KIKUCHI Dept Comp. and Info. Eng. Tsuyama College of Tech OKAYAMA, JAPAN.
Great Theoretical Ideas in Computer Science.
1 The Stable Marriage Problem Algorithms and Networks 2014/2015 Hans L. Bodlaender Johan M. M. van Rooij.
Stable Matching Lecture 7: Oct 3. Matching A B C DE Boys Girls Today’s goal: to “match” the boys and the girls in a “good” way.
Stable Marriages (Lecture modified from Carnegie Mellon University course Great Theoretical Ideas in Computer Science)
Naïve Set Theory. Basic Definitions Naïve set theory is the non-axiomatic treatment of set theory. In the axiomatic treatment, which we will only allude.
Design & Co-design of Embedded Systems Final Project: “The Match Maker” Second Phase Oral Presentation Safa S. Mahmoodian.
Bipartite Matching. Unweighted Bipartite Matching.
Linear Program Set Cover. Given a universe U of n elements, a collection of subsets of U, S = {S 1,…, S k }, and a cost function c: S → Q +. Find a minimum.
Conditional Probability Mass Function. Introduction P[A|B] is the probability of an event A, giving that we know that some other event B has occurred.
CSE 421 Algorithms Richard Anderson (for Anna Karlin) Winter 2006 Lecture 2.
The Stable Marriage Problem
Great Theoretical Ideas in Computer Science for Some.
Incentive compatibility in 2-sided matching markets
Matching Lecture 19: Nov 23.
Review 2 Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by lower.
Fair Shares.
Graph Algorithms Maximum Flow - Best algorithms [Adapted from R.Solis-Oba]
CSCI 256 Data Structures and Algorithm Analysis Lecture 2 Some slides by Kevin Wayne copyright 2005, Pearson Addison Wesley all rights reserved, and some.
Market Design and Analysis Lecture 2 Lecturer: Ning Chen ( 陈宁 )
Market Design and Analysis Lecture 1 Lecturer: Ning Chen ( 陈宁 )
18.1 CompSci 102 Today’s topics 1950s TV Dating1950s TV Dating.
1 Distributed Vertex Coloring. 2 Vertex Coloring: each vertex is assigned a color.
The Stable Marriage Problem Original author: S. C. Tsai ( 交大蔡錫鈞教授 ) Revised by Chuang-Chieh Lin and Chih-Chieh Hung.
Algorithms used by CDNs Stable Marriage Algorithm Consistent Hashing.
Theory of Computational Complexity M1 Takao Inoshita Iwama & Ito Lab Graduate School of Informatics, Kyoto University.
Matching Boys Girls A B C D E
Cybernetica AS & Tartu University
Stable Matching.
Stable Marriage Problem
Introduction to the Design and Analysis of Algorithms
The Stable Marriage Problem
To any sequence we can assign a sequence with terms defined as
Maximum Flow - Best algorithms
CSE 421: Introduction to Algorithms
The Mathematics Of 1950’s Dating: Who wins The Battle of The Sexes?
S. Raskhodnikova; based on slides by K. Wayne
Richard Anderson Autumn 2006 Lecture 1
CSE 421: Introduction to Algorithms
Chapter 1 Introduction: Some Representative Problems
Lecture 6 CSE 331 Sep 12, 2011.
Piyush Kumar (Lecture 3: Stable Marriage)
Richard Anderson Autumn 2019 Lecture 2
Presentation transcript:

1 Stable Marriage Problem

2 Consider a society with n men (denoted by capital letters) and n women (denoted by lower case letters). A marriage M is a 1-1 correspondence between the men and women. Each person has a preference list of the members of the opposite sex organized in a decreasing order of desirability.

3 A marriage is said to be unstable if there exist 2 marriage couples X-x and Y-y such that X desires y more than x and y desires X more than Y. The pair X-y is said to be “ dissatisfied. ” A marriage M is called “ stable marriage ” if there is no dissatisfied couple.

4 Assume a monogamous, hetersexual society. Eg. n=4. A: abcd B: bacd C: adcb D: dcab a: ABCD b: DCBA c:ABCD d:CDAB Consider a marriage M: A-a, B-b, C-c, D-d, C-d is dissatisfied. Why?

5 Is the stable marriage unique?. Eg. n=2. A: ab B: ba a: BA b: AB A-a, B-b and A-b, B-a are both stable!

Proposal algorithm: D. Gale and L. S. Shapley: "College Admissions and the Stability of Marriage", American Mathematical Monthly 69, 9-14, 1962.American Mathematical Monthly Assume that the men are numbered in an arbitrary order. (Yields the same result.) 1. The lowest numbered unmarried man X proposes to the most desirable woman on his list who has not already rejected him; call her x. 2 The woman x will accept the proposal if she is currently unmarried, or if her current mate Y is less desirable to her than X (Y is jilted and reverts to the unmarried state). 3. The algorithm repeats this process until every person has married. jilt: vt. ( 及物動詞 ) 拋棄 ( 情人 ) n. ( 名詞 noun) 拋棄情人者 ( 尤指女子 )

Proposal algorithm: D. Gale and L. S. Shapley: "College Admissions and the Stability of Marriage", American Mathematical Monthly 69, 9-14, 1962.American Mathematical Monthly David Gale (December 13, March 7, 2008) was a distinguished American mathematician and economist. He was a Professor Emeritus at University of California, Berkeley, affiliated with departments of Mathematics, Economics, and Industrial Engineering and Operations Research. Lloyd Stowell Shapley (born June 2, 1923) is a distinguished American mathematician and economist. He is a Professor Emeritus at University of California, Los Angeles, affiliated with departments of Mathematics and Economics. Gale, David (1998) Lloyd Stowell Shapley

8 This algorithm is used by hospitals in North America in the match program that assigns medical graduates to residency positions. Women are unhappy if men propose, and men are unhappy if women propose. Does it always terminate with a stable marriage?

9 Observe that: An unmatched man always has at least one woman available that he can proposition. At each step the proposer will eliminate one woman on his list and the total size of the lists is n 2. Thus the algorithm uses at most n 2 proposals. I.e. it always terminates.

10 Claim that the final marriage M is stable. Proof: Otherwise, let X-y be a dissatisfied pair, where in M they are paired as X-x, Y-y. Since X prefers y to x, he must have proposed to y before getting married to x.

11 Since y either rejected X or accepted him only to jilt him later, her mates thereafter (including Y) must be more desirable to her than X. Therefore y must prefer Y to X,  contradicting the assumption that y is dissatisfied.

12 We say a woman w is a valid partner of a man m if there is a stable marriage containing m-w. We say that w is the best valid partner of m if w is a valid partner of m and no woman whom m ranks higher than w is a valid partner of m. Denote it as best(m). Let S* = {(m, best(m)): for all man m}

Thm: S* = {(m, best(m)): for all man m}. Any order of execution of the proposal algorithm results in S*. Proof: By contradiction. Let S be the stable marriage and suppose some man m is matched with a woman who is not his best valid partner. Consider the first moment during the execution that m is rejected by a valid partner w, who must be best(m). Why? The rejection of m by w happened either because the current partner of w had higher rank than m, or w jilted m.

Thm: S* = {(m, best(m)): for all man m}. Any order of execution of the proposal algorithm results in S*. Either way, w has a partner m ’ whom she prefers to m. Since w is a valid partner of m, there is a stable marriage S ’ containing (m, w). Who is the partner of m ’ in S ’ ? Suppose it is w ’. Since the rejection of m by w was the first rejection of a man by a valid partner during the execution for S, it must be that m ’ had not been rejected by any valid partner when he was accepted by w.

Thm: S* = {(m, best(m)): for all man m}. Any order of execution of the proposal algorithm results in S*. Since man proposed in decreasing order of preference and w ’ is a valid partner of m ’, it must be that m ’ prefers w to w ’. I.e., m ’ : w w ’. But we know that w prefers m ’ to m, since w rejected m in favor of m ’. I.e., w : m ’ m. Since (m ’, w) is not in S ’, it follows (m ’, w) is unsatisfied in S ’. It contradicts that S ’ is stable.

16 For a woman w, we say that m is a valid partner, if there is a stable marriage containing m-w. We say that m is the worst valid partner of w if m is a valid partner of w and no man whom w ranks lower than m is a valid partner of w. Theorem: In S*, each woman is matched with her worst valid partner. (HW)

17 Goal: Perform an average-case analysis of this (deterministic) algorithm. For this average-case analysis, we assume that the men ’ s lists are chosen independently and uniformly; the women ’ s lists can be arbitrary but must be fixed in advance.

18 T p denotes the number of proposal made during the execution of the Proposal Algorithm. The running time is proportional to T p. But it seems difficult to analyze T p.

19 Principle of Deferred Decisions: The idea is to assume that the entire set of random choices is not made in advance. At each step of the process, we fix only the random choices that must be revealed to the algorithm. We use it to simplify the average-case analysis of the Proposal Algorithm.

20 Suppose that men do not know their lists to start with. Each time a man has to make a proposal, he picks a random woman from the set of women not already propositioned by him, and proceeds to propose to her. The only dependency that remains is that the random choice of a woman at any step depends on the set of proposals made so far by the current proposer.

21 However, we can eliminate the dependency by modifying the algorithm, i.e. a man chooses a woman uniformly at random from the set of all n women, including those to whom he has already proposed. Call this new version the Amnesiac Algorithm.

22 Note that a man making a proposal to a woman who has already rejected him will be rejected again. Thus the output by the Amnesiac Algorithm is exactly the same as that of the original Proposal Algorithm.

23 Let T A denote the number of proposals made by the Amnesiac Algorithm. T p >m  T A >m, i.e. T A stochastically dominates T p. Thus Pr[T p >m]  Pr[T A >m] for all m.

24 It suffices to find an upper bound to analyze the distribution T A. A benefit of analyzing T A is that we need only count that total number of proposals made, since each proposal is made uniformly and independently to one of n women.

25 The algorithm terminates with a stable marriage once all women have received at least one proposal each. Moreover, bounding the value of T A is a special case of the coupon collector ’ s problem.

26 Thm: For any constant c  R, and m=n ln (n)+cn, The Amnesiac Algorithm terminates with a stable marriage once all women have received at least one proposal each.

27 Bounding the value of T A is a special case of the coupon collector ’ s problem. Let X be a r.v. defined to be the number of trials required to collect at least one of each type of coupon.

28 Define the r.v. X i, for 0  i  n-1, to be the number of trials in the i-th stage, so that Let p i denote the probability of success on any trial of the i-th stage.

29 Recall that X i is geometrically distributed with p i. So Thus ln (n)+  (1) I.e. E[X]=n ln (n)+O(n)

30 X i ‘ s are independent, thus   2 /6

31 Let  denote the event that coupon type i is not collected in the first r trials. Thus For r =  n ln (n), e -r/n =n - ,  >1.

32 Poisson Heuristic Let  denote the number of times the coupon of type i is chosen during the first r trials. is the same as the event { =0}. has the binomial distribution with parameter r and p=1/n. 

33 Let  be a positive real number. Y: (non-negative integer r.v.) Y has the Poisson distribution with parameter if for any non-negative integer y,

34 For proper small and as r , the Poisson distribution with = rp is a good approximation to the binomial distribution with parameter r and p. Approximate by the Poisson distribution with parameter =r/n. Thus

35 Claim:, for 1  i  n, are almost independent. I.e. for any index set {j 1,..,j k } not containing i, Pf:

36 Thus, Let m =  n( ln (n)+c), for any constant c. 0 e^(-e^-4)=0.981; e^(-e^-5)=0.993 ; e^(-e^-6)=0.997

37 A Rigorous Analysis Lemma: Let c be a real constant, and m = n ln (n)+cn, for positive integer n. Then, for any fixed positive integer k,

38 Pf: HW: Prove, for all t,n such that n  1 and |t|  n. By the above, we have

39 Observe that e -km/n =n -k e -ck. Further, and

40 Thm: Let the r.v. X denote the number of trials for collecting each of the n types of coupons. Then, for any constant c, and m = n ln (n)+cn, Pf: Let

41 Note that the event Let denote the partial sum formed by the first k terms of this series. Principle of Inclusion-Exclusion

42 We have by the Boole-Bonferroni inequality: E 1,.., E n : arbitrary events. 1. For even k: 2. For odd k:

43 By symmetry, all the k-wise intersections of the events are all equally likely, i.e. More precisely, For all positive integer k, define

44 Define the partial sum of P k ’ s as the first k terms of the power series expansion of. Thus I.e., for all  >0, there exists k* such that k>k*, |S k -f(c)|< .

45 Since Thus for all  >0 and k, when n is sufficiently large, Thus for all  >0 and k>k*, and large enough n, we have and which implies that and

46 Using the bracketing property of partial sum, we have that for any  >0 and n sufficiently large, 