Skip to main content Accessibility help
×
Hostname: page-component-848d4c4894-4hhp2 Total loading time: 0 Render date: 2024-06-08T06:40:09.450Z Has data issue: false hasContentIssue false

6 - Metrical Task System

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 consider a very general and abstract online problem that generalizes various problems already studied in this book, e.g., paging and list accessing. For any generic problem, the cost paid by any online algorithm on the arrival of a new request is a function of its current state and the action taken to fulfil the new request. Typically, the chosen action also alters the state of the algorithm, which then determines the subsequent costs. To model this interplay between cost and state transitions, an abstract paradigm called the metrical task system (MTS) is defined, where there is a set of all possible states (one of them is occupied by any online algorithm at any time).

Requests arrive over time, and the cost of an online algorithm to serve or fulfil each request depends on the state from which it chooses to fulfil the request. This cost is called the state dependent cost. If the online algorithm serves the newly arrived request from its current state, then the only cost it pays is the state dependent cost. Otherwise, it first transitions to a new state and then serves the request. In the event of a transition, the algorithm pays the state dependent cost of the new state in addition to the switching cost to move from the present state to the new state. The switching cost is restricted to satisfying the usual metric properties, e.g., the triangle inequality. The overall cost of an online algorithm is the sum of the state dependent cost and the switching cost, summed over all requests. This is a very generic formulation and can model any finite state dependent dynamical system.

We begin this chapter by deriving a lower bound on the competitive ratio of any deterministic algorithm for the MTS. Because of the generality of the MTS, the power of deterministic online algorithms is limited, and the competitive ratio of any deterministic online algorithm is at least 2|S| − 1, where |S| is the total number of states. Thus, more the number of states, more is the power that adversary has over an online algorithm. We next present a simple algorithm called work-function, based on the broad principle of dynamic programming, that achieves this lower bound exactly.

Type
Chapter
Information
Online Algorithms , pp. 97 - 118
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 coreplatform@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.

  • Metrical Task System
  • 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.007
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.

  • Metrical Task System
  • 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.007
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.

  • Metrical Task System
  • 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.007
Available formats
×