Abstract
We consider the problem of merging m disjoint ordered lists, each of size n{plus 45 degree rule}/m. We determine up to a constant factor the worst case and average case deterministic and randomized parallel comparison complexity of the problem for all the range of n, m and p where p is the number of processors used. The worst case deterministic time complexity is Θ log m log(1+p{plus 45 degree rule}n)+log log n log(2+p{plus 45 degree rule}n) That means Θ n log m p+log log n for p≤2n and Θ log m log(p{plus 45 degree rule}n)+log log n log(p{plus 45 degree rule}n)for p≥2n Clearly merging two equal lists and sorting are special cases of this problem for m = 2 and m = n respectively. We also prove that these bounds hold for randomized algorithms and even for the average case of deterministic or randomized ones. Therefore the average case of the best deterministic or randomized algorithm for this problem is not faster than the worst case of the best deterministic one by more than a constant factor.
Original language | English |
---|---|
Pages (from-to) | 275-285 |
Number of pages | 11 |
Journal | Theoretical Computer Science |
Volume | 83 |
Issue number | 2 |
DOIs | |
State | Published - 28 Jun 1991 |
Externally published | Yes |