IMPROVED DETERMINISTIC PARALLEL INTEGER SORTING

被引:42
作者
BHATT, PCP
DIKS, K
HAGERUP, T
PRASAD, VC
RADZIK, T
SAXENA, S
机构
[1] UNIV WARSAW, PL-00901 WARSAW, POLAND
[2] UNIV SAARLAND, FACHBEREICH INFORMAT, W-6600 SAARBRUCKEN, GERMANY
[3] UNIV SAARLAND, DEPT ELECT ENGN, W-6600 SAARBRUCKEN, GERMANY
[4] STANFORD UNIV, DEPT COMP SCI, STANFORD, CA 94305 USA
基金
美国国家科学基金会;
关键词
D O I
10.1016/0890-5401(91)90031-V
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We consider the problem of deterministic sorting of integers on a parallel RAM (PRAM). The best previous result (T. Hagerup, 1987, Inform. and Comput.75, 39-51) states that n integers of size polynomial in n can be sorted in time O(log n) on a Priority CRCW PRAM with O( n log log n log n) processors. We prove that n integers drawn from a set {0, ..., m-1} can be sorted on an Arbitrary CRCW PRAM in time O( log n log log n + log log m) with a time-processor product of O(n log log m). In particular, if m = n(log n), the time and number of processors used are O( log n log log n) and O( n(log log n)2 log n), respectively. This improves the previous result in several respects: The new algorithm is faster, it works on a weaker PRAM model, and it is closer to optimality for input numbers of superpolynomial size. If log log m = O( log n log log n), the new algorithm is optimally fast, for any polynomial number of processors, and if log log m = (1 + Ω(1)) log log n and log log m = 0( log n), it has optimal speedup relative to the fastest known sequential algorithm. The space needed is O(nmε), for arbitrary but fixed ε > 0. The sorting algorithm derives its speed from a fast solution to a special list ranking problem of possible independent interest, the monotonic list ranking problem. In monotonic list ranking, each list element has an associated key, and the keys are known to increase monotonically along the list. We show that monotonic list ranking problems of size n can be solved optimally in time O( log n log log n). We also discuss and attempt to solve some of the problems arising in the precise description and implementation of parallel recursive algorithms. As part of this effort, we introduce a new PRAM variant, the allocated PRAM. © 1991.
引用
收藏
页码:29 / 47
页数:19
相关论文
共 25 条
[1]  
ANDERSON RJ, 1988, LECT NOTES COMPUT SC, V319, P81
[2]   OPTIMAL BOUNDS FOR DECISION-PROBLEMS ON THE CRCW PRAM [J].
BEAME, P ;
HASTAD, J .
JOURNAL OF THE ACM, 1989, 36 (03) :643-670
[3]  
CHLEBUS BS, 1989, LECT NOTES COMPUT SC, V380, P95
[4]  
CHLEBUS BS, 1988, SPRINGER LECT NOTES, V324, P231
[5]   DETERMINISTIC COIN TOSSING WITH APPLICATIONS TO OPTIMAL PARALLEL LIST RANKING [J].
COLE, R ;
VISHKIN, U .
INFORMATION AND CONTROL, 1986, 70 (01) :32-53
[6]  
Cole R., 1986, 27th Annual Symposium on Foundations of Computer Science (Cat. No.86CH2354-9), P478, DOI 10.1109/SFCS.1986.10
[7]   FASTER OPTIMAL PARALLEL PREFIX SUMS AND LIST RANKING [J].
COLE, R ;
VISHKIN, U .
INFORMATION AND COMPUTATION, 1989, 81 (03) :334-352
[8]   PARALLEL MERGE SORT [J].
COLE, R .
SIAM JOURNAL ON COMPUTING, 1988, 17 (04) :770-785
[9]   PARALLEL ALGORITHMIC TECHNIQUES FOR COMBINATORIAL COMPUTATION [J].
EPPSTEIN, D ;
GALIL, Z .
ANNUAL REVIEW OF COMPUTER SCIENCE, 1988, 3 :233-283
[10]   SIMULATIONS AMONG CONCURRENT-WRITE PRAMS [J].
FICH, FE ;
RAGDE, P ;
WIGDERSON, A .
ALGORITHMICA, 1988, 3 (01) :43-51