Skip to main content
refine style
Source Link
OmG
  • 3.6k
  • 1
  • 14
  • 23

As n^(0.5)$n^{0.5}$ is always greater than log(n)$\log(n)$, O(n^(2.5))=O((n^2)*(n^0.5))$O(n^{2.5})= O(n^2 \times n^{0.5})$ is always bigger than O((n^2)*log(n))$O(n^2 \times \log(n))$. Anyway, you should consider your real algorithm usage scenario to choose one which fits the best.

As n^(0.5) is always greater than log(n), O(n^(2.5))=O((n^2)*(n^0.5)) is always bigger than O((n^2)*log(n)). Anyway, you should consider your real algorithm usage scenario to choose one which fits the best.

As $n^{0.5}$ is always greater than $\log(n)$, $O(n^{2.5})= O(n^2 \times n^{0.5})$ is always bigger than $O(n^2 \times \log(n))$. Anyway, you should consider your real algorithm usage scenario to choose one which fits the best.

Post Migrated Here from stackoverflow.com (revisions)
Source Link
Farhad Rahmanifard
Farhad Rahmanifard

As n^(0.5) is always greater than log(n), O(n^(2.5))=O((n^2)*(n^0.5)) is always bigger than O((n^2)*log(n)). Anyway, you should consider your real algorithm usage scenario to choose one which fits the best.