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

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 Lopez-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.

[1]  Allan Borodin,et al.  Online computation and competitive analysis , 1998 .

[2]  C. Kenyon Best-fit bin-packing with random order , 1996, SODA '96.

[3]  Marek Chrobak,et al.  LRU Is Better than FIFO , 1999, SODA '98.

[4]  Ran El-Yaniv,et al.  Online list accessing algorithms and their applications: recent empirical evidence , 1997, SODA '97.

[5]  Joan Boyar,et al.  The relative worst order ratio applied to paging , 2005, SODA '05.

[6]  Alejandro López-Ortiz,et al.  The Cooperative Ratio of On-line Algorithms , 2007 .

[7]  Alok Aggarwal,et al.  The input/output complexity of sorting and related problems , 1988, CACM.

[8]  Neal E. Young,et al.  On-Line File Caching , 2002, SODA '98.

[9]  Sandy Irani,et al.  Competitive Analysis of Paging , 1996, Online Algorithms.

[10]  Robert E. Tarjan,et al.  Amortized efficiency of list update and paging rules , 1985, CACM.

[11]  Frank Schulz Two New Families of List Update Algorithms , 1998, ISAAC.

[12]  Joan Boyar,et al.  The relative worst order ratio applied to seat reservation , 2004, TALG.

[13]  Neal E. Young,et al.  On-Line Paging Against Adversarially Biased Random Inputs , 2000, J. Algorithms.

[14]  Joan Boyar,et al.  The relative worst order ratio for online algorithms , 2007, TALG.

[15]  D. Cheriton,et al.  List Update with Locality of Reference : MTF Outperforms All Other Algorithms , 2006 .

[16]  Joan Boyar,et al.  The Accommodating Function - A Generalization of the Competitive Ratio , 1999, WADS.

[17]  Daniel S. Hirschberg,et al.  Self-organizing linear search , 1985, CSUR.

[18]  Allan Borodin,et al.  A new measure for the study of on-line algorithms , 2005, Algorithmica.

[19]  Alejandro López-Ortiz,et al.  On Certain New Models for Paging with Locality of Reference , 2008, WALCOM.

[20]  Sandy Irani,et al.  Strongly competitive algorithms for paging with locality of reference , 1992, SODA '92.

[21]  Alejandro López-Ortiz,et al.  A Survey of Performance Measures for On-line Algorithms , 2005, SIGACT News.

[22]  Peter J. Denning,et al.  The working set model for program behavior , 1968, CACM.

[23]  Torben Hagerup,et al.  Algorithm Theory - SWAT 2004 , 2004, Lecture Notes in Computer Science.

[24]  Marek Chrobak,et al.  SIGACT news online algorithms column 8 , 2005, SIGA.

[25]  Joan Boyar,et al.  The Seat Reservation Problem , 1999, Algorithmica.

[26]  Susanne Albers,et al.  On paging with locality of reference , 2002, STOC '02.

[27]  Neal E. Young,et al.  Bounding the diffuse adversary , 1998, SODA '98.

[28]  Jeffery R. Westbrook,et al.  Randomized competitive algorithms for the list update problem , 1991, SODA '91.

[29]  Allan Borodin,et al.  Competitive paging with locality of reference , 1991, STOC '91.

[30]  Eric Torng,et al.  A Unified Analysis of Paging and Caching , 1995, Proceedings of IEEE 36th Annual Foundations of Computer Science.

[31]  Anna R. Karlin,et al.  Markov paging , 1992, Proceedings., 33rd Annual Symposium on Foundations of Computer Science.

[32]  Matteo Frigo,et al.  Cache-oblivious algorithms , 1999, 40th Annual Symposium on Foundations of Computer Science (Cat. No.99CB37039).

[33]  Luca Becchetti,et al.  Modeling Locality: A Probabilistic Analysis of LRU and FWF , 2004, ESA.

[34]  Peter J. Denning,et al.  The Working Set Model for Program Behaviour (Reprint). , 1983 .

[35]  Neal Young,et al.  The K-Server Dual and Loose Competitiveness for Paging , 1991, On-Line Algorithms.

[36]  Alejandro López-Ortiz,et al.  On the Separation and Equivalence of Paging Strategies and Other Online Algorithms , 2018, Algorithmica.

[37]  Susanne Albers,et al.  Algorithms – ESA 2004 , 2004, Lecture Notes in Computer Science.

[38]  Christos H. Papadimitriou,et al.  Beyond competitive analysis [on-line algorithms] , 1994, Proceedings 35th Annual Symposium on Foundations of Computer Science.

[39]  Alexander Souza,et al.  On adequate performance measures for paging , 2006, STOC '06.

[40]  Susanne Albers,et al.  Self-Organizing Data Structures , 1996, Online Algorithms.

[41]  Joan Boyar,et al.  The Relative Worst Order Ratio for On-Line Algorithms , 2003, CIAC.

[42]  Alejandro López-Ortiz,et al.  On the relative dominance of paging algorithms , 2009, Theor. Comput. Sci..

[43]  Gerhard J. Woeginger,et al.  Competitive Odds and Ends , 1996, Online Algorithms.

[44]  Charles E. Leiserson,et al.  Cache-Oblivious Algorithms , 2003, CIAC.