Skip to main content

A k-Median Based Online Algorithm for the Stochastic k-Server Problem

  • Conference paper
  • First Online:
  • 744 Accesses

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

Abstract

We consider the k-server problem in the random arrival model and present a simple k-median based algorithm for this problem. Let \(\sigma =\langle r_1,\ldots , r_n\rangle \) be the sequence of requests. Our algorithm will batch the requests into \(\log n\) groups where the \((i+1)^{st}\) group contains requests \(\langle r_{2^i +1},\ldots , r_{2^{i+1}}\rangle \). To process the requests of group \(i+1\), our algorithm will place the k servers at the k-median centers of the first \(2^i\) requests. When a new request of this group arrives, the algorithm will simply assign the server associated with the nearest k-median center to serve it. We show that this simple algorithm, in the random arrival model, has a competitive ratio of at most \(O(\alpha )\) and an additive cost of \( O(\varDelta k\log n)\), where \(\varDelta \) is the diameter of the requests and \(\alpha \) is a lower bound on the competitive ratio of any online algorithm in this model.

For our analysis, we use the following fact: In the random arrival model, the expected cost of serving the next request is minimized when servers are located at the k-median of the requests that have not yet arrived (unprocessed requests). But our algorithm instead uses the k-median of the requests seen so far as a proxy. Using existing analysis techniques, we obtain only a large bound on the difference between k-median of the unprocessed requests and that of the processed ones. In particular, in addition to \(O(\alpha )\) times the optimal cost, for some \(\epsilon > 0\), existing analysis techniques will also give an additive cost of \(\epsilon n\) for serving n requests. We present a new analysis to show that when the number of processed and unprocessed requests are of comparable sizes, the cost of serving n requests incurs only an additive cost of \(k\varDelta \) (independent of n and significantly better than the previous methods). We then apply this bound for serving each of the \(\log n\) groups and obtain an overall bound which is \(O(\alpha )\) times the optimal cost with an additive error of \(O(k\varDelta \log n)\).

A. D. Friedman and S. Raghvendra were supported under grant NSF-CCF 1464276. A. Adiga was supported by the DTRA CNIMS Contract HDTRA1-11-D-0016-0001.

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

Buying options

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

Learn about institutional subscriptions

References

  1. Mahdian, M., Yan, Q.: Online bipartite matching with random arrivals: an approach based on strongly factor-revealing LPs. In: Proceedings of the 43rd Annual ACM Symposium on Theory of Computing, STOC 2011, pp. 597–606 (2011)

    Google Scholar 

  2. Karande, C., Mehta, A., Tripathi, P.: Online bipartite matching with unknown distributions. In: Proceedings of the Forty-Third Annual ACM Symposium on Theory of Computing, STOC 2011, pp. 587–596. ACM, New York (2011)

    Google Scholar 

  3. Manasse, M.S., McGeoch, L.A., Sleator, D.D.: Competitive algorithms for server problems. J. Algorithms 11(2), 208–230 (1990)

    Article  MathSciNet  MATH  Google Scholar 

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

    Article  MathSciNet  MATH  Google Scholar 

  5. Bansal, N., Buchbinder, N., Madry, A., Naor, J.: A polylogarithmic-competitive algorithm for the k-server problem. In: Proceedings of the IEEE 52nd Annual Symposium on Foundations of Computer Science (FOCS), pp. 267–276, October 2011

    Google Scholar 

  6. Raghvendra, S.: A Robust and optimal online algorithm for minimum metric bipartite matching. In: Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, APPROX/RANDOM 2016, vol. 60, pp. 18:1–18:16 (2016)

    Google Scholar 

  7. Czumaj, A., Sohler, C.: Sublinear-time approximation algorithms for clustering via random sampling. Random Struct. Algorithms 30(1–2), 226–256 (2007)

    Article  MathSciNet  MATH  Google Scholar 

  8. Meyerson, A., O’callaghan, L., Plotkin, S.: A k-median algorithm with running time independent of data size. Mach. Learn. 56(1–3), 61–87 (2004)

    Article  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sharath Raghvendra .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer International Publishing AG, part of Springer Nature

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Adiga, A., Friedman, A.D., Raghvendra, S. (2018). A k-Median Based Online Algorithm for the Stochastic k-Server Problem. In: Solis-Oba, R., Fleischer, R. (eds) Approximation and Online Algorithms. WAOA 2017. Lecture Notes in Computer Science(), vol 10787. Springer, Cham. https://doi.org/10.1007/978-3-319-89441-6_14

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-89441-6_14

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-89440-9

  • Online ISBN: 978-3-319-89441-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics