Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to main content

On a sublinear time parallel construction of optimal binary search trees

  • Contributions
  • Conference paper
  • First Online:
Mathematical Foundations of Computer Science 1994 (MFCS 1994)

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

Abstract

We design an efficient sublinear time parallel construction of optimal binary search trees. The efficiency of the parallel algorithm corresponds to its total work (the product time × processors). Our algorithm works in O(n1−ɛ log n) time with the total work O(n2−2ɛ), for an arbitrarily small constant 0 < ε ≤ 1/2. This is optimal within a factor n with respect to the best known sequential algorithm given by Knuth, which needs only O(n2) time due to a monotonicity property of optimal binary search trees, see [6]). It is unknown how to explore this property in an efficient NC construction of binary search trees. Here we show that it can be effectively used in sublinear time parallel computation. Our improvement also relies on the use (in independently processed small subcomputations) of the parallelism present in Knuth's algorithm. The best known sublinear time algorithms for the construction of binary search trees (as an instance of a more general problem) have O(n3) work for time larger than n 3/4, see [3] and [7]. For time √n these algorithms need n 4 work, while our algorithm needs for this time only n 3 work, thus improving the known algorithms by a linear factor. Also if time is O(n1−ɛ) and ε is very small our improvement is close to O(n). Such improvement is similar to the one implied by the monotonicity property in sequential computations (from n 3 sequential time for a more general dynamic programming problem to n 2 time for the special case of optimal binary search trees).

Research supported in part by the DFG Grant KA 673/4-1, ESPRIT BR Grants 7079 and ECU030, and by the Volkswagen-Stiftung.

Research partially supported by the Grant KBN 2-1190-91-01.

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.

Similar content being viewed by others

References

  1. A.Aho, J.Hopcroft, J.Ullman, Introduction to the design and analysis of computer algorithms (1974), Addison-Wesley.

    Google Scholar 

  2. M. J. Atallah, S.R. Kosaraju, L. L. Larmore, G. L. Miller, and S-H. Teng, Constructing trees in parallel, Proceedings of the 1st ACM Symposium on Parallel Algorithms and Architectures (1989), pp. 499–533.

    Google Scholar 

  3. Z. Galil, K. Park, Parallel algorithms for dynamic programming recurrences with more than O(1) dependency, Manuscript.

    Google Scholar 

  4. S. Huan, H. Liu, V. Viswanathan, A sublinear time parallel algorithms for some dynamic programming problems, Proceedings of the 1990 International Conference on Parallel Processing 3 (1990), pp. 261–264.

    Google Scholar 

  5. D. E. Knuth, The Art of computer programming, Volume 3: Sorting and searching (1973), Addison-Wesley.

    Google Scholar 

  6. D. E. Knuth, Optimum binary search trees, Acta Informatica 1 (1971), pp. 14–25.

    Google Scholar 

  7. L. Larmore, W. Rytter, Efficient sublinear time parallel algorithms for the recognition for dynamic programming problems and context-free recognition, in: STACS'92, Lecture Notes of Computer Science 577 (1992), Springer Verlag, pp.121–132

    Google Scholar 

  8. L. Larmore, T. Przytycka, W. Rytter, Parallel construction of optimal alphabetic trees, in: SPAA'93.

    Google Scholar 

  9. W. Rytter, Efficient parallel computations for some dynamic programming problems, Theoretical Computer Science 59 (1988), pp. 297–307.

    Google Scholar 

  10. F. F. Yao. Efficient dynamic programming using quadrangle inequalities, Proceedings of the 12th ACM Symposium on Theory of Computing (1980), pp. 429–435.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Igor Prívara Branislav Rovan Peter Ruzička

Rights and permissions

Reprints and permissions

Copyright information

© 1994 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Karpinski, M., Rytter, W. (1994). On a sublinear time parallel construction of optimal binary search trees. In: Prívara, I., Rovan, B., Ruzička, P. (eds) Mathematical Foundations of Computer Science 1994. MFCS 1994. Lecture Notes in Computer Science, vol 841. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-58338-6_92

Download citation

  • DOI: https://doi.org/10.1007/3-540-58338-6_92

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-58338-7

  • Online ISBN: 978-3-540-48663-3

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics