Nothing Special   »   [go: up one dir, main page]

Skip to main content

The Traveling k-Median Problem: Approximating Optimal Network Coverage

  • Conference paper
  • First Online:
Approximation and Online Algorithms (WAOA 2021)

Abstract

We introduce the Traveling k-Median Problem (TkMP) as a natural extension of the k-Median Problem, where k agents (medians) can move through a graph of n nodes over a discrete time horizon of \(\omega \) steps. The agents start and end at designated nodes, and in each step can hop to an adjacent node to improve coverage. At each time step, we evaluate the coverage cost as the total connection cost of each node to its closest median. Our goal is to minimize the sum of the coverage costs over the entire time horizon.

In this paper, we initiate the study of this problem by focusing on the uniform case, i.e., when all edge costs are uniform and all agents share the same start and end locations. We show that this problem is NP-hard in general and can be solved optimally in time \(\mathcal O(\omega ^2 n^{2k})\). We obtain a 5-approximation algorithm if the number of agents is large (i.e., \(k \ge n/2\)). The more challenging case emerges if the number of agents is small (i.e., \(k < n/2\)). Our main contribution is a novel rounding scheme that allows us to round an (approximate) solution to the ‘continuous movement’ relaxation of the problem to a discrete one (incurring a bounded loss). Using our scheme, we derive constant-factor approximation algorithms on path and cycle graphs. For general graphs, we use a different (more direct) approach and derive an \(\mathcal O(\min \{\sqrt{\omega }, n\})\)-approximation algorithm if \(d(s,t) \le 2\sqrt{\omega }\), and an \(\mathcal O(d(s,t) + \sqrt{\omega })\)-approximation algorithm if \(d(s,t) > 2\sqrt{\omega }\), where \(d(s,t)\) is the distance between the start and end point.

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.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

Similar content being viewed by others

Notes

  1. 1.

    That is, for every node \(v\), there exists an agent who, through Lemma 1, is always as nearby as possible, so far as the start and end conditions allow. While it may seem nontrivial which nodes this agent could give coverage to on the way to \(v\), in fact those intermediate nodes have agents of their own serving them optimally, and the agent never has to cover anything else but \(v\).

  2. 2.

    Note that the modulo operator ensures that 0 and L correspond to the same point.

References

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

    Google Scholar 

  2. Bertsimas, D.J., Van Ryzin, G.: Stochastic and dynamic vehicle routing in the Euclidean plane with multiple capacitated vehicles. Oper. Res. 41(1), 60–76 (1993)

    Article  MathSciNet  Google Scholar 

  3. Borodin, A., Linial, N., Saks, M.E.: An optimal on-line algorithm for metrical task system. J. ACM 39(4), 745–763 (1992)

    Article  MathSciNet  Google Scholar 

  4. Byrka, J., Pensyl, T., Rybicki, B., Srinivasan, A., Trinh, K.: An improved approximation for k-median and positive correlation in budgeted optimization. ACM Trans. Algorithms 13(2) (2017)

    Google Scholar 

  5. Farahani, R.Z., Abedian, M., Sharahi, S.: Dynamic facility location problem. In: Zanjirani Farahani, R., Hekmatfar, M. (eds.) Facility Location. CMS, pp. 347–372. Physica-Verlag HD, Heidelberg (2009). https://doi.org/10.1007/978-3-7908-2151-2_15

    Chapter  Google Scholar 

  6. Galvão, R.D., Santibanez-Gonzalez, E.D.R.: A Lagrangean heuristic for the pk-median dynamic location problem. Eur. J. Oper. Res. 58(2), 250–262 (1992)

    Article  Google Scholar 

  7. Gendreau, M., Laporte, G., Semet, F.: A dynamic model and parallel tabu search heuristic for real-time ambulance relocation. Parallel computing 27(12), 1641–1653 (2001)

    Article  Google Scholar 

  8. Gendreau, M., Laporte, G., Semet, F.: The maximal expected coverage relocation problem for emergency vehicles. J. Oper. Res. Soc. 57(1), 22–28 (2006)

    Article  Google Scholar 

  9. Guha, S., Khuller, S.: Greedy strikes back: improved facility location algorithms. J. Algorithms 31(1), 228–248 (1999)

    Article  MathSciNet  Google Scholar 

  10. Hotelling, H.: Stability in competition. In: The Collected Economics Articles of Harold Hotelling, pp. 50–63. Springer (1990). https://doi.org/10.1007/978-1-4613-8905-7_4

  11. Huang, W.V., Batta, R., Babu, A.: Relocation-promotion problem with Euclidean distance. Eur. J. Oper. Res. 46(1), 61–72 (1990)

    Article  Google Scholar 

  12. Huizing, D., Schäfer, G., van der Mei, R.D., Bhulai, S.: The median routing problem for simultaneous planning of emergency response and non-emergency jobs. Eur. J. Oper. Res. 285(2), 712–727 (2020)

    Article  MathSciNet  Google Scholar 

  13. Jagtenberg, C.J., Bhulai, S., van der Mei, R.D.: An efficient heuristic for real-time ambulance redeployment. Oper. Res. Health Care 4, 27–35 (2015)

    Article  Google Scholar 

  14. 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 (JACM) 48(2), 274–296 (2001)

    Article  MathSciNet  Google Scholar 

  15. Kariv, O., Hakimi, S.L.: An algorithmic approach to network location problems. II: the p-medians. SIAM J. Appl. Math. 37(3), 539–560 (1979)

    Google Scholar 

  16. Koutsoupias, E.: The k-server problem. Comput. Sci. Rev. 3(2), 105–118 (2009)

    Article  Google Scholar 

  17. Koutsoupias, E., Papadimitriou, C.H.: On the k-server conjecture. J. ACM 42(5), 971–983 (1995)

    Article  MathSciNet  Google Scholar 

  18. Lin, J.H., Vitter, J.S.: \(e\)-approximations with minimum packing constraint violation. In: Proceedings of the Twenty-Fourth Annual ACM Symposium on Theory of Computing, pp. 771–782. Association for Computing Machinery (1992)

    Google Scholar 

  19. Melo, M.T., Nickel, S., Da Gama, F.S.: Dynamic multi-commodity capacitated facility location: a mathematical modeling framework for strategic supply chain planning. Comput. Oper. Res. 33(1), 181–208 (2006)

    Article  Google Scholar 

  20. Nesterov, Y., Nemirovskii, A.: Interior-point Polynomial Algorithms in Convex Programming. Society for Industrial and Applied Mathematics (1994)

    Google Scholar 

  21. Tamir, A.: An \(O(pn^2)\) algorithm for the p-median and related problems on tree graphs. Oper. Res. Lett. 19(2), 59–64 (1996)

    Article  MathSciNet  Google Scholar 

  22. Teitz, M.B.: Locational strategies for competitive systems. J. Regional Sci. 8(2), 135–148 (1968)

    Article  Google Scholar 

  23. Wesolowsky, G.O.: Dynamic facility location. Manage. Sci. 19(11), 1241–1248 (1973)

    Article  Google Scholar 

Download references

Acknowledgements

We thank the three anonymous reviewers for their valuable suggestions.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Dylan Huizing .

Editor information

Editors and Affiliations

A Omitted proofs

A Omitted proofs

1.1 A.1 Theorem 1

Proof

U-TkMP is obviously in NP. We will prove that U-TkMP is at least as hard as the Set Cover Problem, which is NP-hard. Let \(I_1\) be the following instance of the decision version of the Set Cover Problem: given universe U and a collection S of subsets of U, can we find k (or less) members of S which have union U? Let \(I_2\) be an instance of the decision version of U-TkMP that we construct as follows. Let the node set be \(V:= V_U \cup V_S \cup \{s\}\), where each element in U is represented by its own node in \(V_U\), and each member in S is represented by its own node in \(V_S\), and \(s\) is some additional node. In the graph \(G=(V,E)\), we have \((u,v) \in E\) for nodes \(u,v \in V\) exactly when either of these two conditions hold: \(u,v \in V_S \cup \{s\}\), or \(u \in V_U\) and \(v \in V_S\) and the element that corresponds to u is contained in the subset that corresponds to v. In \(I_2\), we set \(\omega = 2\), and let all k agents start and end at \(s\), and we ask: can we find a feasible solution with cost at most \(2|S|+4|U|+(n-k)\)? \(I_2\) can be constructed in polynomial time and space with respect to the input of \(I_1\). In any feasible solution, all agents are at \(s\) at times \(\tau =0\) and \(\tau =2\), so we incur a cost of \(|S|+2|U|\). So the answer to \(I_2\) is ‘yes’ if and only if we can find a configuration at \(\tau =1\) with cost \((n-k)\), meaning every node is adjacent to at least one agent position. The agents can only be in \(V_S \cup \{s\}\), which is a clique. Adjacency to all nodes in \(V_U\) is achieved if and only if the chosen positions in \(V_S\) correspond to members of S which have union U. (If agents stay at \(s\), this corresponds to choosing less than k subsets in \(I_1\).) So any ‘yes’-answer to \(I_1\) supplies positions that will give a ‘yes’-answer to \(I_2\), and any ‘yes’-answer to \(I_2\) gives a ‘yes’-answer to \(I_1\) by reading out the positions at \(\tau =1\). So \(I_1\) and \(I_2\) are equivalent, implying U-TkMP is NP-hard.    \(\square \)

1.2 A.2 Theorem 2

Proof

Let \(G=(V,E)\) be the original graph of our TkMP-instance. We construct a weighted, expanded graph \(G^+=(V^+,E^+)\) as follows. First, make a ‘directed looping version’ of \(G\): take \(V\), and for every \(u,v \in V\), include arc (uv) if edge \(\{u,v\} \in E\) or \(u=v\). Let this digraph be denoted by \(G'\). Next, let \(\vec {T}\) be the digraph with node set \(T\), and arc set \(\cup _{\tau \in T\setminus \{\omega \}} \{(\tau ,\tau +1)\}\), so \(\vec {T}\) is a path digraph representing the time horizon.

Then, let \(G^+\) be the tensor product \((G')^{k} \times \vec {T}\). So every node \((u_1,u_2,\ldots ,u_k,\tau _1)\) in \(G^+\) represents a position for each agent, and a time-step. There is an arc in \(G^+\) from node \((u_1,u_2,\ldots ,u_k,\tau _1)\) to node \((v_1,v_2,\ldots ,v_k,\tau _2)\) if and only if the arc \((u_a,v_a)\) is in \(G'\) for each agent \(a\), and \(\tau _2 = \tau _1 + 1\).

Finally, let each such arc in \(G^+\) have weight \(D(\sigma _2)\), where \(\sigma _2\) is the visited configuration \((v_1,v_2,\ldots ,v_k)\). This means that, walking through \(G^+\), we incur at each time-step \(\tau = 1, \ldots , \omega \) the cost of the configuration currently visited. The cost made at \(\tau =0\) is a constant that is the same for each feasible solution. Therefore, finding an optimal TkMP-solution is equivalent to finding a cheapest \((s_1,s_2,\ldots ,s_k,0) - (t_1,t_2,\ldots ,t_k,\omega )\)-path. Because \(G^+\) has \(\mathcal O(\omega n^{k})\) nodes, finding this path with Dijkstra’s algorithm has time complexity \(\mathcal O(\omega ^2 n^{2k})\).    \(\square \)

1.3 A.3 Lemma 1

Proof

Suppose first that \(\omega \ge 2n\). Then, certainly, a walk exists from \(s\) to \(v\) and then \(t\). We take a shortest \((s,v)\)-walk and a shortest \((v,t)\)-walk, and spend all remaining time ‘looping’ at \(v\). This is obviously a walk \(\pi \) that minimizes \(\sum _{\tau =0}^{\omega } d(\pi ^{\tau }, v)\), because at every time-step, the agent is as near to \(v\) as the start and end conditions allow.

Suppose now that \(\omega < 2n\). In this case, we construct \(G^+\) exactly as in the proof of Theorem 2, setting \(k=1\). Each arc \(((u,\tau ), (u',\tau +1))\) in \(G^+\) now has weight \(d(u',v)\). Because \(\omega < 2n\), we find our walk in \(\mathcal O(n^4)\) by applying Dijkstra’s algorithm on \(G^+\) from \((s,0)\) to \((t,\omega )\).    \(\square \)

1.4 A.4 Theorem 4

Proof

We construct our solution as follows. First, if \(\sigma ^*\) is an optimal \(k\)-MED-configuration, we use the \(\alpha \)-approximation algorithm to find a good configuration \(\sigma \) with \(D(\sigma ) \le \alpha D(\sigma ^*)\), requiring a running time of \(\mathcal O(kmed(n))\). Next, we assign these medians to agents arbitrarily. Finally, for each of the \(k\le n/2\) agents, we find in \(\mathcal O(n^4)\) time the \((s, t)\)-walk that minimizes the total distance to that agent’s median, using Lemma 1. This adds a running time of \(\mathcal O(n/2 \cdot n^4)\), for a total of \(\mathcal O(kmed(n) + n^5)\).

We now prove that this yields an \((\alpha + 1)\)-approximation. Let \(\mu \) be the found solution, and \(\mu ^*\) an optimal solution. Obviously, \(\mu \) consists of shortest paths from \(s\) to points in \(\sigma \), a lot of waiting in \(\sigma \), then shortest paths to \(t\).

Observe any time-step \(\tau \). If \(n-1 \le \tau \le (\omega +1) - (n-1)\), then clearly all agents have reached their position in \(\sigma \) and have not departed them yet. In each of those time-steps, we have \(D(\mu ^{\tau }) \le \alpha D(\sigma ^*)\). In the other time-steps \(\tau \), we at least know that \(D(\mu ^{\tau }) \le n^2\), because each of the \(n\) nodes has an agent at most \(n\) hops away.

So, recalling Corollary 1, we find

$$ \frac{D(\mu )}{D(\mu ^*)} \le \frac{2n\cdot n^2}{\frac{1}{2}\omega n} + \frac{(\omega +1 - 2n) \cdot \alpha D(\sigma )}{(\omega +1)D(\sigma ^*)} \le \frac{2n\cdot n^2}{\frac{1}{2} \cdot 4n^2 \cdot n} + \alpha = \alpha + 1 $$

meaning \(\mu \) is an \((\alpha +1)\)-approximation.    \(\square \)

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Huizing, D., Schäfer, G. (2021). The Traveling k-Median Problem: Approximating Optimal Network Coverage. In: Koenemann, J., Peis, B. (eds) Approximation and Online Algorithms. WAOA 2021. Lecture Notes in Computer Science(), vol 12982. Springer, Cham. https://doi.org/10.1007/978-3-030-92702-8_6

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-92702-8_6

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-92701-1

  • Online ISBN: 978-3-030-92702-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics