List Update with Delays or Time Windows

Yossi Azar*, Shahar Lewkowicz*, Danny Vainstein*

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

We address the problem of List Update, which is considered one of the fundamental problems in online algorithms and competitive analysis. In this context, we are presented with a list of elements and receive requests for these elements over time. Our objective is to fulfill these requests, incurring a cost proportional to their position in the list. Additionally, we can swap any two consecutive elements at a cost of 1. The renowned “Move to Front” algorithm, introduced by Sleator and Tarjan, immediately moves any requested element to the front of the list. They demonstrated that this algorithm achieves a competitive ratio of 2. While this bound is impressive, the actual cost of the algorithm’s solution can be excessively high. For example, if we request the last half of the list, the resulting solution cost becomes quadratic in the list’s length. To address this issue, we consider a more generalized problem called List Update with Time Windows. In this variant, each request arrives with a specific deadline by which it must be served, rather than being served immediately. Moreover, we allow the algorithm to process multiple requests simultaneously, accessing the corresponding elements in a single pass. The cost incurred in this case is determined by the position of the furthest element accessed, leading to a significant reduction in the total solution cost. We introduce this problem to explore lower solution costs, but it necessitates the development of new algorithms. For instance, Move-to-Front fails when handling the simple scenario of requesting the last half of the list with overlapping time windows. In our work, we present a natural O(1) competitive algorithm for this problem. While the algorithm itself is intuitive, its analysis is intricate, requiring the use of a novel potential function. Additionally, we delve into a more general problem called List Update with Delays, where the fixed deadlines are replaced with arbitrary delay functions. In this case, the cost includes not only the access and swapping costs, but also penalties for the delays incurred until the requests are served. This problem encompasses a special case known as the prize collecting version, where a request may go unserved up to a given deadline, resulting in a specified penalty. For this more comprehensive problem, we establish an O(1) competitive algorithm. However, the algorithm for the delay version is more complex, and its analysis involves significantly more intricate considerations.

Original languageEnglish
Title of host publication51st International Colloquium on Automata, Languages, and Programming, ICALP 2024
EditorsKarl Bringmann, Martin Grohe, Gabriele Puppis, Ola Svensson
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
ISBN (Electronic)9783959773225
DOIs
StatePublished - Jul 2024
Event51st International Colloquium on Automata, Languages, and Programming, ICALP 2024 - Tallinn, Estonia
Duration: 8 Jul 202412 Jul 2024

Publication series

NameLeibniz International Proceedings in Informatics, LIPIcs
Volume297
ISSN (Print)1868-8969

Conference

Conference51st International Colloquium on Automata, Languages, and Programming, ICALP 2024
Country/TerritoryEstonia
CityTallinn
Period8/07/2412/07/24

Funding

FundersFunder number
Israel Science Foundation2304/20

    Keywords

    • Deadline
    • Delay
    • List Update
    • Online
    • Time Window

    Fingerprint

    Dive into the research topics of 'List Update with Delays or Time Windows'. Together they form a unique fingerprint.

    Cite this