Skip to main content

Closing the Gap Between Theory and Practice: New Measures for On-Line Algorithm Analysis

  • Conference paper
WALCOM: Algorithms and Computation (WALCOM 2008)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 4921))

Included in the following conference series:

Abstract

We compare the theory and practice of online algorithms, and show that in certain instances there is a large gap between the predictions from theory and observed practice. In particular, the competitive ratio which is the main technique for analysis of online algorithms is known to produce unrealistic measures of performance in certain settings. Motivated by this we examine first the case of paging. We present a study of the reasons behind this apparent failure of the theoretical model. We then show that a new measure derived from first principles and introduced by [Angelopoulos, Dorrigiv and López-Ortiz, SODA 2007] better corresponds to observed practice. Using these ideas, we derive a new framework termed the cooperative ratio that generalizes to all other online analysis settings and illustrate with examples in list update.

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. Aggarwal, A., Vitter, J.S.: The Input/Output complexity of sorting and related problems. Communications of the ACM 31(9), 1116–1127 (1988)

    Article  MathSciNet  Google Scholar 

  2. Albers, S., Favrholdt, L.M., Giel, O.: On paging with locality of reference. Journal of Computer and System Sciences 70(2), 145–175 (2005)

    Article  MATH  MathSciNet  Google Scholar 

  3. Albers, S., Westbrook, J.: Self-organizing data structures. In: Fiat, A. (ed.) Online Algorithms. LNCS, vol. 1442, pp. 13–51. Springer, Heidelberg (1998)

    Chapter  Google Scholar 

  4. Angelopoulos, S., Dorrigiv, R., López-Ortiz, A.: List update with locality of reference: Mtf outperforms all other algorithms. Technical Report CS-2006-46, University of Waterloo, Cheriton School of Computer science (November 2006)

    Google Scholar 

  5. Angelopoulos, S., Dorrigiv, R., López-Ortiz, A.: On the separation and equivalence of paging strategies. In: SODA 2007. Proceedings of the 18th ACM-SIAM Symposium on Discrete Algorithms, pp. 229–237 (2007)

    Google Scholar 

  6. Bachrach, R., El-Yaniv, R.: Online list accessing algorithms and their applications: Recent empirical evidence. In: SODA 1997. Proceedings of the 8th Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 53–62 (1997)

    Google Scholar 

  7. Becchetti, L.: Modeling locality: A probabilistic analysis of LRU and FWF. In: Albers, S., Radzik, T. (eds.) ESA 2004. LNCS, vol. 3221, pp. 98–109. Springer, Heidelberg (2004)

    Google Scholar 

  8. Ben-David, S., Borodin, A.: A new measure for the study of on-line algorithms. Algorithmica 11, 73–91 (1994)

    Article  MATH  MathSciNet  Google Scholar 

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

    MATH  Google Scholar 

  10. Borodin, A., Irani, S., Raghavan, P., Schieber, B.: Competitive paging with locality of reference. Journal of Computer and System Sciences 50, 244–258 (1995)

    Article  MATH  MathSciNet  Google Scholar 

  11. Boyar, J., Favrholdt, L.M.: The relative worst order ratio for on-line algorithms. In: Proceedings of the 5th Italian Conference on Algorithms and Complexity (2003)

    Google Scholar 

  12. Boyar, J., Favrholdt, L.M., Larsen, K.S.: The relative worst order ratio applied to paging. In: SODA 2005. Proceedings of the 16th ACM-SIAM Symposium on Discrete Algorithms, pp. 718–727 (2005)

    Google Scholar 

  13. Boyar, J., Larsen, K.S.: The Seat Reservation Problem. Algorithmica 25(4), 403–417 (1999)

    Article  MATH  MathSciNet  Google Scholar 

  14. Boyar, J., Larsen, K.S., Nielsen, M.N.: The Accommodating Function: A generalization of the competitive ratio. SIAM Journal on Computing 31(1), 233–258 (2001)

    Article  MATH  MathSciNet  Google Scholar 

  15. Boyar, J., Medvedev, P.: The relative worst order ratio applied to seat reservation. In: Hagerup, T., Katajainen, J. (eds.) SWAT 2004. LNCS, vol. 3111, pp. 90–101. Springer, Heidelberg (2004)

    Google Scholar 

  16. Chrobak, M., Noga, J.: LRU is better than FIFO. Algorithmica 23(2), 180–185 (1999)

    Article  MATH  MathSciNet  Google Scholar 

  17. Denning, P.J.: The working set model for program behaviour. Communications of the ACM, 11(5) (May 1968)

    Google Scholar 

  18. Dorrigiv, R., López-Ortiz, A.: A survey of performance measures for on-line algorithms. SIGACT News (ACM Special Interest Group on Automata and Computability Theory) 36(3), 67–81 (2005)

    Google Scholar 

  19. Dorrigiv, R., López-Ortiz, A.: The cooperative ratio of on-line algorithms. Technical Report CS-2007-39, University of Waterloo, Cheriton School of Computer science (October 2007)

    Google Scholar 

  20. Dorrigiv, R., López-Ortiz, A.: On certain new models for paging with locality of reference. In: WALCOM 2008. Proceedings of the 2nd Workshop on Algorithms and Computation ( to appear, 2008)

    Google Scholar 

  21. Dorrigiv, R., López-Ortiz, A., Munro, J.I.: On the relative dominance of paging algorithms. In: ISAAC 2007. Proceedings of the 18th International Symposium on Algorithms and Computation (to appear, 2007)

    Google Scholar 

  22. Fiat, A., Woeginger, G.J.: Competitive odds and ends. In: Fiat, A. (ed.) Online Algorithms. LNCS, vol. 1442, pp. 385–394. Springer, Heidelberg (1998)

    Chapter  Google Scholar 

  23. Hester, J.H., Hirschberg, D.S.: Self-organizing linear search. ACM Computing Surveys 17(3), 295 (1985)

    Article  Google Scholar 

  24. Irani, S.: Competitive analysis of paging. In: Fiat, A., Woeginger, G.J. (eds.) Online Algorithms. LNCS, vol. 1442, pp. 52–73. Springer, Heidelberg (1998)

    Chapter  Google Scholar 

  25. Irani, S., Karlin, A.R., Phillips, S.: Strongly competitive algorithms for paging with locality of reference. SIAM Journal on Computing 25, 477–497 (1996)

    Article  MATH  MathSciNet  Google Scholar 

  26. Karlin, A.R., Phillips, S.J., Raghavan, P.: Markov paging. SIAM Journal on Computing 30(3), 906–922 (2000)

    Article  MATH  MathSciNet  Google Scholar 

  27. Kenyon, C.: Best-fit bin-packing with random order. In: SODA 1996. Proceedings of the 7th Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 359–364 (1996)

    Google Scholar 

  28. Koutsoupias, E., Papadimitriou, C.: Beyond competitive analysis. SIAM Journal on Computing 30, 300–317 (2000)

    Article  MATH  MathSciNet  Google Scholar 

  29. Panagiotou, K., Souza, A.: On adequate performance measures for paging. In: STOC 2006. Proceedings of the 38th Annual ACM Symposium on Theory of Computing, pp. 487–496 (2006)

    Google Scholar 

  30. Prokop, H.: Cache-oblivious algorithms. Master’s thesis, Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science (1999)

    Google Scholar 

  31. Reingold, N., Westbrook, J., Sleator, D.D.: Randomized competitive algorithms for the list update problem. Algorithmica 11, 15–32 (1994)

    Article  MATH  MathSciNet  Google Scholar 

  32. Schulz, F.: Two new families of list update algorithms. In: Chwa, K.-Y., Ibarra, O.H. (eds.) ISAAC 1998. LNCS, vol. 1533, pp. 99–108. Springer, Heidelberg (1998)

    Chapter  Google Scholar 

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

    Article  MathSciNet  Google Scholar 

  34. Torng, E.: A unified analysis of paging and caching. Algorithmica 20(2), 175–200 (1998)

    Article  MATH  MathSciNet  Google Scholar 

  35. Young, N.E.: The k-server dual and loose competitiveness for paging. Algorithmica 11(6), 525–541 (1994)

    Article  MathSciNet  Google Scholar 

  36. Young, N.E.: Bounding the diffuse adversary. In: SODA 1998. Proceedings of the 9th Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 420–425 (1998)

    Google Scholar 

  37. Young, N.E.: On-line paging against adversarially biased random inputs. Journal of Algorithms 37(1), 218–235 (2000)

    Article  MATH  MathSciNet  Google Scholar 

  38. Young, N.E.: On-line file caching. Algorithmica 33(3), 371–383 (2002)

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Shin-ichi Nakano Md. Saidur Rahman

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Dorrigiv, R., López-Ortiz, A. (2008). Closing the Gap Between Theory and Practice: New Measures for On-Line Algorithm Analysis. In: Nakano, Si., Rahman, M.S. (eds) WALCOM: Algorithms and Computation. WALCOM 2008. Lecture Notes in Computer Science, vol 4921. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-77891-2_2

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-77891-2_2

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-77890-5

  • Online ISBN: 978-3-540-77891-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics