Re: Benchmarks
Richard Harter wrote:
I fail to see how it does *not* make them obsolete.
Following your definition, "the worst case of insertion sort is
O(n^2)" and "the worst case of of insertion sort is Omega(n^2)" are
completely equivalent statements because both define bounds for the
"worst case of insertion sort" function.
Likewise "the best case of insertion sort is O(n)" and "the best case
of insertion sort is Omega(n)" are also completely equivalent.
Given that they specify upper and lower bounds, those are also
completely equivalent to the big-Theta notation.
In general, we can say "the behavior X for algorithm Y is O(f),
Omega(f) and Theta(f)".
Richard Harter wrote:
Big-O does not make big omega or big theta obsolete. Big omega
is any function asymptotically below the function of interest.
is any function asymptotically below the function of interest.
Following your definition, "the worst case of insertion sort is
O(n^2)" and "the worst case of of insertion sort is Omega(n^2)" are
completely equivalent statements because both define bounds for the
"worst case of insertion sort" function.
Likewise "the best case of insertion sort is O(n)" and "the best case
of insertion sort is Omega(n)" are also completely equivalent.
Given that they specify upper and lower bounds, those are also
completely equivalent to the big-Theta notation.
In general, we can say "the behavior X for algorithm Y is O(f),
Omega(f) and Theta(f)".
Comment