Abstract
It is well-established that input sequences for paging and list update have locality of reference. In this paper we analyze the performance of algorithms for these problems in terms of the amount of locality in the input sequence. We define a measure for locality that is based on Denning’s working set model and express the performance of well known algorithms in terms of this parameter. This explicitly introduces parameterized-style analysis to online algorithms. The idea is that rather than normalizing the performance of an online algorithm by an (optimal) offline algorithm, we explicitly express the behavior of the algorithm in terms of two more natural parameters: the size of the cache and Denning’s working set measure. This technique creates a performance hierarchy of paging algorithms which better reflects their experimentally observed relative strengths. It also reflects the intuition that a larger cache leads to a better performance. We also apply the parameterized analysis framework to list update and show that certain randomized algorithms which are superior to MTF in the classical model are not so in the parameterized case, which matches experimental results.

Similar content being viewed by others
Notes
Observe that we somehow assume that all pages are requested just before the first request of the sequence. This is similar to the prefetching optimization trick of LZ77 in which the alphabet is synthetically prepended to the text.
References
Albers, S.: Improved randomized on-line algorithms for the list update problem. SIAM J. Comput. 27(3), 682–693 (1998)
Albers, S., Favrholdt, L.M., Giel, O.: On paging with locality of reference. J. Comput. Syst. Sci. 70(2), 145–175 (2005)
Albers, S., Lauer, S.: On list update with locality of reference. In: Proceedings of the 35th International Colloquium on Automata, Languages and Programming (ICALP ’08). Lecture Notes in Computer Science, vol. 5125, pp. 96–107 (2008)
Angelopoulos, S.: Parameterized analysis of online steiner tree problems. In: Adaptive, Output Sensitive, Online and Parameterized Algorithms. Dagstuhl Seminar Proceedings, vol. 09171 (2009)
Angelopoulos, S., Dorrigiv, R., López-Ortiz, A.: On the separation and equivalence of paging strategies. In: Proceedings of the 18th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA ’07), pp. 229–237 (2007)
Angelopoulos, S., Dorrigiv, R., López-Ortiz, A.: List update with locality of reference. In: Proceedings of the 8th Latin American Theoretical Informatics Symposium (LATIN ’08). Lecture Notes in Computer Science, vol. 4957, pp. 399–410 (2008)
Angelopoulos, S., Schweitzer, P.: Paging and list update under bijective analysis. In: Proceedings of the 20th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA ’09), pp. 1136–1145 (2009)
Bachrach, R., El-Yaniv, R.: Online list accessing algorithms and their applications: recent empirical evidence. In: Proceedings of the 8th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA ’97), pp. 53–62 (1997)
Bachrach, R., El-Yaniv, R., Reinstaedtler, M.: On the competitive theory and practice of list accessing algorithms. Algorithmica 32(2), 201–246 (2002)
Becchetti, L.: Modeling locality: a probabilistic analysis of LRU and FWF. In: Proceedings of the 12th Annual European Symposium on Algorithms (ESA ’04). Lecture Notes in Computer Science, vol. 3221, pp. 98–109 (2004)
Ben-David, S., Borodin, A.: A new measure for the study of on-line algorithms. Algorithmica 11(1), 73–91 (1994)
Bentley, J.L., Sleator, D.D., Tarjan, R.E., Wei, V.K.: A locally adaptive data compression scheme. Commun. ACM 29(4), 320–330 (1986)
Borodin, A., El-Yaniv, R.: Online Computation and Competitive Analysis. Cambridge University Press, Cambridge (1998)
Borodin, A., Irani, S., Raghavan, P., Schieber, B.: Competitive paging with locality of reference. J. Comput. Syst. Sci. 50(2), 244–258 (1995)
Borodin, A., Irani, S., Raghavan, P., Schieber, B.: Competitive paging with locality of reference. J. Comput. Syst. Sci. 50(2), 244–258 (1995)
Bose, P., Douïeb, K., Langerman, S.: Dynamic optimality for skip lists and B-trees. In: Proceedings of the 19th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA ’08), pp. 1106–1114 (2008)
Boyar, J., Ehmsen, M.R., Larsen, K.S.: A theoretical comparison of LRU and LRU-K. Acta Inform. 47(7–8), 359–374 (2010)
Boyar, J., Favrholdt, L.M.: The relative worst order ratio for online algorithms. ACM Trans. Algorithms 3(2) (2007)
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)
Boyar, J., Medvedev, P.: The relative worst order ratio applied to seat reservation. ACM Trans. Algorithms 48, 1 (2008)
Chrobak, M., Noga, J.: LRU is better than FIFO. Algorithmica 23(2), 180–185 (1999)
Denning, P.J.: The working set model for program behaviour. Commun. ACM 11(5), 323–333 (1968)
Denning, P.J.: Working sets past and present. IEEE Trans. Softw. Eng. 6(1), 64–84 (1980)
Denning, P.J.: The locality principle. Commun. ACM 48(7), 19–24 (2005)
Dorrigiv, R., Ehmsen, M.R., López-Ortiz, A.: Parameterized analysis of paging and list update algorithms. In: Proceedings of the 7th Workshop on Approximation and Online Algorithms (WAOA ’09). Lecture Notes in Computer Science, vol. 5893, pp. 104–115 (2009)
Dorrigiv, R., López-Ortiz, A.: A survey of performance measures for on-line algorithms. ACM SIGACT News 36(3), 67–81 (2005)
Dorrigiv, R., López-Ortiz, A.: The cooperative ratio of on-line algorithms. Technical Report CS-2007-39, Cheriton School of Computer Science, University of Waterloo (October 2007)
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)
Downey, R.G., Fellows, M.R.: Parameterized Complexity. Springer, Berlin (1999)
Estivill-Castro, V., Wood, D.: A survey of adaptive sorting algorithms. ACM Comput. Surv. 24(4), 441–476 (1992)
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)
Flum, J., Grohe, M.: Parameterized Complexity Theory (Texts in Theoretical Computer Science. An EATCS Series). Springer, New York (2006)
Hester, J.H., Hirschberg, D.S.: Self-organizing linear search. ACM Comput. Surv. 17(3), 295 (1985)
Iacono, J.: Improved upper bounds for pairing heaps. In: Proceedings of the 7th Scandinavian Workshop on Algorithm Theory (SWAT ’00). Lecture Notes in Computer Science, vol. 1851, pp. 32–45 (2000)
Iacono, J.: Alternatives to splay trees with O(logn) worst-case access times. In: Proceedings of the 12th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA ’01), pp. 516–522 (2001)
Kaplan, H., Landau, S., Verbin, E.: A simpler analysis of Burrows–Wheeler-based compression. Theor. Comput. Sci. 387(3), 220–235 (2007)
Karlin, A.R., Phillips, S.J., Raghavan, P.: Markov paging. SIAM J. Comput. 30(3), 906–922 (2000)
Kenyon, C.: Best-fit bin-packing with random order. In: Proceedings of the 7th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA ’96), pp. 359–364 (1996)
Koutsoupias, E., Papadimitriou, C.: Beyond competitive analysis. SIAM J. Comput. 30(1), 300–317 (2000)
Manzini, G.: An analysis of the Burrows–Wheeler transform. J. ACM 48(3), 407–430 (2001)
O’Neil, E.J., O’Neil, P.E., Weikum, G.: The LRU-K page replacement algorithm for database disk buffering. In: ACM SIGMOD Record, vol. 22, pp. 297–306 (1993)
Panagiotou, K., Souza, A.: On adequate performance measures for paging. In: Proceedings of the 38th Annual ACM Symposium on Theory of Computing (STOC ’06), pp. 487–496 (2006)
Reingold, N., Westbrook, J.: Randomized algorithms for the list update problem. Technical Report YALEU/DCS/TR-804, Yale University (June 1990)
Reingold, N., Westbrook, J., Sleator, D.D.: Randomized competitive algorithms for the list update problem. Algorithmica 11(1), 15–32 (1994)
Schulz, F.: Two new families of list update algorithms. In: Proceedings of the 9th International Symposium on Algorithms and Computation (ISAAC ’98). Lecture Notes in Computer Science, vol. 1533, pp. 99–108 (1998)
Silberschatz, A., Galvin, P.B., Gagne, G.: Operating System Concepts. Wiley, New York (2002)
Sleator, D.D., Tarjan, R.E.: Amortized efficiency of list update and paging rules. Commun. ACM 28(2), 202–208 (1985)
Sleator, D.D., Tarjan, R.E.: Self-adjusting binary search trees. J. ACM 32(3), 652–686 (1985)
Torng, E.: A unified analysis of paging and caching. Algorithmica 20(2), 175–200 (1998)
New Mexico State University. Homepage of new Mexico state university tracebase (online). Available at: http://tracebase.nmsu.edu/tracebase.html
Young, N.E.: The k-server dual and loose competitiveness for paging. Algorithmica 11(6), 525–541 (1994)
Young, N.E.: Bounding the diffuse adversary. In: Proceedings of the 9th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA ’98), pp. 420–425 (1998)
Young, N.E.: On-line paging against adversarially biased random inputs. J. Algorithms 37(1), 218–235 (2000)
Young, N.E.: On-line file caching. Algorithmica 33(3), 371–383 (2002)
Author information
Authors and Affiliations
Corresponding author
Additional information
A preliminary version of this paper appeared at WAOA 2009 [25].
Rights and permissions
About this article
Cite this article
Dorrigiv, R., Ehmsen, M.R. & López-Ortiz, A. Parameterized Analysis of Paging and List Update Algorithms. Algorithmica 71, 330–353 (2015). https://doi.org/10.1007/s00453-013-9800-5
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00453-013-9800-5