{"@context":"https:\/\/schema.org\/","@type":"ScholarlyArticle","@id":"#article6586","name":"Economical Caching","abstract":"We study the management of buffers and storages in environments with unpredictably varying prices in a competitive analysis. In the economical caching problem, there is a storage with a certain capacity. For each time step, an online algorithm is given a price from the interval $[1,\\alpha]$, a consumption, and possibly a buying limit. The online algorithm has to decide the amount to purchase from some commodity, knowing the parameter $\\alpha$ but without knowing how the price evolves in the future. The algorithm can purchase at most the buying limit. If it purchases more than the current consumption, then the excess is stored in the storage; otherwise, the gap between consumption and purchase must be taken from the storage. The goal is to minimize the total cost. Interesting applications are, for example, stream caching on mobile devices with different classes of service, battery management in micro hybrid cars, and the efficient purchase of resources.\r\n\r\nFirst we consider the simple but natural class of algorithms that can informally be described as memoryless. We show that these algorithms cannot achieve a competitive ratio below $\\sqrt{\\alpha}$. Then we present a more sophisticated deterministic algorithm achieving a competitive ratio of\r\n\\[\\textstyle\r\n\\frac{1}{W\\left(\\frac{1-\\alpha}{e\\alpha}\\right)+1} \\in\r\n\\left[\\frac{\\sqrt{\\alpha}}{\\sqrt{2}},\r\n\\frac{\\sqrt{\\alpha}+1}{\\sqrt{2}}\r\n\\right] \\enspace, \\]\r\nwhere $W$ denotes the Lambert~W function. We prove that this algorithm is optimal and that not even randomized online algorithms can achieve a better competitive ratio. On the other hand, we show how to achieve a constant competitive ratio if the storage capacity of the online algorithm exceeds the storage capacity of an optimal offline algorithm by a factor of $\\log \\alpha$.","keywords":["Online algorithms","Competitive analysis","Storage management"],"author":[{"@type":"Person","name":"Englert, Matthias","givenName":"Matthias","familyName":"Englert"},{"@type":"Person","name":"R\u00f6glin, Heiko","givenName":"Heiko","familyName":"R\u00f6glin"},{"@type":"Person","name":"Sp\u00f6nemann, Jacob","givenName":"Jacob","familyName":"Sp\u00f6nemann"},{"@type":"Person","name":"V\u00f6cking, Berthold","givenName":"Berthold","familyName":"V\u00f6cking"}],"position":31,"pageStart":385,"pageEnd":396,"dateCreated":"2009-02-19","datePublished":"2009-02-19","isAccessibleForFree":true,"license":"https:\/\/creativecommons.org\/licenses\/by-nd\/3.0\/legalcode","copyrightHolder":[{"@type":"Person","name":"Englert, Matthias","givenName":"Matthias","familyName":"Englert"},{"@type":"Person","name":"R\u00f6glin, Heiko","givenName":"Heiko","familyName":"R\u00f6glin"},{"@type":"Person","name":"Sp\u00f6nemann, Jacob","givenName":"Jacob","familyName":"Sp\u00f6nemann"},{"@type":"Person","name":"V\u00f6cking, Berthold","givenName":"Berthold","familyName":"V\u00f6cking"}],"copyrightYear":"2009","accessMode":"textual","accessModeSufficient":"textual","creativeWorkStatus":"Published","inLanguage":"en-US","sameAs":"https:\/\/doi.org\/10.4230\/LIPIcs.STACS.2009.1826","publisher":"Schloss Dagstuhl \u2013 Leibniz-Zentrum f\u00fcr Informatik","isPartOf":{"@type":"PublicationVolume","@id":"#volume6206","volumeNumber":3,"name":"26th International Symposium on Theoretical Aspects of Computer Science","dateCreated":"2009-02-19","datePublished":"2009-02-19","editor":[{"@type":"Person","name":"Albers, Susanne","givenName":"Susanne","familyName":"Albers"},{"@type":"Person","name":"Marion, Jean-Yves","givenName":"Jean-Yves","familyName":"Marion"}],"isAccessibleForFree":true,"publisher":"Schloss Dagstuhl \u2013 Leibniz-Zentrum f\u00fcr Informatik","hasPart":"#article6586","isPartOf":{"@type":"Periodical","@id":"#series116","name":"Leibniz International Proceedings in Informatics","issn":"1868-8969","isAccessibleForFree":true,"publisher":"Schloss Dagstuhl \u2013 Leibniz-Zentrum f\u00fcr Informatik","hasPart":"#volume6206"}}}