Re:O-notation considered harmful (use Analytic Combinatorics...
by beagle3 on Monday February 11, 2013 @12:05AM
(#5199481)
Every ref to quicksort worth its salt mentions that it is O(n log n) average case, and O(n^2) worst case.
The problem with "average case" analysis is that you must give your assumptions; Without precisely stating your assumptions, "average case" is useless.
Also, I never seen anyone claim that quick-sort is O(n^2). Usually it's considered only the average case, where it's also O(n log n). This is where I believe Analytic Combinatronics should come in: if you want to compare two algorithms with the same order of growth on the average case. Otherwise, I think it's better to use big-O (analytic combinatronics to compare linear vs. exponential growth algorithms seems a little bit of an "overkill").