Greed sort
- 1 July 1995
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 42 (4), 919-933
- https://doi.org/10.1145/210332.210343
Abstract
We present an algorithm for sorting efficiently with parallel two-level memories. Our main result is an elegant, easy-to-implement, optimal, deterministic algorithm for external sorting with D disk drives. This result answers in the affirmative the open problem posed by Vitter and Shriver of whether an optimal algorithm exists that is deterministic. Our measure of performance is the number of parallel input/output (I/O) operations, in which each of the D disks can simultaneously transfer a block of B contiguous records. We assume that internal memory can hold M records. Our algorithm sorts N records in the optimal bound of θ(( N/BD ) log( N/B )/ log( M/B )) deterministically, and thus improves upon Vitter and Shriver's optimal randomized algorithm as well as the well-known deterministic but nonoptimal technique of disk striping. It is also practical to implement.Keywords
This publication has 6 references indexed in Scilit:
- The input/output complexity of sorting and related problemsCommunications of the ACM, 1988
- Tight Bounds on the Complexity of Parallel SortingIEEE Transactions on Computers, 1985
- The Design and Analysis of BucketSort for Bubble Memory Secondary StorageIEEE Transactions on Computers, 1985
- A taxonomy of parallel sortingACM Computing Surveys, 1984
- The TWA reservation systemCommunications of the ACM, 1984
- Parallelism in tape-sortingCommunications of the ACM, 1974