Question: Consider the variant of Gale - Shapley algorithm on groups A = { a 1 , . . . , an } and B =

Consider the variant of Gale-Shapley algorithm on groups A ={a1,..., an} and B ={b1,..., bn} where groups A and B alternate making offers: at odd times some unmatched ai in A makes an offer to the bj in B that is highest on its list that has not yet rejected ai, and at even times some unmatched bj in B makes an offer to the highest ranked ai in A that has not yet rejected it. The algorithm terminates when everyone is matched or there are no new offers which can be made.
(a)5 points: What is the running time of this algorithm? Explain why your answer is correct

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!