An Efficient Parallel Algorithm for Merging in the Postal Model

  • Park, Hae-Kyeong (Internet Technology Department, Switching and Transmission Laboratory, ETRI) ;
  • Chi, Dong-Hae (Programming Environments Team, Computer-Software Technology Division, ETRI) ;
  • Lee, Dong-Kyoo (Department of Computer Engineering, Kyungpook National University) ;
  • Ryu, Kwan-Woo (Department of Computer Engineering, Kyungpook National University)
  • Received : 1988.03.31
  • Published : 1999.06.30

Abstract

Given two sorted lists A=(a0, a1, ${\cdots}$,a${\ell}$-1}) and B=(b0, b1, ${\cdots}$, bm-1), we are to merge these two lists into a sorted list C=(c0,c1, ${\cdots}$, cn-1), where n=${\ell}$+m. Since this is a fundamental problem useful to solve many problems such as sorting and graph problems, there have been many efficient parallel algorithms for this problem. But these algorithms cannot be performed efficiently in the postal model since the communication latency ${\lambda}$, which is of prime importance in this model, is not needed to be considered for those algorithms. Hence, in this paper we propose an efficient merge algorithm in this model that runs in $$2{\lambda}{\frac{{\log}n}{{\log}({\lambda}+1)}}+{\lambda}-1$$ time by using a new property of the bitonic sequence which is crucial to our algorithm. We also show that our algorithm is near-optimal by proving that the lower bound of this problem in the postal model is $f_{\lambda}({\frac{n}{2}})$, where $${\lambda}{\frac{{\log}n-{\log}2}{{\log}([{\lambda}]+1)}{\le}f_{\lambda}({\frac{n}{2}}){\le}2{\lambda}+2{\lambda}{\frac{{\log}n-{\log}2}{{\log}([{\lambda}]+1)}}$$.

Keywords

References

  1. Proc. 1st ACM Symposium on Parallel Algorithms and Architectures On Communication Latency in PRAM Computations Aggarwal, A.;Chandra, A.;Snir, M.
  2. Proc. 28th Annual Symposium on Foundations of Computer Science Hierarchical Memory with Block Transfer Aggarwal, A.;Chandra, A.;Snir, M.
  3. IEEE Trans. on Parallel and Distributed Systems v.6 no.8 Efficient Global Combine Operations in the Multi-Port Postal Model Bar-Noy, A.;Bruck, J.;Ho, T.;Kipnis, S.;Schieber, B.
  4. Proc. 4th Annual Symposium on Parallel Algorithms and Architectures Designing Broadcasting Algorithms in the Postal Model for Message-Passing System Bar-Noy, A.;Kipnis, S.
  5. Proc. 7th International Parallel Processing Symposium Multiple Message Broadcasting in the Postal Model Bar-Noy, A.;Kipnis, S.
  6. AFIPS Spring Joint Computing Conference Sorting Networks and Their Applications Batcher, K.
  7. IEEE Transaction on Parallel and Distributed Systems v.7 no.3 On the Design and Implementation of Broadcast and Global Combine Operations Using the Postal Model Bruck, J.;Coster, L.D.;Dewulf, N.;HO, C.;Lauwereins, R.
  8. International Journal of Digital and Analog Cabled Systems v.1 no.2 PARIS: An Approach to Integrated High-Speed Private Networks Cidon, I.;Gopal, I.
  9. Computer Networks and ISDN The AURORA Gigabit Testbed Clark, D.;Davie, B.;Farber, D.;Gopal, I.;Kadaba, B.;Sincoskie, D.;Smith, J.;Tennenhouse, D.
  10. Proc. 4th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming LogP: Towards a Realistic Model of Parallel Computation Culler, D.E.;Karp, R.;Patterson, D.;Sahay, A.;Schauser, E.;Santo, E.;Subramonian, R.;von Eicken, T.
  11. Information Processing 89 The J-Machine: A Find-Grain Concurrent Computer Dally, W.J.;Chien, A.;Fiske, S.;Horwat, W.;Keen, J.;Larivee, M.;Lethin, R.;Nuth, P.;Wills, S.;Carrick, P.;Fyler, G.
  12. Information Processing Letters v.33 Optimal Merging and Sorting on the EREW PRAM Hagerup, T.;Rub, C.
  13. Proc. 8th International Parallel Processing Symposium The Block Distributed Memory for Shared Memory Multiprocessor JaJa, J.F.;Ryu, K.W.
  14. IEEE Transaction on Computers v.c-32 no.10 Searching, Merging, and Sorting in Parallel Computation Kruskal, C.P.
  15. Proc. 4th Annual Symposium on Parallel Algorithms and Architectures The Network Architecture of the Connection Machine CM-5 Leiserson, C.E.;Abuhamdeh, Z.S.;Douglas, D.C.;Feynman, C.R.;Ganmukhi, M.N.;Hill, J.V.;Hillis, W.D.;Kuszmaul, B.C.;Pierre, M.A.;Wells, D.S.;Wong, M.C.;Yang, S.W.;Zak, R.
  16. The 4th Annual Australasian Conference on Parallel And Real-Time Systems (PART'97) An Optimal Parallel Algorithm for Solving the Prefix-Sums Problem in the Postal Model Park, H.K.;Ryu, K.W.
  17. Special Report;IEEE Computer Magazine v.23 no.9 Gigabit Network Testbeds Report, S.;Special, R.
  18. SIAM Journal of Computing v.14 On Parallel Searching Snir, M.
  19. Communications of the ACM v.20 no.4 Sorting on a Mesh-Connected Parallel Computer Thompson, C.D.;Kung, H.T.
  20. SIAM Journal of Computing v.4 no.3 Parallelism in Comparison Problems Valiant, L.G.