PLACING RESOURCES ON A GROWING LINE

Citation
V. Auletta et al., PLACING RESOURCES ON A GROWING LINE, Journal of algorithms, 26(1), 1998, pp. 87-100
Citations number
6
Categorie Soggetti
Mathematics,"Computer Science Theory & Methods",Mathematics,"Computer Science Theory & Methods
Journal title
ISSN journal
01966774
Volume
26
Issue
1
Year of publication
1998
Pages
87 - 100
Database
ISI
SICI code
0196-6774(1998)26:1<87:PROAGL>2.0.ZU;2-D
Abstract
We consider the problem of placing k identical resources in a graph wh ere each vertex is associated with a nonnegative weight representing t he frequency of requests issued by that vertex for the resource. We de fine the cost of a placement as the sum over all vertices of their dis tances to the closest resource weighted by their weights. The optimal placement is the placement with the least cost among all placements. W e give an algorithm for placing optimally k resources on a ''growing'' line. The algorithm starts with an empty line. At each step a new ver tex is appended to the line and the algorithm has to recompute the opt imal placement of the k resources. Our algorithm processes each new ve rtex in O(k) amortized time. As a corollary, we obtain an algorithm th at computes the optimal placement of k resources in an n-vertex line i n time O(kn), which is optimal for constant k. (C) 1998 Academic Press .