AN EFFICIENT ALGORITHM FOR MANAGING A PARALLEL HEAP*
作者:
SAJALK. DAS,
WEN-BING HORNG,
GYOS. MOON,
期刊:
Parallel Algorithms and Applications
(Taylor Available online 1994)
卷期:
Volume 4,
issue 3-4
页码: 281-299
ISSN:1063-7192
年代: 1994
DOI:10.1080/10637199408915469
出版商: Taylor & Francis Group
关键词: Data structure;EREW PRAM;heap;parallel algorithm;priority queue;linear speedup;E.1;El;K1.2;F.2;K2.2.
数据来源: Taylor
摘要:
We design a cost-optimal algorithm for managing a parallel heap on an exclusive-read exclusive-write (EREW), parallel random access machine (PRAM) model. We also analyze the time and space complexities of our algorithm, which efficiently employs p processors in the range 1 ≤p≤n, where n is the maximum number of items in the parallel heap. It is assumed that a delete-think-insert cycle is repeatedly performed, and each processor requires an arbitrary but the same amount of time (called the think time) for processing an item which in turn generates at most two new items. The use of a global data structure for each level of the heap helps reduce the working memory space required. The time complexity for deleting p items of the highest priority from the parallel heap is O(logp), while that for inserting at most 2pnew items is O(logn). With or without incorporating the think time, the speedup of our algorithm is shown to be linear, i.e. O(p). Hence this algorithm is an improvement in time over the one proposed by Deo and Prasad [5, 6].
点击下载:
PDF (347KB)
返 回