

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Please refer to the general information handout for the full homework policy and options.
Reminders
Exercises These should not be handed in, but the material they cover may appear on exams:
Problems to be handed in
Page limits: The answer to each problem should fit in 2 pages (or one double-sided sheet) of paper. Longer answers will be penalized.
Given a bipartite, unweighted graph G, with n nodes on the left and n nodes on the right, create an instance of the stable marriage problem (call it S) where men correspond to left nodes in G, and women correspond to right nodes in G. For convenience, let mu be the node corresponding to (left) vertex u, and wv be the woman corresponding to (right) vertex v; similarly, let um and vw denote the vertices corresponding to m and w, respectively. The preference lists for S are created as follows: every man m rates acceptable matches (that is, women w such that (um, vw) is an edge in G) above non-acceptable matches (that is, women for which the corresponding nodes are not connected); ties are broken arbitrarily. Similarly, women rate men to whom they are connected in G above men to whom they are not connected, breaking ties arbitrarily.
Gary claims that if we find a stable matching π for the instance S, then we can obtain a maximum matching for G by taking all edges in G for which the corresponding people are paired up in the stable matching (i.e. add an edge e = (u, v) to the output if and only if mu is paired with wv in π).
(a) Suppose that Gary’s claim is true. What is the running time of his new MBM algorithm? For which types of graphs is it better than the Ford-Fulkerson algorithm? (b) Give either a proof of, or a counter-example to, Gary’s claim.