GATE Computer ScienceVery hardGATE CS (PYQ pattern)

Men m0–m3 and women w0–w3 have the preference lists (best first) m0: w2 w0 w1 w3; m1: w0 w1 w3 w2; m2: w1 w2 w0 w3; m3: w2 w3 w1 w0; w0: m1 m3 m0 m2; w1: m2 m1 m3 m0; w2: m3 m0 m2 m1; w3: m0 m2 m1 m3. In the man-optimal stable matching produced by men-proposing Gale–Shapley, who is m0's partner?

  1. A. w0
  2. B. w3
  3. C. w1
  4. D. w2

Correct answer: B. w3

m0 proposes to w2 but w2 prefers m3; m3's first choice is also w2 and wins her. Following the rejections gives the matching m0–w3, m1–w0, m2–w1, m3–w2. m0 ends with his last choice because every better woman prefers someone else.

More Algorithms questions

Exams that ask this topic