|
|
|
|
|
by dlp211
4359 days ago
|
|
Except you are wrong. O(x) is an upper bound, Omega(x) is a lower bound, and something is Theta(x) iff it is bounded by Omega(x) and O(x) where (x) is the same[1]. And if a stackoverflow link isn't good enough, than go read CLRS, Dasgupta, or Skiena. Quicksort has no Theta(x), it is O(n^2) and Omega(n log n) with an expected runtime of n log n. The reason that Quicksort performs so well is because it is only in very specialized cases where it devolves to its worst case. [1] http://stackoverflow.com/questions/10376740/big-theta-notati... Edit: Replied to the wrong commenter, so the replied to post isn't wrong, the grandparent post is. |
|