0

Let us suppose the best case running time of an algorithm is $\Theta(n \log n)$. Can the average case run time of the algorithm be $O(n \log n)$? Since $O(n\log n)$ would imply the value going even below $n \log n$ hence would be lower than the best case bound of $\Theta(n \log n)$. Is this possible?

Yuval Filmus
  • 280,205
  • 27
  • 317
  • 514
ephemeral
  • 101

0 Answers0