Title :
Work-time optimal k-merge algorithms on the PRAM
Author :
Hayashi, Tatsuya ; Nakano, Koji ; Olariu, Stephan
Author_Institution :
Dept. of Electr. & Comput. Eng., Nagoya Inst. of Technol., Japan
fDate :
3/1/1998 12:00:00 AM
Abstract :
For 2⩽k⩽n, the k-merge problem is to merge a collection of ksorted sequences of total length n into a new sorted sequence. The k-merge problem is fundamental as it provides a common generalization of both merging and sorting. The main contribution of this work is to give simple and intuitive work-time optimal algorithms for the k-merge problem on three PRAM models, thus settling the status of the k-merge problem. We first prove that Ω(n log k) work is required to solve the k-merge problem on the PRAM models. We then show that the EREW-PRAM and both the CREW-PRAM and the CRCW require Ω(log n) time and Ω(log log n+log k) time, respectively, provided that the amount of work is bounded by O(n log k). Our first k-merge algorithm runs in Θ(log n) time and performs Θ(n log k) work on the EREW-PRAM. Finally, we design a work-time optimal CREW-PRAM k-merge algorithm that runs in Θ(log log n+log k) time and performs Θ(n log k) work. This latter algorithm is also work-time optimal on the CREW-PRAM model. Our algorithms completely settle the status of the k-merge problem on the three main PRAM models
Keywords :
computational complexity; merging; parallel algorithms; sorting; CRCW; CREW-PRAM; EREW-PRAM; PRAM models; k-merge problem; ksorted sequences; merging; parallel algorithms; query processing; sorting; work-time optimal algorithms; Databases; Information retrieval; Memory management; Merging; Parallel algorithms; Phase change random access memory; Query processing; Read-write memory; Sorting; Writing;
Journal_Title :
Parallel and Distributed Systems, IEEE Transactions on