The Community for Technology Leaders
Green Image
Issue No. 02 - April (1990 vol. 1)
ISSN: 1045-9219
pp: 247-250
<p>Two arrays of numbers sorted in nondecreasing order are given: an array A of size n and an array B of size m, where n>m. It is required to determine, for every element of A, the smallest element of B (if one exists) that is larger than or equal to it. It is shown how to solve this problem on the EREW PRAM (exclusive-read exclusive-write parallel random-access machine) in O(logm logn/log log m) time using n processors. The solution is then extended to the case in which fewer than n processors are available. This yields an EREW PRAM algorithm for the problem whose cost is O(n log m, which is O(m)) for n>or=m/log m. It is shown how the solution obtained leads to an improved parallel merging algorithm.</p>
Index Termsbinary search; cost optimality; nondecreasing order; EREW PRAM; parallel random-access machine; parallel merging algorithm; computational complexity; parallel algorithms; search problems

H. Meijer and S. Akl, "Parallel Binary Search," in IEEE Transactions on Parallel & Distributed Systems, vol. 1, no. , pp. 247-250, 1990.
91 ms
(Ver 3.3 (11022016))