Published online by Cambridge University Press: 07 May 2024
Introduction
In this chapter, we will consider one of the earliest studied online problems called list accessing. This problem is motivated by memory systems, where files are stored in a stack or a list, and the cost of accessing any file depends on the location of the file in the list. In particular, with files ordered from left to right, the cost of accessing a file is the number of files preceding it in the list from the left plus one.
Requests for files arrive online, and the memory system is allowed to move or shuffle the files after every file request in the quest for minimizing future costs, without of course knowing the file requests to be made in the future. Thus, the decision variable is how to move files in an online manner after every file request so as to minimize the sum of the costs across all file requests. This problem is non-trivial even in the offline setting, and for very long its complexity was unknown. Only in the early 2000s did it get settled and was shown to be NP-hard.
In the online setting, early progress was made for deterministic algorithms, where a natural algorithm called move-to-front, which moves the requested file to the first place/front of the list, is shown to be optimal and achieves a competitive ratio close to 2. For the randomized setting, an online algorithm with a competitive ratio of 1.6 is known, with the best-known lower bound being 1.5. Thus, there is a gap in characterizing the optimal randomized algorithm.
In this chapter, we will first consider the deterministic setting and show that the move-tofront algorithm is optimal. Next, we present the lower bound of 1.5 on randomized algorithms and a randomized algorithm whose competitive ratio is at most 1.75.
Problem Definition
Consider that there is a collection of L files that are stored in a horizontal stack of size L called the list, where file fi, i = 1, … , L, is in location ℓi(t) at time t from the left. The inputis a sequence of file requests, where if at time t, file fi is requested, then the cost for fulfilling this request is ℓi(t).
To save this book to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.