New Algorithms and Lower Bounds for the Parallel Evaluation of Certain Rational Expressions and Recurrences

  • Authors:
  • H. T. Kung

  • Affiliations:
  • Department of Computer Science, Carnegie-Mellon University, Pittsburgh, PA

  • Venue:
  • Journal of the ACM (JACM)
  • Year:
  • 1976

Quantified Score

Hi-index 0.00

Visualization

Abstract

The parallel evaluation of rational expressions is considered. New algorithms which minimize the number of multiplication or division steps are given. They are faster than the usual algorithms when multiplication or division takes more time than addition or subtraction. It is shown, for example, that xn can be evaluated in two steps of parallel division and ⌈log2 n⌉ steps of parallel addition, while the usual algorithm takes ⌈log2 n⌉ steps of parallel multiplication.Lower bounds on the time required are obtained in terms of the degree of the expressions to be evaluated. From these bounds, the algorithms presented in the paper are shown to be asymptotically optimal. Moreover, it is shown that by using parallelism the evaluation of any first-order rational recurrence of degree greater than 1, e.g. yi+1 = 1/2;(yi + a/yi), and any nonlinear polynomial recurrence can be sped up at most by a constant factor, no matter how many processors are used and how large the size of the problem is.