Summary
We show that any arithmetic expression with n operands and parentheses nested to depth d can be evaluated in at most 1+2d+ [log2 n] steps, assuming that only associativity and commutativity are used to transform the expression. We also show that at most [n−2d/2] processors are needed to achieve this bound.
Similar content being viewed by others
Explore related subjects
Discover the latest articles and news from researchers in related subjects, suggested using machine learning.References
Baer, J. L., Bovet, D. P.: Compilation of arithmetic expressions for parallel computations. Proc. IFIP Cong. 68. Amsterdam: North Holland 1969, p. 340–346
Beatty, J. C.: An axiomatic approach to code optimization for expressions. J. ACM 19, 613–640 (1972)
Brent, R. P.: The parallel evaluation of general arithmetic expressions. To appear in J. ACM
Brent, R. P., Kuck, D. J., Maruyama, K.: The parallel evaluation of arithmetic expressions without division. IEEE Trans. Computers C-22, 532–534 (1973)
Knuth, D.: An empirical study of FORTRAN programs. Software, Practice and Experience 1, 105–133 (1971)
Kraska, P. W.: Parallelism exploitation and scheduling. University of Illinois at Urbana, Dept. of Computer Science, Rep. No. 518, Ph. D. Thesis, 1972
Kuck, D. J.: Multioperation machine computational complexity. In: Traub, F. (ed.): Complexity of sequential and parallel numerical algorithms. London-New York: Academic Press 1973, p. 17–47
Kuck, D. J., Maruyama, K.: Time bounds on the parallel evaluation of arithmetic expressions. In preparation
Kuck, D. J., Muraoka, Y., Chen, S. C.: On the number of operations simultaneously executable in FORTRAN-like programs and their resulting speed-up. IEEE Trans. Computers C-21, 1293–1310 (1972)
Maruyama, K.: On the parallel evaluation of polynomials. IEEE Trans. Computers C-22, 2–5 (1973)
Muraoka, Y.: Parallelism exposure and exploitation in programs. University of Illinois at Urbana, Dept. of Computer Science, Rep. No. 424, Ph. D. Thesis, 1971
Author information
Authors and Affiliations
Additional information
This work was supported in part by NSF Grant GJ 36936. An earlier version of this paper was presented at the Seventh Annual Princeton Conference on Information Sciences and Systems, March 1973.
Rights and permissions
About this article
Cite this article
Kuck, D., Muraoka, Y. Bounds on the parallel evaluation of arithmetic expressions using associativity and commutativity. Acta Informatica 3, 203–216 (1974). https://doi.org/10.1007/BF00288634
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF00288634