Output-sensitive algorithms for optimally constructing the upper envelope of straight line segments in parallel

  • Authors:
  • N. Gupta;S. Chopra

  • Affiliations:
  • Department of Computer Science, University of Delhi, New Delhi 110007, India;Department of Computer Science, New York University, New York, NY 10012, USA

  • Venue:
  • Journal of Parallel and Distributed Computing
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

The importance of the sensitivity of an algorithm to the output size of a problem is well-known especially if the upper bound on the output size is known to be not too large. In this paper we focus on the problem of designing very fast parallel algorithms for constructing the upper envelope of straight-line segments that achieve the O(nlogH) work-bound for input size n and output size H. When the output size is small, our algorithms run faster than the algorithms whose running times are sensitive only to the input size. Since the upper bound on the output size of the upper envelop problem is known to be small (n@a(n)), where @a(n) is a slowly growing inverse-Ackerman's function, the algorithms are no worse in cost than the previous algorithms in the worst case of the output size. Our algorithms are designed for the arbitrary CRCW PRAM model. We first describe an O(logn.(logH+loglogn)) time deterministic algorithm for the problem, that achieves O(nlogH) work bound for H=@W(logn). We then present a fast randomized algorithm that runs in expected time O(logH.loglogn) with high probability and does O(nlogH) work. For logH=@W(loglogn), we can achieve the running time of O(logH) while simultaneously keeping the work optimal. We also present a fast randomized algorithm that runs in O@?(logn/logk) time with nk processors, klog^@W^(^1^)n. The algorithms do not assume any prior input distribution and the running times hold with high probability.