Skip to main content

Selection from read-only memory and sorting with optimum data movement

  • Conference paper
  • First Online:
Foundations of Software Technology and Theoretical Computer Science (FSTTCS 1992)

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

  • 188 Accesses

Abstract

The process of selecting an element of a given rank (for example, the median) from a given list is an important problem in computer science. Here, we consider the scenario when the given list resides in a read-only memory array and hence the elements cannot be moved within the array. We develop efficient deterministic and randomized algorithms for selection that use very little extra space (o(log n) number of extra storage cells). These algorithms complement the upper bounds for the time-space trade-offs obtained by Munro and Paterson[8] and Frederickson[3] who developed algorithms for selection in the same model when Ω((log n)2) extra storage cells are available. We apply our selection algorithms to obtain sorting algorithms that perform the optimum number of data movements on any given list, after deriving first this optimum bound for a given list. We also derive interesting upper bounds for time-space tradeoffs for sorting with optimum data movement.

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. M. Blum, R. W. Floyd, V. Pratt, R. L. Rivest, and R. E. Tarjan, Time Bounds for Selection, Journal of Computer and System Sciences, 7 (1973) 448–461.

    Google Scholar 

  2. R. W. Floyd and R. Rivest, Expected Time Bounds for Selection, Communications of the ACM, 18 (3) (1975) 165–172.

    Article  Google Scholar 

  3. G. N. Frederickson, Upper Bounds for Time-Space Trade-offs in Sorting and Selection, Journal of Computer and System Sciences, 34 (1987) 19–26.

    Article  Google Scholar 

  4. G. H. Gonnet, Handbook of Algorithms and Data Structures, Addison-Wesley (1984).

    Google Scholar 

  5. C. A. R. Hoare, Algorithms 64 PARTITION and Algorithm 65 FIND, Communications of the ACM 4 (1961), 321.

    Article  Google Scholar 

  6. D. E. Knuth, The Art of Computer Programming. Volume III: Sorting and Searching, Addison-Wesley (1973).

    Google Scholar 

  7. D. E. Knuth, Mathematical Analysis of Algorithms, Proceedings, I.F.I.P. Congress, (Ed. C.V. Frieman) 19–27, North-Holland. Amsterdam. 1972.

    Google Scholar 

  8. J. 1. Munro and M. S. Paterson, Selection and Sorting with Limited Storage, Theoretical Computer Science, 12 (1980) 315–323.

    Article  Google Scholar 

  9. J. I. Munro and V. Raman, Sorting with Minimum Data Movement, Proceedings of the Workshop on Algorithms and Data Structures, Ottawa, Lecture Notes in Computer Science, Springer Verlag 382 (1989), 552–562; an improved version to appear in Journal of Algorithms.

    Google Scholar 

  10. V. Raman, Sorting In-Place with Minimum Data Movement, Ph.D. Thesis, Technical Report CS-91-12, Department of Computer Science, University of Waterloo, (1991).

    Google Scholar 

  11. A. Schonage, M. Paterson and N. Pippenger, Finding the median, Journal of Computer and System Sciences, 13 (1976), 184–199.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Rudrapatna Shyamasundar

Rights and permissions

Reprints and permissions

Copyright information

© 1992 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Munro, J.I., Raman, V. (1992). Selection from read-only memory and sorting with optimum data movement. In: Shyamasundar, R. (eds) Foundations of Software Technology and Theoretical Computer Science. FSTTCS 1992. Lecture Notes in Computer Science, vol 652. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-56287-7_120

Download citation

  • DOI: https://doi.org/10.1007/3-540-56287-7_120

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-56287-0

  • Online ISBN: 978-3-540-47507-1

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics