ON THE BEST CASE OF HEAPSORT

Citation
B. Bollobas et al., ON THE BEST CASE OF HEAPSORT, Journal of algorithms, 20(2), 1996, pp. 205-217
Citations number
12
Categorie Soggetti
Mathematics,Mathematics,"Computer Science Theory & Methods
Journal title
ISSN journal
01966774
Volume
20
Issue
2
Year of publication
1996
Pages
205 - 217
Database
ISI
SICI code
0196-6774(1996)20:2<205:OTBCOH>2.0.ZU;2-F
Abstract
Although discovered some 30 years ago, the Heapsort algorithm is still not completely understood. Here we investigate the best case of Heaps ort. Contrary to claims made by some authors that its time complexity is O(n), i.e., linear in the number of items, we prove that it is actu ally O(n log n) and is, in fact, approximately half that of the worst case. Our proof contains a construction for an asymptotically best-cas e heap. In addition, the proof and construction provide the warst-case time complexity and an asymptotically worst-case example for Bottom-u p versions of Heapsort. (C) 1996 Academic Press, Inc.