|
|
|
|
|
by bmcfeeley
2979 days ago
|
|
Big-Theta is not an average case, it is a special form of Big-O and Big-Omega wherein the worst case is also the best case from a complexity perspective. This is sometimes true in sorting since comparison based sorting cannot be improved beyond n*log(n) except in specific cases for specific domains. You are absolutely on the money about worst case being O(n^2) though for quicksort. |
|