We consider metrical task systems on tree metrics and present an $O(\mathrm{depth} \times \log n)$-competitive randomized algorithm based on the mirror descent framework introduced in our prior work on the $k$-server problem. For the special case of hierarchically separated trees (HSTs), we use mirror descent to refine the standard approach based on gluing unfair metrical task systems. This yields an $O(\log n)$-competitive algorithm for HSTs, thus removing an extraneous $\log\log n$ in the bound of Fiat and Mendel (2003). Combined with well-known HST embedding theorems, this also gives an $O((\log n)^2)$-competitive randomized algorithm for every $n$-point metric space.


  1. online algorithms
  2. convex optimization
  3. finite metric space

MSC codes

  1. 68W27

Formats available

You can view the full content in the following formats:


Y. Bartal, Probabilistic approximations of metric spaces and its algorithmic applications, in Proceedings of the 37th Annual IEEE Symposium on Foundations of Computer Science, FOCS '96, Burlington, VT, 1996, pp. 184--193.
Y. Bartal, A. Blum, C. Burch, and A. Tomkins, A polylog(n)-competitive algorithm for metrical task systems, in Proceedings of the Twenty-ninth Annual ACM Symposium on Theory of Computing, STOC '97, ACM, New York, 1997, pp. 711--719.
Y. Bartal, B. Bollobás, and M. Mendel, Ramsey-type theorems for metric spaces with applications to online problems, J. Comput. System Sci., 72 (2006), pp. 890--921.
N. Bansal, N. Buchbinder, A. Madry, and J. Naor, A polylogarithmic-competitive algorithm for the $k$-server problem, J. ACM, 62 (2015), 40.
N. Bansal, N. Buchbinder, and J. Naor, Metrical task systems and the k-server problem on hsts, in Proceedings of the 37th International Colloquium Conference on Automata, Languages and Programming, ICALP'10, Springer-Verlag, Berlin, Heidelberg, 2010, pp. 287--298.
N. Bansal, N. Buchbinder, and J. Naor, A primal-dual randomized algorithm for weighted paging, J. ACM, 59 (2012), 19.
S. Bubeck, M. B. Cohen, Y. T. Lee, J. R. Lee, and A. Madry, k-server via multiscale entropic regularization, in Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2018, Los Angeles, CA, 2018, pp. 3--16.
A. Blum, H. Karloff, Y. Rabani, and M. Saks, A decomposition theorem for task systems and bounds for randomized server problems, SIAM J. Comput., 30 (2000), pp. 1624--1661, https://doi.org/10.1137/S0097539799351882.
Y. Bartal, N. Linial, M. Mendel, and A. Naor, On metric Ramsey-type phenomena, Ann. of Math. (2), 162 (2005), pp. 643--709.
A. Borodin, N. Linial, and M. E. Saks, An optimal on-line algorithm for metrical task system, J. ACM, 39 (1992), pp. 745--763.
A. Fiat and M. Mendel, Better algorithms for unfair metrical task systems and applications, SIAM J. Comput., 32 (2003), pp. 1403--1422, https://doi.org/10.1137/S0097539700376159.
J. Fakcharoenphol, S. Rao, and K. Talwar, A tight bound on approximating arbitrary metrics by tree metrics, J. Comput. System Sci., 69 (2004), pp. 485--497.
G. Leoni, A First Course in Sobolev Spaces, AMS, Providence, RI, 2009.
S. Seiden, Unfair problems and randomized algorithms for metrical task systems, Inform. and Comput., 148 (1999), pp. 219--240.

Information & Authors


Published In

cover image SIAM Journal on Computing
SIAM Journal on Computing
Pages: 909 - 923
ISSN (online): 1095-7111


Submitted: 9 January 2019
Accepted: 16 February 2021
Published online: 27 May 2021


  1. online algorithms
  2. convex optimization
  3. finite metric space

MSC codes

  1. 68W27



Funding Information

National Science Foundation https://doi.org/10.13039/100000001 : CCF-1616297, CCF-1407779

Funding Information

National Science Foundation https://doi.org/10.13039/100000001 : CCF-1740551, CCF-1749609

Funding Information

Simons Foundation https://doi.org/10.13039/100000893

Metrics & Citations



If you have the appropriate software installed, you can download article citation data to the citation manager of your choice. Simply select your manager software from the list below and click Download.

Cited By







Copy the content Link

Share with email

Email a colleague

Share on social media

The SIAM Publications Library now uses SIAM Single Sign-On for individuals. If you do not have existing SIAM credentials, create your SIAM account https://my.siam.org.