Merging data records on EREW PRAM

  • Authors:
  • Hazem M. Bahig

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

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

Quantified Score

Hi-index 0.00

Visualization

Abstract

Given two sorted arrays A=(a1,a2,⋯,an) and B=(b1,b2, ⋯,bn) of records such that (1) the n records are sorted according to one field which is called the key, and (2) the values of the keys are serial numbers. Merging data records has many applications in computer science especially in database. We develop an algorithm that runs in O(logn) time on EREW PRAM to merge two sorted arrays of records using $\frac{n}{\log{n}}$ processors even the keys of the data records are repeated. The algorithm is cost-optimal, deterministic, stable and uses linear number of space.