Skip to main content
Log in

Local Search Algorithms for the Red-Blue Median Problem

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract

In this paper, we consider the following red-blue median problem which is a generalization of the well-studied k-median problem. The input consists of a set of red facilities, a set of blue facilities, and a set of clients in a metric space and two integers k r ,k b ≥0. The problem is to open at most k r red facilities and at most k b blue facilities and minimize the sum of distances of clients to their respective closest open facilities.

We show, somewhat surprisingly, that the following simple local search algorithm yields a constant factor approximation for this problem. Start by opening any k r red and k b blue facilities. While possible, decrease the cost of the solution by closing a pair of red and blue facilities and opening a pair of red and blue facilities.

We also improve the approximation factor for the prize-collecting k-median problem from 4 (Charikar et al. in Proceedings of the ACM-SIAM Symposium on Discrete Algorithms, pp. 642–641, 2001) to 3+ϵ, which matches the current best approximation factor for the k-median problem.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Archer, A., Rajagopalan, R., Shmoys, D.B.: Lagrangian relaxation for the k-median problem: new insights and continuity properties. In: Proceedings of the European Symposium on Algorithms. Lecture Notes in Comput. Sci., vol. 2832, pp. 31–42 (2003)

    Google Scholar 

  2. Arora, S., Raghavan, P., Rao, S.: Approximation schemes for Euclidean k-medians and related problems. In: Proceedings of the ACM Symposium on Theory of Computing, pp. 106–113 (1998)

    Google Scholar 

  3. Arya, V., Garg, N., Khandekar, R., Meyerson, A., Munagala, K., Pandit, V.: Local search heuristics for k-median and facility location problems. SIAM J. Comput. 33(3), 544–562 (2004)

    Article  MathSciNet  MATH  Google Scholar 

  4. Balas, E.: The prize collecting traveling salesman problem. Networks 19(6), 621–636 (1989)

    Article  MathSciNet  MATH  Google Scholar 

  5. Bartal, Y.: On approximating arbitrary metrics by tree metrics. In: Proceedings of the ACM Symposium on Theory of Computing, pp. 161–168 (1998)

    Google Scholar 

  6. Bateni, M., Hajiaghayi, M.: Assignment problem in content distribution networks: unsplittable hard-capacitated facility location. In: Proceedings of the ACM-SIAM Symposium on Discrete Algorithms, pp. 805–814 (2009)

    Google Scholar 

  7. Bienstock, D., Goemans, M.X., Simchi-Levi, D., Williamson, D.: A note on the prize collecting traveling salesman problem. Math. Program., Ser. A 59(3), 413–420 (1993)

    Article  MathSciNet  MATH  Google Scholar 

  8. Charikar, M., Guha, S.: Improved combinatorial algorithms for facility location problems. SIAM J. Comput. 34(4), 803–824 (2005)

    Article  MathSciNet  MATH  Google Scholar 

  9. Charikar, M., Khuller, S., Mount, D.M., Narasimhan, G.: Algorithms for facility location problems with outliers. In: Proceedings of the ACM-SIAM Symposium on Discrete Algorithms, pp. 642–651 (2001)

    Google Scholar 

  10. Charikar, M., Guha, S., Tardos, É., Shmoys, D.: A constant-factor approximation algorithm for the k-median problem. J. Comput. Syst. Sci. 65(1), 129–149 (2002)

    Article  MathSciNet  MATH  Google Scholar 

  11. Chudak, F.A., Williamson, D.P.: Improved approximation algorithms for capacitated facility location problems. Math. Program., Ser. A 102(2), 207–222 (2005)

    Article  MathSciNet  MATH  Google Scholar 

  12. Devanur, N.R., Garg, N., Khandekar, R., Pandit, V., Saberi, A., Vazirani, V.V.: Price of anarchy, locality gap, and a network service provider game. In: Proceedings of the International Workshop on Internet and Network Economics, pp. 1046–1055 (2005)

    Chapter  Google Scholar 

  13. Fakcharoenphol, J., Rao, S., Talwar, K.: A tight bound on approximating arbitrary metrics by tree metrics. J. Comput. Syst. Sci. 69(3), 485–497 (2004)

    Article  MathSciNet  MATH  Google Scholar 

  14. Feige, U., Mirrokni, V.S., Vondrak, J.: Maximizing non-monotone submodular functions. In: Proceedings of the IEEE Symposium on Foundations of Computer Science, pp. 461–471 (2007)

    Google Scholar 

  15. Fleischer, L., Goemans, M.X., Mirrokni, V.S., Sviridenko, M.: Tight approximation algorithms for maximum general assignment problems. In: Proceedings of the ACM-SIAM Symposium on Discrete Algorithms, pp. 611–620 (2006)

    Chapter  Google Scholar 

  16. Goemans, M.X., Williamson, D.P.: A general approximation technique for constrained forest problems. SIAM J. Comput. 24(2), 296–317 (1995)

    Article  MathSciNet  MATH  Google Scholar 

  17. Gupta, A., Tangwongsan, K.: Simpler analyses of local search algorithms for facility location. ArXiv e-prints, arXiv:0809.2554 (2008)

  18. Hajiaghayi, M.T., Jain, K.: The prize-collecting generalized Steiner tree problem via a new approach of primal-dual schema. In: Proceedings of the ACM-SIAM Symposium on Discrete Algorithms, pp. 631–640 (2006)

    Chapter  Google Scholar 

  19. Jain, K.: Private communication (2009)

  20. Jain, K., Vazirani, V.V.: Approximation algorithms for metric facility location and k-median problems using the primal-dual schema and Lagrangian relaxation. J. ACM 48(2), 274–296 (2001)

    Article  MathSciNet  MATH  Google Scholar 

  21. Jain, K., Mahdian, M., Saberi, A.: A new greedy approach for facility location problems. In: Proceedings of the ACM Symposium on Theory of Computing, pp. 731–740 (2002)

    Google Scholar 

  22. Kolliopoulos, S.G., Rao, S.: A nearly linear-time approximation scheme for the Euclidean k-median problem. SIAM J. Comput. 37(3), 757–782 (2007)

    Article  MathSciNet  MATH  Google Scholar 

  23. Korupolu, M.R., Plaxton, C.G., Rajaraman, R.: Analysis of a local search heuristic for facility location problems. J. Algorithms 37(1), 146–188 (2000)

    Article  MathSciNet  MATH  Google Scholar 

  24. Krishnaswamy, R., Kumar, A., Nagarajan, V., Sabharwal, Y., Saha, B.: The matroid median problem. In: Proceedings of the ACM-SIAM Symposium on Discrete Algorithms, pp. 1117–1130 (2011)

    Google Scholar 

  25. Kuehn, A., Hamburger, M.: A heuristic program for locating warehouses. Manag. Sci. 9, 643–666 (1963)

    Article  Google Scholar 

  26. Lin, J.-H., Vitter, J.S.: Approximation algorithms for geometric median problems. Inf. Process. Lett. 44(5), 245–249 (1992)

    Article  MathSciNet  MATH  Google Scholar 

  27. Mahdian, M., Pál, M.: Universal facility location. In: Proceedings of the European Symposium on Algorithms. Lecture Notes in Comput. Sci., vol. 2832, pp. 409–421 (2003)

    Google Scholar 

  28. Megiddo, N., Supowit, K.J.: On the complexity of some common geometric location problems. SIAM J. Comput. 13(1), 182–196 (1984)

    Article  MathSciNet  MATH  Google Scholar 

  29. Meyerson, A., Tagiku, B.: Minimizing average shortest path distances via shortcut edge addition. In: Proceedings of the International Workshop on Approximation Algorithms for Combinatorial Optimization Problems, pp. 272–285 (2009)

    Google Scholar 

  30. Pál, M., Tardos, É., Wexler, T.: Facility location with nonuniform hard capacities. In: Proceedings of the IEEE Symposium on Foundations of Computer Science, pp. 329–338 (2001)

    Google Scholar 

  31. Zhang, J., Chen, B., Ye, Y.: A multi-exchange local search algorithm for the capacitated facility location problem. In: Proceedings of the International Conference on Integer Programming and Combinatorial Optimization, pp. 219–233 (2004)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to R. Khandekar.

Additional information

A preliminary version of this paper appeared in Proceeding of the 18th Annual European Symposium on Algorithms (ESA 2010). Part of this work was done while the authors were meeting at DIMACS. We would like to thank DIMACS for hospitality. Third author was partially supported by NSF grant 0819959.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Hajiaghayi, M., Khandekar, R. & Kortsarz, G. Local Search Algorithms for the Red-Blue Median Problem. Algorithmica 63, 795–814 (2012). https://doi.org/10.1007/s00453-011-9547-9

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00453-011-9547-9

Keywords

Navigation