Skip to main content
Log in

A Comparison of Performance Measures for Online Algorithms

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract

This paper provides a systematic study of several proposed measures for online algorithms in the context of a specific problem, namely, the two server problem on three colinear points. Even though the problem is simple, it encapsulates a core challenge in online algorithms which is to balance greediness and adaptability. We examine Competitive Analysis, the Max/Max Ratio, the Random Order Ratio, Bijective Analysis and Relative Worst Order Analysis, and determine how these measures compare the Greedy Algorithm, Double Coverage, and Lazy Double Coverage, commonly studied algorithms in the context of server problems. We find that by the Max/Max Ratio and Bijective Analysis, Greedy is the best of the three algorithms. Under the other measures, Double Coverage and Lazy Double Coverage are better, though Relative Worst Order Analysis indicates that Greedy is sometimes better. Only Bijective Analysis and Relative Worst Order Analysis indicate that Lazy Double Coverage is better than Double Coverage. Our results also provide the first proof of optimality of an algorithm under Relative Worst Order Analysis.

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

Similar content being viewed by others

References

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

  2. Balakrishnan, N., Koutras, M.V.: Runs and Scans with Applications. Wiley, Hoboken (2002)

    MATH  Google Scholar 

  3. Bein, W.W., Iwama, K., Kawahara, J.: Randomized competitive analysis for two-server problems. In: 16th Annual European Symposium on Algorithms, Lecture Notes in Computer Science, vol. 5193, pp. 161–172. Springer (2008)

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

    Article  MATH  MathSciNet  Google Scholar 

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

    MATH  Google Scholar 

  6. Boyar, J., Favrholdt, L.M.: The relative worst order ratio for on-line algorithms. ACM Trans. Algorithms 3(2), 22 (2007)

    Article  MathSciNet  Google Scholar 

  7. Boyar, J., Favrholdt, L.M., Larsen, K.S.: The relative worst order ratio applied to paging. J. Comput. Syst. Sci. 73(5), 818–843 (2007)

    Article  MATH  MathSciNet  Google Scholar 

  8. Burr, E.J., Cane, G.: Longest run of consecutive observatons having a specified attribute. Biometrika 48(3/4), 461–465 (1961)

    Article  MATH  MathSciNet  Google Scholar 

  9. Chrobak, M., Karloff, H.J., Payne, T.H., Vishwanathan, S.: New results on server problems. SIAM J Discret. Math. 4(2), 172–181 (1991)

    Article  MATH  MathSciNet  Google Scholar 

  10. Dorrigiv, R., López-Ortiz, A.: A survey of performance measures for on-line algorithms. SIGACT News 36(3), 67–81 (2005)

    Article  Google Scholar 

  11. Dorrigiv, R., López-Ortiz, A., Munro, J.I.: On the relative dominance of paging algorithms. Theor. Comput. Sci. 410(38–40), 3694–3701 (2009)

    Article  MATH  Google Scholar 

  12. Feller, W.: An Introduction to Probability Theory and Its Applications, vol. 1, 3rd edn. Wiley, New York (1968)

    MATH  Google Scholar 

  13. Graham, R.L.: Bounds for certain multiprocessing anomalies. Bell Syst. Tech. J. 45, 1563–1581 (1966)

    Article  Google Scholar 

  14. Coffman Jr, E.G., Csirik J., Rónyai, L., Zsbán, A.: Random-order bin packing. Discret. Appl. Math. 156(14), 2810–2816 (2008)

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

    Article  MATH  MathSciNet  Google Scholar 

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

  17. Manasse, M.S., McGeoch, L.A., Sleator, D.D.: Competitive algorithms for on-line problems. In: 20th Annual ACM Symposium on the Theory of Computing, pp. 322–333 (1988)

  18. Manasse, M.S., McGeoch, L.A., Sleator, D.D.: Competitive algorithms for server problems. J. Algorithms 11(2), 208–230 (1990)

    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 

Download references

Acknowledgments

The first and third author were supported in part by the Danish Council for Independent Research, Natural Sciences. Part of this work was carried out while these authors were visiting the University of California, Irvine, and the University of Waterloo, Canada. The second author was supported in part by NSF Grants CCR-0514082 and CCF-0916181. The authors would like to thank Christian Kudahl for calling their attention to two oversights in a previous version of this paper, one in the definition of the lazy version of an algorithm, and another in the modified definition of the Random Order Ratio.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kim S. Larsen.

Additional information

A preliminary version of this paper appeared in 11th International Algorithms and Data Structures Symposium (WADS 2009). Lecture Notes in Computer Science, vol. 5664, pp. 119–130, Springer (2009).

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Boyar, J., Irani, S. & Larsen, K.S. A Comparison of Performance Measures for Online Algorithms. Algorithmica 72, 969–994 (2015). https://doi.org/10.1007/s00453-014-9884-6

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00453-014-9884-6

Keywords

Navigation