Question

In: Computer Science

[10 pts] Consider an instance of the stable marriage problem for n = 4, with the...

[10 pts] Consider an instance of the stable marriage problem for n = 4, with the men asM = {m1, m2, m3, m4} and the women as W = {w1, w2, w3, w4}. Consider the following preferences (each list is ranked from first to last choice):

men’s preferences

  1. m1 :w1 >w2 >w3 >w4

  2. m2 :w2 >w3 >w1 >w4

  3. m3 :w3 >w1 >w2 >w4

  4. m4 :w1 >w2 >w3 >w4

women’s preferencesw1 :m2 >m3 >m4 >m1w2 :m3 >m4 >m1 >m2w3 :m4 >m1 >m2 >m3w4 :m1 >m2 >m3 >m4

What is the matching produced by the Gale-Shapley algorithm? For each man/woman, also des- ignate their partner’s ranking on his/her preference list, respectively.

1

Solutions

Expert Solution

First let's make matrix for men and women separately showing their preferences.

m1 w1 w2 w3 w4
m2 w2 w3 w1 w4
m3 w3 w1 w2 w4
m4 w1 w2 w3 w4
w1 m2 m3 m4 m1
w2 m3 m4 m1 m2
w3 m4 m1 m2 m3
w4 m1 m2 m3 m4

We will choose men's proposing to women

m1 will be proposing to w1 and w1 will accept it for now.

m2 will be proposing to w2 and w2 will accept it for now.

m3 will be proposing to w3 and w3 will accept it for now.

m1 w1 w2 w3 w4
m2 w2 w3 w1 w4
m3 w3 w1 w2 w4
m4 w1 w2 w3 w4
w1 m2 m3 m4 m1
w2 m3 m4 m1 m2
w3 m4 m1 m2 m3
w4 m1 m2 m3 m4

m4 will propose to w1 and w1 will accept it as its preference for m4 is higher than m1. w1 will reject m1.

m1 w1 w2 w3 w4
m2 w2 w3 w1 w4
m3 w3 w1 w2 w4
m4 w1 w2 w3 w4
w1 m2 m3 m4 m1
w2 m3 m4 m1 m2
w3 m4 m1 m2 m3
w4 m1 m2 m3 m4

Now, m1 will propose to w2 and w2 will accept it as its preference for m1 is higher than m2. w2 will reject m2.

m1 w1 w2 w3 w4
m2 w2 w3 w1 w4
m3 w3 w1 w2 w4
m4 w1 w2 w3 w4
w1 m2 m3 m4 m1
w2 m3 m4 m1 m2
w3 m4 m1 m2 m3
w4 m1 m2 m3 m4

Now, m2 will propose to w3 and w3 will accept it as its preference for m2 is higher than m3. w3 will reject m3.

m1 w1 w2 w3 w4
m2 w2 w3 w1 w4
m3 w3 w1 w2 w4
m4 w1 w2 w3 w4
w1 m2 m3 m4 m1
w2 m3 m4 m1 m2
w3 m4 m1 m2 m3
w4 m1 m2 m3 m4

Now, m3 will propose to w1 and w1 will accept it as its preference for m3 is higher than m4. w1 will reject m4.

m1 w1 w2 w3 w4
m2 w2 w3 w1 w4
m3 w3 w1 w2 w4
m4 w1 w2 w3 w4
w1 m2 m3 m4 m1
w2 m3 m4 m1 m2
w3 m4 m1 m2 m3
w4 m1 m2 m3 m4

Now, m4 will propose to w2 and w2 will accept it as its preference for m4 is higher than m1. w2 will reject m1.

m1 w1 w2 w3 w4
m2 w2 w3 w1 w4
m3 w3 w1 w2 w4
m4 w1 w2 w3 w4
w1 m2 m3 m4 m1
w2 m3 m4 m1 m2
w3 m4 m1 m2 m3
w4 m1 m2 m3 m4

Now, m1 will propose to w3 and w3 will accept it as its preference for m1 is higher than m2. w3 will reject m2.

m1 w1 w2 w3 w4
m2 w2 w3 w1 w4
m3 w3 w1 w2 w4
m4 w1 w2 w3 w4
w1 m2 m3 m4 m1
w2 m3 m4 m1 m2
w3 m4 m1 m2 m3
w4 m1 m2 m3 m4

Now, m2 will propose to w1 and w1 will accept it as its preference for m2 is higher than m3. w1 will reject m3.

m1 w1 w2 w3 w4
m2 w2 w3 w1 w4
m3 w3 w1 w2 w4
m4 w1 w2 w3 w4
w1 m2 m3 m4 m1
w2 m3 m4 m1 m2
w3 m4 m1 m2 m3
w4 m1 m2 m3 m4

Now, m3 will propose to w2 and w2 will accept it as its preference for m3 is higher than m4. w2 will reject m4.

m1 w1 w2 w3 w4
m2 w2 w3 w1 w4
m3 w3 w1 w2 w4
m4 w1 w2 w3 w4
w1 m2 m3 m4 m1
w2 m3 m4 m1 m2
w3 m4 m1 m2 m3
w4 m1 m2 m3 m4

Now, m4 will propose to w3 and w3 will accept it as its preference for m4 is higher than m1. w3 will reject m1.

m1 w1 w2 w3 w4
m2 w2 w3 w1 w4
m3 w3 w1 w2 w4
m4 w1 w2 w3 w4
w1 m2 m3 m4 m1
w2 m3 m4 m1 m2
w3 m4 m1 m2 m3
w4 m1 m2 m3 m4

Now, m1 will propose to w4 and w4 will accept it.

m1 w1 w2 w3 w4
m2 w2 w3 w1 w4
m3 w3 w1 w2 w4
m4 w1 w2 w3 w4
w1 m2 m3 m4 m1
w2 m3 m4 m1 m2
w3 m4 m1 m2 m3
w4 m1 m2 m3 m4

Stable Matching produced by algorithm is

(m1, w4), (m2, w1), (m3, w2), (m4, w3)

Partner ranking for men m1 = 4, m2 = 3, m3 = 3, m4 = 3

Partner ranking for women w1 = 1, w2 = 1, w3 = 1, w4 = 1


Related Solutions

2. [10 pts] Consider a stable marriage instance with men M = {m1,m2,m3} and women W...
2. [10 pts] Consider a stable marriage instance with men M = {m1,m2,m3} and women W ={w1, w2, w3} having the following preference lists: m1 :w1 >w2 >w3m2 :w2 >w1 >w3m3 :w1 >w2 >w3 w1 :m2 >m1 >m3w2 :m1 >m2 >m3w3 :m1 >m2 >m3 If these preferences are given to the Gale-Shapley algorithm, what is the resulting set of marriages? Now, suppose w1 decides to lie to the algorithm about her preferences and instead submits the list w1 : m2...
Problem 4. (10 pts) Voltage amplifiers are available with Avoc = 8 V / V, Rin...
Problem 4. (10 pts) Voltage amplifiers are available with Avoc = 8 V / V, Rin = 1.8 kΩ, Ro = 850Ω. With a 12V DC power source, each amplifier consumes 1.5 mA average current. a.how many amplifiers does it need to connect a cascade to obtain at least gain a voltage of 1000 with a load resistance of 1.0kΩ? b. What is the voltage gain Av obtained? (Answer with a whole number rounded) c. For the cascade connection, find...
PROBLEM 4. 15 pts: Test H0: mu = 70 vs. H1: mu > 70 n= 9...
PROBLEM 4. 15 pts: Test H0: mu = 70 vs. H1: mu > 70 n= 9 sample mean = 75 sigma = 5.        Alpha =.05 n= 9 sample mean = 75 S = 5.        Alpha =.05 n=100 items 40 defective. H0: p= .3 vs. H1: p > .3 Alpha=.05
Problem 4 [25 pts]. (It is the same physical system as in the Problem 3) A...
Problem 4 [25 pts]. (It is the same physical system as in the Problem 3) A hoop of mass M=400.g and radius R=20.0 cm is rolling without slipping in clockwise direction down an incline plane with the incline angle ? = 20? . 1. How much work is done by frictional force acting on the hoop on (1) translation, (2) rotation of the hoop? Show all work so that your final answer is justified. 2. How much is ???ℎ?? on...
Problem 4 Consider a market for a homogenous product with n identical firms that compete by...
Problem 4 Consider a market for a homogenous product with n identical firms that compete by setting quantities. The cost function of each firm is 8 per unit. The inverse demand function for the product is P = S/Q, where Q is the aggregate quantity and S is a positive parameter. (a) Compute the symmetric Nash equilibrium in the market and the equilibrium profit of each firm. (b) Suppose that one firm can break itself into two independent divisions that...
Problem 10. a. Construct of partition of N with exactly 4 elements and describe the equivalence...
Problem 10. a. Construct of partition of N with exactly 4 elements and describe the equivalence relation defined by your partition. Remember the elements of a partition are sets. b. Construct of partition of N with infinitely many elements and describe the equivalence relation defined by your partition. c. Construct a partion of the plane with exactly 4 elements and describe the equivalence relation defined by your partition. d. Construct a partion of the plane with infinitely many elements and...
Prove that for every n ∈ N: a) (10^n + 3 * 4^(n+2)) ≡ 4 mod...
Prove that for every n ∈ N: a) (10^n + 3 * 4^(n+2)) ≡ 4 mod 19, [note that 4^3 ≡ 1 mod 9] b) 24 | (2*7^(n) + 3*5^(n) - 5), c) 14 | (3^(4n+2) + 5^(2n+1) [Note that 3^(4n+2) + 5^(2n+1) = 9^(2n)*9 + 5^(2n)*5 ≡ (-5)^(2n) * 9 + 5^(2n) *5 ≡ 0 mod 14]
4. Consider an instance of the Specific Factors model with two goods – Agricultural goods (A)...
4. Consider an instance of the Specific Factors model with two goods – Agricultural goods (A) and Manufactured goods (M) – and three productive factors – Labour (L), Capital (C) and Land (T). What are the assumptions of the Specific Factors model? What are the gains and losses of trade within the Specific Factor model? Provide graphs and formulas if possible.  
Consider the following portion of the energy-level diagram for hydrogen: n=4 –0.1361 × 10–18 J n=3...
Consider the following portion of the energy-level diagram for hydrogen: n=4 –0.1361 × 10–18 J n=3 –0.2420 × 10–18 J n=2 –0.5445 × 10–18 J n=1 –2.178 × 10–18 J In the hydrogen spectrum, what is the wavelength of light associated with the n = 2 to n = 1 electron transition? Please explain. The answer is: 1.22 × 10–7 m.
(4 PTS) In humans the dominant allele N causes an abnormal shape of the patella in...
(4 PTS) In humans the dominant allele N causes an abnormal shape of the patella in the knee (n is the normal allele).  A separate gene affects finger length, and the dominant allele B causes abnormally short fingers, whereas b gives normal length.                 A  study focused on people who have both abnormal patellae and short fingers (they most likely have the genotype N/n B/b).  They inherited the N allele from one parent and the B allele from the other parent. These N/n...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT