Searching for just a few words should be enough to get started. If you need to make more complex queries, use the tips below to guide you.
Article type: Research Article
Authors: Suchenek, Marek A.
Affiliations: Department of Computer Science, California State University Dominguez Hills, [email protected]
Note: [] Address for correspondence: Marek A. Suchenek, California State University Dominguez Hills, Department of Computer Science, 1000 E. Victoria St., Carson, CA 90747, USA I would like to express my utmost gratitude to a number of individuals for their kindness and invaluable help in turning various drafts of this paper into a journal publication. These were: Victor W. Marek, Philip Wadler, Greg Morrisett, Damian Niwiński, Ken Leyba, an Anonymous Referee of POPL'12, and - last but not least - the Editorial Board and the Anonymous Referee of the Fundamenta Informaticae. Northrop Grumman Information Systems (a division of Northrop Grumman Corporation)'s continuous support of my department provided me with teaching release time some of which I used for writing this paper.
Abstract: The worst-case behavior of the heap-construction phase of Heapsort escaped mathematically precise characterization by a closed-form formula for almost five decades. This paper offers a proof that the exact number of comparisons of keys performed in the worst case during construction of a heap of size N is: 2N − 2s2(N) − e2(N), where s2(N) is the sum of all digits of the binary representation of N and e2(N) is the exponent of 2 in the prime factorization of N. It allows for derivation of this best-known upper bound on the number of comparisons of Heapsort: (2N − 1)$\lceil$lgN$\rceil$ − 2$\lceil$lgN$\rceil$+1 − 2s2(N) − e2(N) + 5.
Keywords: Heapsort, worst-case analysis, sum of digits
DOI: 10.3233/FI-2012-751
Journal: Fundamenta Informaticae, vol. 120, no. 1, pp. 75-92, 2012
IOS Press, Inc.
6751 Tepper Drive
Clifton, VA 20124
USA
Tel: +1 703 830 6300
Fax: +1 703 830 2300
[email protected]
For editorial issues, like the status of your submitted paper or proposals, write to [email protected]
IOS Press
Nieuwe Hemweg 6B
1013 BG Amsterdam
The Netherlands
Tel: +31 20 688 3355
Fax: +31 20 687 0091
[email protected]
For editorial issues, permissions, book requests, submissions and proceedings, contact the Amsterdam office [email protected]
Inspirees International (China Office)
Ciyunsi Beili 207(CapitaLand), Bld 1, 7-901
100025, Beijing
China
Free service line: 400 661 8717
Fax: +86 10 8446 7947
[email protected]
For editorial issues, like the status of your submitted paper or proposals, write to [email protected]
如果您在出版方面需要帮助或有任何建, 件至: [email protected]