Skip to main content
Log in

OnlineMin: A Fast Strongly Competitive Randomized Paging Algorithm

  • Published:
Theory of Computing Systems Aims and scope Submit manuscript

Abstract

In the field of online algorithms paging is one of the most studied problems. For randomized paging algorithms a tight bound of H k on the competitive ratio has been known for decades, yet existing algorithms matching this bound have high running times. We present a new randomized paging algorithm OnlineMin that has optimal competitiveness and allows fast implementations. In fact, if k pages fit in internal memory the best previous solution required O(k 2) time per request and O(k) space. We present two implementations of OnlineMin which use O(k) space, but only O(logk) worst case time and O(logk/loglogk) worst case time per page request respectively.

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.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5

Similar content being viewed by others

Notes

  1. In [6] Equitable2 is denoted A k . Due to its similarity to Equitable we use its original name of Equitable2.

  2. Since no explicit implementation of Equitable2 is provided, due to their similarity we assume it to be the same as for Equitable.

  3. We use a slightly modified, yet equivalent, version of the layer representation in [16].

  4. For easiness of exposition we refer by ω to both the offset function and its corresponding layer representation.

  5. Theorem 1 does not explicitly take into account the forgiveness step. According to Definition 1, if pL 0 and forgiveness is applied we treat p as if it was requested in L 1.

References

  1. Achlioptas, D., Chrobak, M., Noga, J.: Competitive analysis of randomized paging algorithms. Theor. Comput. Sci. 234(1–2), 203–218 (2000)

    Article  MATH  MathSciNet  Google Scholar 

  2. Albers, S.: Online algorithms: a survey. Math. Program. 97(1–2), 3–26 (2003)

    MATH  MathSciNet  Google Scholar 

  3. Alstrup, S., Husfeldt, T., Rauhe, T.: Marked ancestor problems. In: Proc. 39th Annual Symposium on Foundations of Computer Science, pp. 534–544. IEEE Comp. Soc., Los Alamitos (1998)

    Google Scholar 

  4. Andersson, A., Thorup, M.: Dynamic ordered sets with exponential search trees. J. ACM 54(3), 13 (2007)

    Article  MathSciNet  Google Scholar 

  5. Bayer, R., McCreight, E.: Organization and maintenance of large ordered indexes. Acta Inform. 1(3), 173–189 (1972)

    Article  Google Scholar 

  6. Bein, W.W., Larmore, L.L., Noga, J., Reischuk, R.: Knowledge state algorithms. Algorithmica 60(3), 653–678 (2011)

    Article  MATH  MathSciNet  Google Scholar 

  7. Belady, L.A.: A study of replacement algorithms for virtual-storage computer. IBM Syst. J. 5(2), 78–101 (1966)

    Article  Google Scholar 

  8. Borodin, A., El-Yaniv, R.: Online Computation and Competitive Analysis. Cambridge University Press, Cambridge (1998)

    MATH  Google Scholar 

  9. Chrobak, M., Koutsoupias, E., Noga, J.: More on randomized on-line algorithms for caching. Theor. Comput. Sci. 290(3), 1997–2008 (2003)

    Article  MATH  MathSciNet  Google Scholar 

  10. Fiat, A., Karp, R.M., Luby, M., McGeoch, L.A., Sleator, D.D., Young, N.E.: Competitive paging algorithms. J. Algorithms 12(4), 685–699 (1991)

    Article  MATH  Google Scholar 

  11. Fiat, A., Woeginger, G.J. (eds.): Online Algorithms, the State of the Art. Lecture Notes in Computer Science, vol. 1442. Springer, Berlin (1998) (the book grow out of a Dagstuhl Seminar, June 1996)

    MATH  Google Scholar 

  12. Fisher, R.A., Yates, F.: Statistical Tables for Biological, Agricultural, and Medical Research, 3rd edn. Oliver & Boyd, Edinburgh (1948)

    MATH  Google Scholar 

  13. Fredman, M.L., Willard, D.E.: Surpassing the information theoretic bound with fusion trees. J. Comput. Syst. Sci. 47(3), 424–436 (1993)

    Article  MATH  MathSciNet  Google Scholar 

  14. Fredman, M.L., Willard, D.E.: Trans-dichotomous algorithms for minimum spanning trees and shortest paths. J. Comput. Syst. Sci. 48(3), 533–551 (1994)

    Article  MATH  MathSciNet  Google Scholar 

  15. Karlin, A.R., Manasse, M.S., Rudolph, L., Sleator, D.D.: Competitive snoopy caching. Algorithmica 3, 77–119 (1988)

    Article  MathSciNet  Google Scholar 

  16. Koutsoupias, E., Papadimitriou, C.H.: Beyond competitive analysis. In: Proc. 35th Symposium on Foundations of Computer Science, pp. 394–400. IEEE Comput. Soc., Los Alamitos (1994)

    Chapter  Google Scholar 

  17. McCreight, E.M.: Priority search trees. SIAM J. Comput. 14(2), 257–276 (1985)

    Article  MATH  MathSciNet  Google Scholar 

  18. McGeoch, L.A., Sleator, D.D.: A strongly competitive randomized paging algorithm. Algorithmica 6(6), 816–825 (1991)

    Article  MATH  MathSciNet  Google Scholar 

  19. Sleator, D.D., Tarjan, R.E.: Amortized efficiency of list update and paging rules. Commun. ACM 28(2), 202–208 (1985)

    Article  MathSciNet  Google Scholar 

  20. Willard, D.E.: Examining computational geometry, van Emde Boas trees, and hashing from the perspective of the fusion tree. SIAM J. Comput. 29(3), 1030–1049 (2000)

    Article  MATH  MathSciNet  Google Scholar 

Download references

Acknowledgements

We would like to thank previous anonymous reviewers for very insightful comments and suggestions. Also, we would like to thank Annamária Kovács for useful advice on improving the presentation of the paper.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Gabriel Moruz.

Additional information

G. Moruz was partially supported by the DFG grants ME 3250/1-3 and MO 2057/1-1, and by MADALGO.

A. Negoescu was partially supported by DFG grant ME 3250/1-3 and by MADALGO.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Brodal, G.S., Moruz, G. & Negoescu, A. OnlineMin: A Fast Strongly Competitive Randomized Paging Algorithm. Theory Comput Syst 56, 22–40 (2015). https://doi.org/10.1007/s00224-012-9427-y

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00224-012-9427-y

Keywords

Navigation