Comparing algorithmic complexities

47 Views Asked by At

If an algorithm has a running time $ T(n) = O(n$ log $n)$, would it be possible to show that $T(n) = o(n^2)$?

1

There are 1 best solutions below

0
On BEST ANSWER

Yes:

$$ T(n)=O(n\log(n))\implies\lim_{n\to\infty}\frac{T(n)}{n\log(n)}=c\in\mathbb{R}\\ \lim_{n\to\infty}\frac{T(n)}{n^2}=\lim_{n\to\infty}\frac{T(n)}{n\log(n)}\frac{\log(n)}{n}=c*0=0\implies T(n)=o(n^2) $$