Heapsort worst case complexity is obviously nLogN.
However, what's the best case complexity?
You know how to connect to an NNTP server, but not use Google?
What institution let you roam out into the streets?
Millions of people successfully Google every day who have never heard of
Usenet.
The Wikipedia page on Heapsort has the following table:
Class Sorting algorithm
Data structure Array
Worst case performance O(n log n)
Best case performance Ω(n),O(n log n)[1]
Average case performance O(n log n)
Worst case space complexity O(n) total, O(1) auxiliary
This is wrong. Or rather, the omega(n) lower bound, while technically true, is
not tight enough to be the useful answer. Yes, it's obvious that heapsort
works no *faster* than omega(n).
A citation is given: [1] pointing to "The Analysis of Heapsort", by R. Schaffer
and R. Sedgewick. This text is not available for free, but from what is stated
in the abstract, it is obvious that the paper gives a tighter analysis.
Furthermore, there is this StackOverflow posting by someone summarizing the
main arguments from the paper:
http://stackoverflow.com/questions/4589988/lower-bound-on-heapsort
It looks as though heap sort is theta(n log n). I.e. it has no better
or worse behavior for any inputs.
All courtesy of using search engines.
Before you go, let's burp you, too, and change your diaper!