The Community for Technology Leaders
RSS Icon
Subscribe
Issue No.05 - May (1989 vol.15)
pp: 622-631
ABSTRACT
<p>The problem is discussed of how the use of a new data structure, the codeword structure, can help improve the performance of quicksort when the records to be sorted are long and the keys are alphanumeric sequences of bytes. The codeword is a compact representation of a key with respect to some codeword generator. It consists of a byte for a character count of equal bytes, a byte for the first nonequal byte, and a pointer to the record. It is shown how the ordering of keys is preserved by an adequate choice of the code generator and how this can be applied to the quicksort algorithm. An analysis of the potential saving son various architectures and actual measurements shows the improvements that can be attained by using codewords rather than pointers. Architecturally independent parameters, such as the number of bytes to be compared, the number of swaps, architecture-dependent parameters such as caches and their write policies, and compiler optimizations such as in-line expansion and register allocation are considered.</p>
INDEX TERMS
performance improvement; codeword data structure; records; long; keys; alphanumeric sequences; bytes; codeword generator; character count; first nonequal byte; pointer; ordering; quicksort algorithm; swaps; architecture-dependent parameters; caches; write policies; compiler optimizations; in-line expansion; register allocation; data structures; sorting
CITATION
J.-L. Baer, Y.-B. Lin, "Improving Quicksort Performance with a Codeword Data Structure", IEEE Transactions on Software Engineering, vol.15, no. 5, pp. 622-631, May 1989, doi:10.1109/32.24711
7 ms
(Ver 2.0)

Marketing Automation Platform Marketing Automation Tool