Online and offline algorithms for the sorting buffers problem on the line metric

We consider the sorting buffers problem. Input to this problem is a sequence of requests, each specified by a point in a metric space. There is a “server” that moves from point to point to serve these requests. To serve a request, the server needs to visit the point corresponding to that request. Th...

Full description

Saved in:
Bibliographic Details
Published inJournal of discrete algorithms (Amsterdam, Netherlands) Vol. 8; no. 1; pp. 24 - 35
Main Authors Khandekar, Rohit, Pandit, Vinayaka
Format Journal Article
LanguageEnglish
Published Elsevier B.V 01.03.2010
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:We consider the sorting buffers problem. Input to this problem is a sequence of requests, each specified by a point in a metric space. There is a “server” that moves from point to point to serve these requests. To serve a request, the server needs to visit the point corresponding to that request. The objective is to minimize the total distance traveled by the server in the metric space. In order to achieve this, the server is allowed to serve the requests in any order that requires to “buffer” at most k requests at any time. Thus a valid reordering can serve a request only after serving all but k previous requests. In this paper, we consider this problem on the line metric which is motivated by its application to the disc scheduling problem. We present first approximation algorithms with non-trivial approximation ratios in both online and offline settings. On a line metric with n uniformly spaced points, we give a randomized online algorithm with a competitive ratio of O ( log 2 n ) in expectation against an oblivious adversary. In the offline setting, our algorithm yields the first constant-factor approximation and runs in quasi-polynomial time N ⋅ n ⋅ k O ( log n ) where N is the total number of requests. Our approach is based on a dynamic program that keeps track of the number of pending requests in each of O ( log n ) line segments that are geometrically increasing in length.
ISSN:1570-8667
1570-8675
DOI:10.1016/j.jda.2008.08.002