Skip to main content Accessibility help
×
Hostname: page-component-586b7cd67f-2plfb Total loading time: 0 Render date: 2024-11-30T15:41:31.660Z Has data issue: false hasContentIssue false

3 - List Accessing

Published online by Cambridge University Press:  07 May 2024

Rahul Vaze
Affiliation:
Tata Institute of Fundamental Research, Mumbai, India
Get access

Summary

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).

Type
Chapter
Information
Online Algorithms , pp. 27 - 48
Publisher: Cambridge University Press
Print publication year: 2023

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] 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.

  • List Accessing
  • Rahul Vaze, Tata Institute of Fundamental Research, Mumbai, India
  • Book: Online Algorithms
  • Online publication: 07 May 2024
  • Chapter DOI: https://doi.org/10.1017/9781009349178.004
Available formats
×

Save book 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 Dropbox.

  • List Accessing
  • Rahul Vaze, Tata Institute of Fundamental Research, Mumbai, India
  • Book: Online Algorithms
  • Online publication: 07 May 2024
  • Chapter DOI: https://doi.org/10.1017/9781009349178.004
Available formats
×

Save book to Google Drive

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.

  • List Accessing
  • Rahul Vaze, Tata Institute of Fundamental Research, Mumbai, India
  • Book: Online Algorithms
  • Online publication: 07 May 2024
  • Chapter DOI: https://doi.org/10.1017/9781009349178.004
Available formats
×