Abstract
The standard dynamic programming solution to finding k-medians on a line with n nodes requires O(kn 2) time. Dynamic programming speed-up techniques, e.g., use of the quadrangle inequality or properties of totally monotone matrices, can reduce this to O(kn) time but these techniques are inherently static. The major result of this paper is to show that we can maintain the dynamic programming speedup in an online setting where points are added from left to right on a line. Computing the new k-medians after adding a new point takes only O(k) amortized time and O(k log n) worst case time (simultaneously). Using similar techniques, we can also solve the online k -coverage with uniform coverage on a line problem with the same time bounds.
This work partially supported by Hong Kong RGC grants HKUST6010/01E, HKUST6162/00E, HKUST6082/01E and HKUST6206/02. The authors would like to thank Gerhard Trippen for his help in proofreading and latexing the figures.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Aggarwal, A., Klawe, M., Moran, S., Shor, P., Wilber, R.: Geometric applications of a matrix-searching algorithm. Algorithmica 2(2), 195–208 (1987)
Arora, S., Raghavan, P., Rao, S.: Approximation schemes for Euclidean k-medians and related problems. In: Proceedings of the 30th Annual ACM Symposium on the Theory of Computing, pp. 106–113 (1998)
Auletta, V., Parente, D., Persiano, G.: Placing resources on a growing line. Journal of Algorithms 26, 87–100 (1998)
Charikar, M., Guha, S., Tardos, E., Shmoys, D.B.: A constant-factor approximation algorithm for the k-median problem. Journal Computer System Sciences 65, 129–149 (2002)
Guha, S., Khuller, S.: Greedy strikes back: improved facility location algorithms. In: Proceedings of the 9th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 1998), pp. 649–657 (1998)
Hassin, R., Tamir, A.: Improved complexity bounds for location problems on the real line. Operations Research Letters 10, 395–402 (1991)
Lin, J.-H., Vitter, J.S.: ε-approximations with minimum packing constraint violation. In: Proceedings of the 24th Annual ACM Symposium on the Theory of Computing, pp. 771–782 (1992)
Tamir, A.: An O(pn2) algorithm for the p-median and related problems on tree graphs. Operations Research Letters 19, 59–64 (1996)
Wilber, R.: The concave least-weight subsequence problem revisited. Journal of Algorithms 9, 418–425 (1988)
Vigneron, A., Gao, L., Golin, M., Italiano, G., Li, B.: An algorithm for finding a k-median in a directed tree. Information Processing Letters 74, 81–88 (2000)
Woeginger, G.: Monge strikes again: optimal placement of web proxies in the internet. Operations Research Letters 27, 93–96 (2000)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2004 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Fleischer, R., Golin, M.J., Zhang, Y. (2004). Online Maintenance of k-Medians and k-Covers on a Line. In: Hagerup, T., Katajainen, J. (eds) Algorithm Theory - SWAT 2004. SWAT 2004. Lecture Notes in Computer Science, vol 3111. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-27810-8_10
Download citation
DOI: https://doi.org/10.1007/978-3-540-27810-8_10
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-22339-9
Online ISBN: 978-3-540-27810-8
eBook Packages: Springer Book Archive