TIME-SPACE OPTIMAL PARALLEL MERGING AND SORTING

被引:15
作者
GUAN, XJ [1 ]
LANGSTON, MA [1 ]
机构
[1] UNIV TENNESSEE,DEPT COMP SCI,KNOXVILLE,TN 37996
关键词
BLOCK REARRANGING; INTERNAL BUFFERING; MEMORY MANAGEMENT; MERGING AND SORTING; PARALLEL COMPUTATION; TIME-SPACE OPTIMALITY;
D O I
10.1109/12.88483
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
A parallel algorithm is time-space optimal if it achieves optimal speedup and if it uses only a constant amount of extra space per processor even when the number of processors is fixed. Previously published parallel merging and sorting algorithms fail to meet at least one of these criteria. In this paper, we present a parallel merging algorithm that, on an EREW PRAM with k processors, merges two sorted lists of total length n in O(n/k + log n) time and O(k) extra space, and is thus time-space optimal for any value of k less-than-or-equal-to n/(log n). We also describe a stable version of our parallel merging algorithm that is similarly time-space optimal on an EREW PRAM. These two parallel merges naturally lead to time-space optimal parallel sorting algorithms.
引用
收藏
页码:596 / 602
页数:7
相关论文
共 22 条
[1]   OPTIMAL PARALLEL MERGING AND SORTING WITHOUT MEMORY CONFLICTS [J].
AKL, SG ;
SANTORO, N .
IEEE TRANSACTIONS ON COMPUTERS, 1987, 36 (11) :1367-1369
[2]  
[Anonymous], 1985, PARALLEL SORTING ALG
[3]  
BANERJEE P, 1988, PARLLEL ALGORITHMS G
[4]  
BATCHER KE, 1968, 1968 P AFIPS SPRING, P307
[5]  
BAUDET G, 1978, IEEE T COMPUT, V27, P84, DOI 10.1109/TC.1978.1674957
[6]  
BITTON D, 1984, COMPUT SURV, V16, P287, DOI 10.1145/2514.2516
[7]   ROUTING, MERGING, AND SORTING ON PARALLEL MODELS OF COMPUTATION [J].
BORODIN, A ;
HOPCROFT, JE .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1985, 30 (01) :130-145
[8]   PARALLEL MERGE SORT [J].
COLE, R .
SIAM JOURNAL ON COMPUTING, 1988, 17 (04) :770-785
[9]   PRACTICAL IN-PLACE MERGING [J].
HUANG, BC ;
LANGSTON, MA .
COMMUNICATIONS OF THE ACM, 1988, 31 (03) :348-352
[10]   STABLE DUPLICATE-KEY EXTRACTION WITH OPTIMAL TIME AND SPACE BOUNDS [J].
HUANG, BC ;
LANGSTON, MA .
ACTA INFORMATICA, 1989, 26 (05) :473-484