Search Books

A Worst Case Analysis of Heap-Sort (Classic Reprint)

Author Clyde P. Kruskal
Publisher Forgotten Books
📄 Viewing lite version Full site ›
🌎 Shop on Amazon — choose country
7.97 USD
🛒 Buy New on Amazon 🇺🇸 🏷 Buy Used — $8.31

✓ Usually ships in 24 hours

Share:
Book Details
ISBN / ASIN133221360X
ISBN-139781332213603
AvailabilityUsually ships in 24 hours
Sales Rank99,999,999
MarketplaceUnited States 🇺🇸

Description

Excerpt from A Worst Case Analysis of Heap-Sort

It is interesting to compare various sorting algorithms based on numbers of comparisons and exchanges. This point is emphasized in Knuth [Kn, sec. 5.3.1]: "... a theoretical study of this subject [counting comparisons] gives us a good deal of useful insight into the nature of sorting processes ..."

The most commonly known 0 (n log n) comparison-exchange sorting algorithm not needing external storage is heapsort (sometimes referred to as treesort) [F1], [Wi]. It is relatively easy to calculate the maximum number of exchanges required by heapsort; in this paper, we calculate the maximum number of (key) comparisons required, assuming that the size of the input is one less than a power of two. In addition, we exhibit an algorithm producing input yielding the maximum number of comparisons.

About the Publisher

Forgotten Books publishes hundreds of thousands of rare and classic books. Find more at www.forgottenbooks.com

This book is a reproduction of an important historical work. Forgotten Books uses state-of-the-art technology to digitally reconstruct the work, preserving the original format whilst repairing imperfections present in the aged copy. In rare cases, an imperfection in the original, such as a blemish or missing page, may be replicated in our edition. We do, however, repair the vast majority of imperfections successfully; any imperfections that remain are intentionally left to preserve the state of such historical works.