The Community for Technology Leaders
RSS Icon
Subscribe
Issue No.03 - March (1998 vol.9)
pp: 275-282
ABSTRACT
<p><b>Abstract</b>—For 2 ≤<it>k</it>≤<it>n</it>, the <it>k</it>-merge problem is to merge a collection of <it>k</it> sorted sequences of total length <it>n</it> into a new sorted sequence. The <it>k</it>-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 <it>k</it>-merge problem on three PRAM models, thus settling the status of the <it>k</it>-merge problem. We first prove that Ω(<it>n</it> log <it>k</it>) work is required to solve the <it>k</it>-merge problem on the PRAM models. We then show that the EREW-PRAM and both the CREW-PRAM and the CRCW require Ω(log <it>n</it>) time and Ω(log log <it>n</it> + log <it>k</it>) time, respectively, provided that the amount of work is bounded by <it>O</it>(<it>n</it> log <it>k</it>). Our first <it>k</it>-merge algorithm runs in Θ(log <it>n</it>) time and performs Θ(<it>n</it> log <it>k</it>) work on the EREW-PRAM. Finally, we design a work-time optimal CREW-PRAM <it>k</it>-merge algorithm that runs in Θ(log log <it>n</it> + log <it>k</it>) time and performs Θ(<it>n</it> log <it>k</it>) work. This latter algorithm is also work-time optimal on the CRCW-PRAM model. Our algorithms completely settle the status of the <it>k</it>-merge problem on the three main PRAM models.</p>
INDEX TERMS
Merging, sorting, parallel algorithms, work-time optimal algorithms, information retrieval, databases, query processing.
CITATION
Tatsuya Hayashi, Koji Nakano, Stephan Olariu, "Work-Time Optimal k-Merge Algorithms on the PRAM", IEEE Transactions on Parallel & Distributed Systems, vol.9, no. 3, pp. 275-282, March 1998, doi:10.1109/71.674319
5 ms
(Ver 2.0)

Marketing Automation Platform Marketing Automation Tool