Nothing Special   »   [go: up one dir, main page]

skip to main content
research-article

An O(log k)-Competitive Algorithm for Generalized Caching

Published: 16 November 2018 Publication History

Abstract

In the generalized caching problem, we have a set of pages and a cache of size k. Each page p has a size wp≥ 1 and fetching cost cp for loading the page into the cache. At any point in time, the sum of the sizes of the pages stored in the cache cannot exceed k. The input consists of a sequence of page requests. If a page is not present in the cache at the time it is requested, it has to be loaded into the cache, incurring a cost of cp.
We give a randomized O(log k)-competitive online algorithm for the generalized caching problem, improving the previous bound of O(log2 k) by Bansal, Buchbinder, and Naor (STOC’08). This improved bound is tight and of the same order as the known bounds for the classic paging problem with uniform weights and sizes. We use the same LP-based techniques as Bansal et al. but provide improved and slightly simplified methods for rounding fractional solutions online.

References

[1]
Dimitris Achlioptas, Marek Chrobak, and John Noga. 2000. Competitive analysis of randomized paging algorithms. Theoretical Computer Science 234, 1--2 (2000), 203--218.
[2]
Susanne Albers, Sanjeev Arora, and Sanjeev Khanna. 1999. Page replacement for general caching problems. In Proceedings of the 10th ACM-SIAM Symposium on Discrete Algorithms (SODA). Baltimore, MD, Society for Industrial and Applied Mathematics, 31--40.
[3]
Nikhil Bansal, Niv Buchbinder, and Joseph Naor. 2012. A primal-dual randomized algorithm for weighted paging. Journal of the ACM 59, 4 (2012), 19.
[4]
Nikhil Bansal, Niv Buchbinder, and Joseph Naor. 2012. Randomized competitive algorithms for generalized caching. SIAM Journal of Computing 41, 2 (2012), 391--414.
[5]
Amotz Bar-Noy, Reuven Bar-Yehuda, Ari Freund, Joseph Naor, and Baruch Schieber. 2001. A unified approach to approximating resource allocation and scheduling. Journal of the ACM 48, 5 (2001), 1069--1090.
[6]
Niv Buchbinder and Joseph Naor. 2009. Online primal-dual algorithms for covering and packing. Mathematics of Operations Research 34, 2 (2009), 270--286.
[7]
Pei Cao and Sandy Irani. 1997. Cost-aware WWW proxy caching algorithms. In Proceedings of the USENIX Symposium on Internet Technologies and Systems. Monterey, CA, USENIX Assocation, 193--206.
[8]
Marek Chrobak, Howard J. Karloff, T. H. Payne, and Sundar Vishwanathan. 1991. New results on server problems. SIAM Journal on Discrete Mathematics 4, 2 (1991), 172--181.
[9]
Edith Cohen and Haim Kaplan. 2002. Caching documents with variable sizes and fetching costs: An LP-based approach. Algorithmica 32, 3 (2002), 459--466.
[10]
Amos Fiat, Richard M. Karp, Michael Luby, Lyle A. McGeoch, Daniel D. Sleator, and Neal E. Young. 1991. Competitive paging algorithms. Journal of Algorithms 12, 4 (1991), 685--699.
[11]
Sandy Irani. 2002. Page replacement with multi-size pages and applications to web caching. Algorithmica 33, 3 (2002), 384--409.
[12]
Lyle A. McGeoch and Daniel D. Sleator. 1991. A strongly competitive randomized paging algorithm. Algorithmica 6, 6 (1991), 816--825.
[13]
Daniel D. Sleator and Robert E. Tarjan. 1985. Amortized efficiency of list update and paging rules. Communications of the ACM 28, 2 (1985), 202--208.
[14]
Neal E. Young. 2002. On-line file caching. Algorithmica 33, 3 (2002), 371--383.

Cited By

View all
  • (2024)Dependency-Aware Online CachingIEEE INFOCOM 2024 - IEEE Conference on Computer Communications10.1109/INFOCOM52122.2024.10621422(871-880)Online publication date: 20-May-2024
  • (2024)Online Container Caching with Late-Warm for IoT Data Processing2024 IEEE 40th International Conference on Data Engineering (ICDE)10.1109/ICDE60146.2024.00127(1547-1560)Online publication date: 13-May-2024
  • (2023)Two-level Graph Caching for Expediting Distributed GNN TrainingIEEE INFOCOM 2023 - IEEE Conference on Computer Communications10.1109/INFOCOM53939.2023.10228911(1-10)Online publication date: 17-May-2023
  • Show More Cited By

Index Terms

  1. An O(log k)-Competitive Algorithm for Generalized Caching

    Recommendations

    Comments

    Please enable JavaScript to view thecomments powered by Disqus.

    Information & Contributors

    Information

    Published In

    cover image ACM Transactions on Algorithms
    ACM Transactions on Algorithms  Volume 15, Issue 1
    January 2019
    366 pages
    ISSN:1549-6325
    EISSN:1549-6333
    DOI:10.1145/3281277
    Issue’s Table of Contents
    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 the author(s) 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: 16 November 2018
    Accepted: 01 September 2018
    Revised: 01 January 2018
    Received: 01 February 2016
    Published in TALG Volume 15, Issue 1

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. Online primal dual
    2. knapsack cover inequalities

    Qualifiers

    • Research-article
    • Research
    • Refereed

    Funding Sources

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)18
    • Downloads (Last 6 weeks)2
    Reflects downloads up to 19 Nov 2024

    Other Metrics

    Citations

    Cited By

    View all
    • (2024)Dependency-Aware Online CachingIEEE INFOCOM 2024 - IEEE Conference on Computer Communications10.1109/INFOCOM52122.2024.10621422(871-880)Online publication date: 20-May-2024
    • (2024)Online Container Caching with Late-Warm for IoT Data Processing2024 IEEE 40th International Conference on Data Engineering (ICDE)10.1109/ICDE60146.2024.00127(1547-1560)Online publication date: 13-May-2024
    • (2023)Two-level Graph Caching for Expediting Distributed GNN TrainingIEEE INFOCOM 2023 - IEEE Conference on Computer Communications10.1109/INFOCOM53939.2023.10228911(1-10)Online publication date: 17-May-2023
    • (2022)Competitive Algorithms for Block-Aware CachingProceedings of the 34th ACM Symposium on Parallelism in Algorithms and Architectures10.1145/3490148.3538567(161-172)Online publication date: 11-Jul-2022
    • (2021)Efficient Online Weighted Multi-Level PagingProceedings of the 33rd ACM Symposium on Parallelism in Algorithms and Architectures10.1145/3409964.3461801(94-104)Online publication date: 6-Jul-2021

    View Options

    Login options

    Full Access

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media