Skip to main content

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

Abstract

We design a cost-optimal algorithm for managing a parallel heap on an exclusive-read and exclusive-write (EREW), parallel random access machine (PRAM) model. This is an improvement in space and time over the one recently proposed by Deo and Prasad [4]. Our approach efficiently employs p processors in the range 1≤ pn, where n is the maximum number of items in a parallel heap. It is assumed that a delete-think-insert cycle is repeatedly performed, and each processor requires an arbitrary but the same amount of time (called the think time) for processing an item which in turn generates at most α (a constant) new items. The time required for deleting p items of the highest priority from the parallel heap is O(1), while that for inserting at most αp new items is O(log n). With or without incorporating the think time, the speedup of our algorithm is proved to be linear, i.e. O(p). Using a global, working data structure for each level of the heap, it is shown that the additional memory space required for our parallel heap is much less than that for the existing one [4]. Furthermore, the proposed algorithm retains the strict priority ordering of a sequential heap.

This work was in part supported by a Junior Faculty Summer Research Fellowship from the University of North Texas at Denton.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. G. Bilardi and A. Nicolau, “Adaptive Bitonic Sorting: An Optimal Algorithm for Shared-Memory Machines,” SIAM J. Comput., vol. 18, no. 2, pp. 216–228, Apr. 1989.

    Article  MathSciNet  Google Scholar 

  2. J. Biswas and J. C. Browne, “Simultaneous Update of Priority Structures,” Proc. Int. Conf. Parallel Process., 1987, pp. 124–131.

    Google Scholar 

  3. R. Cole, “Parallel Merge Sort,” SIAM J. Comput., vol. 17, no. 4, pp. 770–785, Aug. 1988.

    Article  MathSciNet  Google Scholar 

  4. N. Deo and S. Prasad, “Parallel Heap,” Proc. Int. Conf. Parallel Process., vol. III, 1990, pp. 169–172.

    Google Scholar 

  5. W.-B. IIorng and S. K. Das, Heaps — Concurrency and Parallelism, Tech. Rep. #N-90–003, Dept. Comput. Sci., Univ. North Texas, Denton, Mar. 1990.

    Google Scholar 

  6. E. Horowitz and S. Sahni, Fundamentals of Computer Algorithms, Computer Science Press, Rockville, Maryland, 1978.

    MATH  Google Scholar 

  7. D. W. Jones, “Concurrent Operations on Priority Queues,” Commun. ACM, vol. 32, no. 1, pp. 132–137, Jan. 1989.

    Article  Google Scholar 

  8. R. M. Karp and V. Ramachandran, “Parallel Algorithms for Shared-Memory Machines,” in Handbook of Theoretical Computer Science, Volume A: Algorithms and Complexity ( J. van Leeuwen, Ed.), MIT Press, Cambridge, MA, 1990, pp. 869–941.

    MATH  Google Scholar 

  9. R. E. Ladner and M. J. Fischer, “Parallel Prefix Computation,” J. ACM, vol. 27, no. 4, pp. 831–838, Oct. 1980.

    Article  MathSciNet  Google Scholar 

  10. T.-W. Lai and S. Sahni, “Anomalies in Parallel Branch-and-Bound Algorithms,” Commun. ACM, vol. 27, no. 6, pp. 594–602, June 1984.

    Article  MathSciNet  Google Scholar 

  11. T.-W. Lai and A. Sprague, “Performance of Parallel Branch-and-Bound Algorithms,” IEEE Trans. Comput., vol. C-34, no. 10, pp. 962–964, Oct. 1985.

    Google Scholar 

  12. G.-J. Li and B. W. Wah, “Coping with Anomalies in Parallel Branch-and-Bound Algorithms,” IEEE Trans. Comput., vol. C-35, no. 6, pp. 568–573, June 1986.

    Google Scholar 

  13. M. J. Quinn and Y. B. Yoo, “Data Structures for the Efficient Solution of Graph Theoretic Problems on Tightly-Coupled MIMD Computers,” Proc. Int. Conf. Parallel Process., 1984, pp. 431–438.

    Google Scholar 

  14. V. N. Rao and V. Kumar, “Concurrent Access of Priority Queues,” IEEE Trans. Comput., vol. 37, no. 12, pp. 1657–1665, Dec. 1988.

    Article  Google Scholar 

  15. B. Wah and Y. Ma, “MANIP — A Parallel Computer System for Implementing Branch-and-Bound Algorithm,” Proc. 8th Annu. Symp. Comput. Archi., 1982, pp. 239–262.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 1991 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Das, S.K., Horng, WB. (1991). Managing a Parallel Heap Efficiently. In: Aarts, E.H.L., van Leeuwen, J., Rem, M. (eds) Parle ’91 Parallel Architectures and Languages Europe. Lecture Notes in Computer Science, vol 505. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-25209-3_19

Download citation

  • DOI: https://doi.org/10.1007/978-3-662-25209-3_19

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-662-23206-4

  • Online ISBN: 978-3-662-25209-3

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics