1. Computer Science Engineering (CSE)
  2. Design and Analysis of Algorithms
  3. What is the efficiency of Gale-Shapley a...
Q.

What is the efficiency of Gale-Shapley algorithm used in stable marriage problem?

A. o(n)
B. o(n log n)
C. o(n2)
D. o(log n)
Answer» C. o(n2)
Explanation: the time efficiency of gale- shapley algorithm is mathematically found to be o(n2) where n denotes stable marriage problem.

Discussion