Title :
Quicksort for Equal Keys
Author_Institution :
Universitÿt Karlsruhe, Karlsruhe, West Germany.; Fachhochschule Fulda, FB Angewandte Informatik und Mathematik, D-6400 Fulda, West Germany.
fDate :
4/1/1985 12:00:00 AM
Abstract :
When sorting a multiset of N elements with n ≪ N distinct values, considerable savings can be obtained from an algorithm which sorts in time O(N log n) rather than O(N log N). In a previous paper, two Quicksort derivatives operating on linked lists were introduced which are stable, i.e., maintain the relative order of equal keys, and which achieve the previously unattainable lower bound in partition exchange sorting. Here, six more algorithms are presented which are unstable but operate on arrays. One of the algorithms is also designed for a speedup on presorted input. The algorithms are analyzed and compared to potential contenders in multiset sorting.
Keywords :
Algorithm design and analysis; Costs; Partitioning algorithms; Phased arrays; Sorting; Analysis of algorithms; Quicksort; arrays; multisets; presorted files; sorting;
Journal_Title :
Computers, IEEE Transactions on
DOI :
10.1109/TC.1985.5009387