Parallel merging with restriction

  • Authors:
  • Hazem M. Bahig

  • Affiliations:
  • Computer Science Division, Department of Mathematics, Faculty of Science, Ain Shams University, Cairo, Egypt

  • Venue:
  • The Journal of Supercomputing
  • Year:
  • 2008
  • Merging data records on EREW PRAM

    ICA3PP'10 Proceedings of the 10th international conference on Algorithms and Architectures for Parallel Processing - Volume Part II

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper, we study the merging of two sorted arrays $A=(a_{1},a_{2},\ldots, a_{n_{1}})$ and $B=(b_{1},b_{2},\ldots,b_{n_{2}})$ on EREW PRAM with two restrictions: (1) The elements of two arrays are taken from the integer range [1,n], where n=Max(n 1,n 2). (2) The elements are taken from either uniform distribution or non-uniform distribution such that $\#\{a\in A\,\mbox{and}\,b\in B\,\mbox{s.t.}\,a,b\in [(i-1)\frac{n}{p}+1,i\,\frac{n}{p}]\}=O(\frac{n}{p})$ , for 1驴i驴p驴(number of processors). We give a new optimal deterministic algorithm runs in $O(\frac{n}{p})$ time using p processors on EREW PRAM. For $p=\frac{n}{\log^{(g)}{n}}$ ; the running time of the algorithm is O(log驴(g) n) which is faster than the previous results, where log驴(g) n=log驴log驴(g驴1) n for g1 and log驴(1) n=log驴n. We also extend the domain of input data to [1,n k ], where k is a constant.