Skip to main content
Log in

Average search and update costs in skip lists

  • Algorithm Theory
  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

Abstract

Skip lists, introduced by Pugh, provide an alternative to search trees, although a precise analysis of their behaviour had been elusive. The exact value of the expected cost for the search of themth element in a skip list ofn elements is derived first in terms of previously studied functions, and secondly as an asymptotic expression. The latter suggests that Pugh's upper bound of the expected search cost is fairly tight for the interesting cases. Assuming a uniform query distribution, the exact and an asymptotic value of the average (over allm) expected search cost in a skip list ofn elements is also derived. Finally, all insert and delete costs are obtained.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Aragon, C. R. and Seidel, R. G.Randomized search trees. Proceedings of the 30th Annual IEEE Symposium on Foundations of Computer Science, Research Triangle Park, NC, Oct. 1989, pp. 540–545.

  2. Culberson, J. and Munro, J. I.Explaining the behaviour of binary search trees under prolonged updates: a model and simulations. The Computer Journal, vol. 32, no. 1, Feb. 1989, pp. 68–75.

    Google Scholar 

  3. Culberson, J. and Munro, J. I.Analysis of the standard deletion algorithms in exact fit domain for binary search trees. Algorithmica, vol. 5, no. 3, 1990, pp. 295–311.

    Google Scholar 

  4. Devroye, L.Expected time analysis of skip lists. Technical Report, School of Computer Science, McGill University, Montreal, 1990.

    Google Scholar 

  5. Devroye, L.A limit theory for random skip lists. Annals of Applied Probability, to appear.

  6. Flajolet, P.Mathematical methods in the analysis of algorithms and data structures. In Trends in Theoretical Computer Science, Börger, E., ed., Computer Science Press, 1988, pp. 225–304.

  7. Knuth, D. E.The Art of Computer Programming, Volume 3: Sorting and Searching. Addison-Wesley, 1973.

  8. Mahmoud, H.Evolutions of Random Search Trees, John Wiley & Sons, 1991.

  9. Papadakis, T., Munro, J. I. and Poblete, P.Analysis of the expected search cost in skip lists. Lecture Notes in Computer Science, no. 447, Proceedings of the 2nd Scandinavian Workshop of Algorithm Theory. Bergen, Norway, July 1990, pp. 160–172.

  10. Pugh, W.Skip lists: a probabilistic alternative to balanced trees. Communications of the ACM, vol. 33, no. 6, June 1990, pp. 668–676.

    Google Scholar 

  11. Pugh, W.A skip list cook book. Technical Report CS-TR-2286, Department of Computer Science, University of Maryland, College Park, July 1989.

    Google Scholar 

  12. Vitter, J. S. and Flajolet, P.Average-case analysis of algorithms and data structures. InHandbook of Theoretical Computer Science, The MIT Press, 1990, pp. 431–524.

Download references

Author information

Authors and Affiliations

Authors

Additional information

This research was supported in part by the Natural Science and Engineering Research Council of Canada under grant No. A-8237, the Information Technology Research Centre of Ontario, and FON-DECYT (Chile) under grant 91-1252.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Papadakis, T., Ian Munro, J. & Poblete, P.V. Average search and update costs in skip lists. BIT 32, 316–332 (1992). https://doi.org/10.1007/BF01994884

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01994884

CR classification

AMS classification

Keywords

Navigation