Abstract
The (weighted) \(k\)-median, \(k\)-means, and \(k\)-center problems in the plane are known to be NP-hard. In this paper, we study these problems with an additional constraint that requires the sought \(k\) facilities to be on a given line. We present efficient algorithms for various distance metrics such as \(L_1,L_2,L_{\infty }\). Assume all \(n\) weighted points are given sorted by their projections on the given line. For \(k\)-median, our algorithms for \(L_1\) and \(L_{\infty }\) metrics run in \(O(\min \{nk,n\sqrt{k\log n}\log n, n2^{O(\sqrt{\log k\log \log n})}\log n\})\) time and \(O(\min \{nk\log n,n\sqrt{k\log n}\log ^2 n, n2^{O(\sqrt{\log k\log \log n})}\log ^2 n\})\) time, respectively. For \(k\)-means, which is defined only on the \(L_2\) metric, we give an \(O(\min \{nk,n\sqrt{k\log n}, n2^{O(\sqrt{\log k\log \log n})}\})\) time algorithm. For \(k\)-center, our algorithms run in \(O(n\log n)\) time for all three metrics, and in \(O(n)\) time for the unweighted version under \(L_1\) and \(L_{\infty }\) metrics.
This research was supported in part by NSF under Grant CCF-1317143.
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., Wilbur, R.: Geometric applications of a matrix-searching algorithm. Algorithmica 2, 195–208 (1987)
Aggarwal, A., Schieber, B., Tokuyama, T.: Finding a minimum weight \(k\)-link path in graphs with concave monge property and applications. Discrete and Computational Geometry 12, 263–280 (1994)
Alt, H., Arkin, E., Brönnimann, H., Erickson, J., Fekete, S., Knauer, C., Lenchner, J., Mitchell, J., Whittlesey, K.: Minimum-cost coverage of point sets by disks. In: Proc. of the 22nd Annual Symposium on Computational Geometry, SoCG, pp. 449–458 (2006)
Auletta, V., Parente, D., Persiano, G.: Placing resources on a growing line. Journal of Algorithms 26(1), 87–100 (1998)
Bajaj, C.: The algebraic degree of geometric optimization problems. Discrete and Computational Geometry 3, 177–191 (1988)
Brass, P., Knauer, C., Na, H.S., Shin, C.S., Vigneron, A.: The aligned \(k\)-center problem. International Journal of Computational Geometry and Applications 21, 157–178 (2011)
Chan, T.: More planar two-center algorithms. Computational Geometry: Theory and Applications 13(3), 189–198 (1999)
Chazelle, B., Guibas, L.: Fractional cascading: I. A Data Structuring Technique. Algorithmica 1(1), 133–162 (1986)
Chen, D., Wang, H.: A note on searching line arrangements and applications. Information Processing Letters 113, 518–521 (2013)
Chen, D., Li, J., Wang, H.: Efficient algorithms for one-dimensional \(k\)-center problems (2013), arXiv:1301.7512
Chen, D., Wang, H.: New algorithms for facility location problems on the real line. Algorithmica 69, 370–383 (2014)
Cole, R.: Slowing down sorting networks to obtain faster sorting algorithms. Journal of the ACM 34(1), 200–208 (1987)
Floyd, S.: Least squares quantization in PCM. IEEE Transactions on Information Theory 28, 129–137 (1982)
Fournier, H., Vigneron, A.: Fitting a step function to a point set. Algorithmica 60(1), 95–109 (2011)
Fowler, R., Paterson, M., Tanimoto, S.: Optimal packing and covering in the plane are NP-complete. Information Processing Letters 12, 133–137 (1981)
Frederickson, G.: Optimal algorithms for tree partitioning. In: Proc. of the 2nd Annual Symposium of Discrete Algorithms, SODA, pp. 168–177 (1991)
Gupta, U., Lee, D., Leung, J.: Efficient algorithms for interval graphs and circular-arc graphs. Networks 12, 459–467 (1982)
Hassin, R., Tamir, A.: Improved complexity bounds for location problems on the real line. Operations Research Letters 10, 395–402 (1991)
Hurtado, F., Sacristn, V., Toussaint, G.: Some constrained minimax and maximin location problems. Studies in Locational Analysis 5, 17–35 (2000)
Kanungo, T., Mount, D., Netanyahu, N., Piatko, C., Silverman, R., Wu, A.: A local search approximation algorithm for \(k\)-means clustering. Computational Geometry: Theory and Applications 28, 89–112 (2004)
Karmakar, A., Das, S., Nandy, S., Bhattacharya, B.: Some variations on constrained minimum enclosing circle problem. Journal of Combinatorial Optimization 25(2), 176–190 (2013)
Kim, S.K., Shin, C.-S.: Efficient algorithms for two-center problems for a convex polygon. In: Du, D.-Z., Eades, P., Sharma, A.K., Lin, X., Estivill-Castro, V. (eds.) COCOON 2000. LNCS, vol. 1858, pp. 299–309. Springer, Heidelberg (2000)
Kumar, A., Sabharwal, Y., Sen, S.: A simple linear time \((1+\epsilon )\)-approximation algorithm for \(k\)-means clustering in any dimensions. In: Proc. of the 45th IEEE Symposium on Foundations of Computer Science (FOCS), pp. 454–462 (2004)
Mahajan, M., Nimbhorkar, P., Varadarajan, K.: The planar \(k\)-means problem is NP-hard. Theoretical Computer Science 442, 13–21 (2012)
Megiddo, N.: Linear-time algorithms for linear programming in \(R^3\) and related problems. SIAM Journal on Computing 12(4), 759–776 (1983)
Megiddo, N.: Linear programming in linear time when the dimension is fixed. Journal of the ACM 31(1), 114–127 (1984)
Megiddo, N., Supowit, K.: On the complexity of some common geometric location problems. SIAM Journal on Comuting 13, 182–196 (1984)
Schieber, B.: Computing a minimum weight \(k\)-link path in graphs with the concave monge property. Journal of Algorithms 29(2), 204–222 (1998)
de la Vega, W.F., Karpinski, M., Kenyon, C., Rabani, Y.: Approximation schemes for clustering problems. In: Proc. of the 25th Annual ACM Symposium on Theory of Computing (STOC), pp. 50–58 (2003)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2014 Springer International Publishing Switzerland
About this paper
Cite this paper
Wang, H., Zhang, J. (2014). Line-Constrained \(k\)-Median, \(k\)-Means, and \(k\)-Center Problems in the Plane. In: Ahn, HK., Shin, CS. (eds) Algorithms and Computation. ISAAC 2014. Lecture Notes in Computer Science(), vol 8889. Springer, Cham. https://doi.org/10.1007/978-3-319-13075-0_1
Download citation
DOI: https://doi.org/10.1007/978-3-319-13075-0_1
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-13074-3
Online ISBN: 978-3-319-13075-0
eBook Packages: Computer ScienceComputer Science (R0)