1.

Which of the following algorithms does Stable marriage problem uses?(a) Gale-Shapley algorithm(b) Dijkstra’s algorithm(c) Ford-Fulkerson algorithm(d) Prim’s algorithmThis question was addressed to me in homework.My question is based upon Matching topic in section Matching of Data Structures & Algorithms II

Answer»

Right answer is (a) Gale-Shapley algorithm

Best explanation: Stable marriage problem USES Gale-Shapley algorithm. Maximum flow problem uses Ford-Fulkerson algorithm. Prim’s algorithm INVOLVES MINIMUM SPANNING tree.



Discussion

No Comment Found

Related InterviewSolutions