skip to main content
article
Free Access

Amortized efficiency of list update and paging rules

Published:01 February 1985Publication History
Skip Abstract Section

Abstract

In this article we study the amortized efficiency of the “move-to-front” and similar rules for dynamically maintaining a linear list. Under the assumption that accessing the ith element from the front of the list takes θ(i) time, we show that move-to-front is within a constant factor of optimum among a wide class of list maintenance rules. Other natural heuristics, such as the transpose and frequency count rules, do not share this property. We generalize our results to show that move-to-front is within a constant factor of optimum as long as the access cost is a convex function. We also study paging, a setting in which the access cost is not convex. The paging rule corresponding to move-to-front is the “least recently used” (LRU) replacement rule. We analyze the amortized complexity of LRU, showing that its efficiency differs from that of the off-line paging rule (Belady's MIN algorithm) by a factor that depends on the size of fast memory. No on-line paging algorithm has better amortized performance.

References

  1. 1 Andqrson, E.J., Nash, I'. and Weber, R.R. A counterexample to a conjecture on optimal list ordering. {. Appl. Prob. to appear.Google ScholarGoogle Scholar
  2. 2 Belady, L.A. A study of replacement algorithms for virtual storage computers. IBM Syst. J 5 (19&j), 78-101.Google ScholarGoogle Scholar
  3. 3 Bentley, J.L., and McCeoch, C. Worst-case analysis of self-organizing seouential search heuristics. In Proceedings of 2Ofh Allerton Confcrence on Communication, Control, and Cornfifing, (Univ. Illinois, Urbana-Champaign. Oct. 6-8,1962), 1983.45~461.Google ScholarGoogle Scholar
  4. 4 Bitner. J.R. Heuristics that dynamically organize data structures. SIAMJ. Comput. 8 (1979). 82-110.Google ScholarGoogle Scholar
  5. 5 Coffman. E.G. and Denning, P.J. Operating Systems Theorlj, Prentice- Hall, Englewood Cliffs, NJ, 1973. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. 6 Franaszek, P.A. and Wagner, T.J. Some distribution-free aspects of paging performance. J. ACM 21, 1 (Jan. 1974), 31-39. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. 7 Knuth. DE. The Art of Computer Programming, Volume 3: Sorting and Searching Addison-Wesley, Reading, MA, 1973. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. 8 Rivest. R. On self-organizing sequential search heuristics. Commun. ACM 19, 2 {Feb. 1976), 63-67. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. 9 Spirn, J.R. Progam Behavior: Models and Measurements. Elsevier, New York. 1977. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Amortized efficiency of list update and paging rules

                        Recommendations

                        Reviews

                        Charles N. Schroeder

                        .Abstract In this article we study the amortized efficiency of the “move-to-front” and similar rules for dynamically maintaining a linear list. Under the assumption that accessing the ith element from the front of the list takes &THgr;( i) time, we show that move-to-front is within a constant factor of optimum among a wide class of list maintenance rules. Other natural heuristics, such as the transpose and frequency count rules, do not share this property. We generalize our results to show that move-to-front is within a constant factor of optimum as long as the access cost is a convex function. We also study paging, a setting in which the access cost is not convex. The paging rule corresponding to move-to-front is the “least recently used” (LRU) replacement rule. We analyze the amortized complexity of LRU, showing that its efficiency differs from that of the offline paging rule (Belady's MIN algorithm) by a factor that depends on the size of fast memory. No existing on-line paging algorithm has better amortized performance. — Authors' Abstract The above abstract gives a good overview of the content of the paper. The paper is interesting; however, a knowledge of list organization and manipulation is necessary to be able to follow the discussion. The concepts presented and the proofs of theorems would be difficult for a novice to follow or comprehend.

                        Access critical reviews of Computing literature here

                        Become a reviewer for Computing Reviews.

                        Comments

                        Login options

                        Check if you have access through your login credentials or your institution to get full access on this article.

                        Sign in

                        Full Access

                        • Published in

                          cover image Communications of the ACM
                          Communications of the ACM  Volume 28, Issue 2
                          Feb. 1985
                          78 pages
                          ISSN:0001-0782
                          EISSN:1557-7317
                          DOI:10.1145/2786
                          Issue’s Table of Contents

                          Copyright © 1985 ACM

                          Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

                          Publisher

                          Association for Computing Machinery

                          New York, NY, United States

                          Publication History

                          • Published: 1 February 1985

                          Permissions

                          Request permissions about this article.

                          Request Permissions

                          Check for updates

                          Qualifiers

                          • article

                        PDF Format

                        View or Download as a PDF file.

                        PDF

                        eReader

                        View online with eReader.

                        eReader