Skip Navigation

The Computer Journal 1999 42(5):391-399; doi:10.1093/comjnl/42.5.391
© 1999 by British Computer Society
This Article
Right arrow Full Text (PDF)
Right arrow Alert me when this article is cited
Right arrow Alert me if a correction is posted
Services
Right arrow Email this article to a friend
Right arrow Similar articles in this journal
Right arrow Similar articles in ISI Web of Science
Right arrow Alert me to new issues of the journal
Right arrow Add to My Personal Archive
Right arrow Download to citation manager
Right arrowRequest Permissions
Google Scholar
Right arrow Articles by Luk, R. W. P.
Right arrow Search for Related Content
Social Bookmarking
 Add to CiteULike   Add to Connotea   Add to Del.icio.us  
What's this?

Near Optimal ß Heap

R. W. P. LukA1

A1 Department of Computing, Hong Kong Polytechnic University, Kowloon, Hong Kong Email: csrluk@comp.polyu.edu.hk

A ß heap, after D. B. Johnson, corresponds to an M-ary tree with a branch factor ß where every vertex of the tree satisfies the heap property. The ß heap was also known as the generalized heap and R-ary heap. In this paper, we prove that the address scheme in previous work is compact and correct. We investigated the global optimal values of ß for sift-up, insert, delete-min, make heap and heapsort operations. Although closed form solutions for the global optimal values of ß cannot be found, we prove that a (unique) global optimum solution exists for most cases and the equality conditions for optimal values of ß are determined. Experiments show that the global optimal value of ß for heapsort is approximately 4, which is theoretically a (near) optimal solution for all practical purposes. We show that the ß heapsort performance is sensitive to the implementation of heap maintenance and we demonstrate that the speed-up of heap maintenance by microcodes can be achieved using high-level constructs. The speed-up in heapsort between ß = 4 and 2 (i.e. binary) is between 10% and 30% where quicksort remains the fastest. If the main concern is the worst-case time complexity and exchange operations are taken into account, a ß (=4) heapsort would be a suitable choice for all practical purposes.


Received 25 August, 1998. Revised 5 May, 1998.


Add to CiteULike CiteULike   Add to Connotea Connotea   Add to Del.icio.us Del.icio.us    What's this?




Disclaimer:
Please note that abstracts for content published before 1996 were created through digital scanning and may therefore not exactly replicate the text of the original print issues. All efforts have been made to ensure accuracy, but the Publisher will not be held responsible for any remaining inaccuracies. If you require any further clarification, please contact our Customer Services Department.