2

Stable marriage problem

So I know that the worst case complexity will be of the order O(n^2) and the best case is of the order O(n). But how can I calculate the average case complexity

1 Answers1

-1

Average case efficiency: $$\mathcal{O} \left( n \log n \right)$$

dantopa
  • 10,342
Pavi
  • 1