Skip to main content

The average case complexity of the parallel prefix problem

  • Conference paper
  • First Online:
Automata, Languages and Programming (ICALP 1994)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 820))

Included in the following conference series:

Abstract

We analyse the average case complexity of evaluating all prefixes of an input vector over a given semigroup. As computational model circuits over the semigroup are used and a complexity measure for the average delay of such circuits, called time, is introduced. Based on this notion, we then define the average case complexity of a computational problem for arbitrary input distributions.

For highly nonuniform distributions the average case complexity turns out to be as large as the worst case complexity. Thus, in order to make the average case analysis meaningful we also develop a complexity measure for distributions.

Using this framework we show that two n-bit numbers can be added with an average delay of order log log n for a large class of distributions. We then give a complete characterization of the average case complexity of the parallel prefix problem with respect to the underlying semigroup. By considering a related reachability problem for finite automata it is shown that the complexity only depends on a property of the semigroup we will call a confluence.

Our analysis yields that only two different cases can arise for the reachability question. We show that the parallel prefix problem either can be solved with an average delay of order log log n, that means with an exponential speedup compared to the worst case, or in case of nonconfluent semigroups that no speedup is possible. Circuit designs are presented that for confluent semigroups achieve the optimal double logarithmic delay while keeping the circuit size linear.

The analysis and results are illustrated at some concrete functions. For the n-ary Boolean OR, THRESHOLD and PARITY, for example, the average case circuit delay is determined exactly up to small constant factors for arbitrary distributions.

Finally, we determine the complexity of the reachability problem itself and show that it is at most quadratic in the size of the semigroup.

supported by DFG Research Grant Re 672-2

supported by GIF Research Grant

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. G. Bilardi, F. Preparata, Size-Time Complexity of Boolean Networks for Prefix Computations, J. ACM 36, 1989, 362–382.

    Google Scholar 

  2. G. Bilardi, F. Preparata, Characterization of Associative Operations with Prefix Circuits of Constant Depth and Linear Size, SIAM J. Comput. 19, 1990, 246–255.

    Google Scholar 

  3. A. Jakoby, R. Reischuk, C. Schindelhauer, Circuit Complexity: from the Worst Case to the Average Case, Technical Report, TH Darmstadt, 1993, to be presented at STOC'94.

    Google Scholar 

  4. R. Ladner, M. Fischer, Parallel Prefix Computation, J. ACM 27, 1980, 831–838.

    Google Scholar 

  5. J. Reif, Probabilistic Parallel Prefix Computation, Comp. Math. Applic. 26, 1993, 101–110.

    Google Scholar 

  6. M. Snir, Depth-Size Trade-offs for Parallel Prefix Computation, J. Alg. 7, 1986, 185–201.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Serge Abiteboul Eli Shamir

Rights and permissions

Reprints and permissions

Copyright information

© 1994 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Jakoby, A., Schindelhauer, C., Reischuk, R., Weis, S. (1994). The average case complexity of the parallel prefix problem. In: Abiteboul, S., Shamir, E. (eds) Automata, Languages and Programming. ICALP 1994. Lecture Notes in Computer Science, vol 820. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-58201-0_101

Download citation

  • DOI: https://doi.org/10.1007/3-540-58201-0_101

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-58201-4

  • Online ISBN: 978-3-540-48566-7

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics