Skip to main content

Line-Constrained \(k\)-Median, \(k\)-Means, and \(k\)-Center Problems in the Plane

  • Conference paper
  • First Online:
Algorithms and Computation (ISAAC 2014)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 8889))

Included in the following conference series:

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Aggarwal, A., Klawe, M., Moran, S., Shor, P., Wilbur, R.: Geometric applications of a matrix-searching algorithm. Algorithmica 2, 195–208 (1987)

    Article  MATH  MathSciNet  Google Scholar 

  2. 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)

    Article  MATH  MathSciNet  Google Scholar 

  3. 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)

    Google Scholar 

  4. Auletta, V., Parente, D., Persiano, G.: Placing resources on a growing line. Journal of Algorithms 26(1), 87–100 (1998)

    MATH  MathSciNet  Google Scholar 

  5. Bajaj, C.: The algebraic degree of geometric optimization problems. Discrete and Computational Geometry 3, 177–191 (1988)

    Article  MATH  MathSciNet  Google Scholar 

  6. 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)

    Article  MATH  MathSciNet  Google Scholar 

  7. Chan, T.: More planar two-center algorithms. Computational Geometry: Theory and Applications 13(3), 189–198 (1999)

    Article  MATH  MathSciNet  Google Scholar 

  8. Chazelle, B., Guibas, L.: Fractional cascading: I. A Data Structuring Technique. Algorithmica 1(1), 133–162 (1986)

    Article  MATH  MathSciNet  Google Scholar 

  9. Chen, D., Wang, H.: A note on searching line arrangements and applications. Information Processing Letters 113, 518–521 (2013)

    Article  MATH  MathSciNet  Google Scholar 

  10. Chen, D., Li, J., Wang, H.: Efficient algorithms for one-dimensional \(k\)-center problems (2013), arXiv:1301.7512

  11. Chen, D., Wang, H.: New algorithms for facility location problems on the real line. Algorithmica 69, 370–383 (2014)

    Article  MathSciNet  Google Scholar 

  12. Cole, R.: Slowing down sorting networks to obtain faster sorting algorithms. Journal of the ACM 34(1), 200–208 (1987)

    Article  Google Scholar 

  13. Floyd, S.: Least squares quantization in PCM. IEEE Transactions on Information Theory 28, 129–137 (1982)

    Article  Google Scholar 

  14. Fournier, H., Vigneron, A.: Fitting a step function to a point set. Algorithmica 60(1), 95–109 (2011)

    Article  MATH  MathSciNet  Google Scholar 

  15. Fowler, R., Paterson, M., Tanimoto, S.: Optimal packing and covering in the plane are NP-complete. Information Processing Letters 12, 133–137 (1981)

    Article  MATH  MathSciNet  Google Scholar 

  16. Frederickson, G.: Optimal algorithms for tree partitioning. In: Proc. of the 2nd Annual Symposium of Discrete Algorithms, SODA, pp. 168–177 (1991)

    Google Scholar 

  17. Gupta, U., Lee, D., Leung, J.: Efficient algorithms for interval graphs and circular-arc graphs. Networks 12, 459–467 (1982)

    Article  MATH  MathSciNet  Google Scholar 

  18. Hassin, R., Tamir, A.: Improved complexity bounds for location problems on the real line. Operations Research Letters 10, 395–402 (1991)

    Article  MATH  MathSciNet  Google Scholar 

  19. Hurtado, F., Sacristn, V., Toussaint, G.: Some constrained minimax and maximin location problems. Studies in Locational Analysis 5, 17–35 (2000)

    Google Scholar 

  20. 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)

    Article  MATH  MathSciNet  Google Scholar 

  21. 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)

    Article  MATH  MathSciNet  Google Scholar 

  22. 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)

    Chapter  Google Scholar 

  23. 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)

    Google Scholar 

  24. Mahajan, M., Nimbhorkar, P., Varadarajan, K.: The planar \(k\)-means problem is NP-hard. Theoretical Computer Science 442, 13–21 (2012)

    Article  MATH  MathSciNet  Google Scholar 

  25. Megiddo, N.: Linear-time algorithms for linear programming in \(R^3\) and related problems. SIAM Journal on Computing 12(4), 759–776 (1983)

    Article  MATH  MathSciNet  Google Scholar 

  26. Megiddo, N.: Linear programming in linear time when the dimension is fixed. Journal of the ACM 31(1), 114–127 (1984)

    Article  MATH  MathSciNet  Google Scholar 

  27. Megiddo, N., Supowit, K.: On the complexity of some common geometric location problems. SIAM Journal on Comuting 13, 182–196 (1984)

    Article  MATH  MathSciNet  Google Scholar 

  28. Schieber, B.: Computing a minimum weight \(k\)-link path in graphs with the concave monge property. Journal of Algorithms 29(2), 204–222 (1998)

    Article  MATH  MathSciNet  Google Scholar 

  29. 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)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jingru Zhang .

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics