English

Fast Classical and Quantum Algorithms for Online $k$-server Problem on Trees

Data Structures and Algorithms 2021-07-29 v3 Quantum Physics

Abstract

We consider online algorithms for the kk-server problem on trees. Chrobak and Larmore proposed a kk-competitive algorithm for this problem that has the optimal competitive ratio. However, a naive implementation of their algorithm has O(n)O(n) time complexity for processing each query, where nn is the number of nodes in the tree. We propose a new time-efficient implementation of this algorithm that has O(nlogn)O(n\log n) time complexity for preprocessing and O(k2+klogn)O\left(k^2 + k\cdot \log n\right) time for processing a query. We also propose a quantum algorithm for the case where the nodes of the tree are presented using string paths. In this case, no preprocessing is needed, and the time complexity for each query is O(k2nlogn)O(k^2\sqrt{n}\log n). When the number of queries is o(nk2logn)o\left(\frac{\sqrt{n}}{k^2\log n}\right), we obtain a quantum speed-up on the total runtime compared to our classical algorithm. We also give a simple quantum algorithm to find the first marked element in a collection of mm objects, that works even in the presence of two-sided bounded errors on the input oracle. It has worst-case complexity O(m)O(\sqrt{m}). In the particular case of one-sided errors on the input, it has expected time complexity O(x)O(\sqrt{x}) where xx is the position of the first marked element. Compare with previous work, our algorithm can handle errors in the input oracle.

Keywords

Cite

@article{arxiv.2008.00270,
  title  = {Fast Classical and Quantum Algorithms for Online $k$-server Problem on Trees},
  author = {Ruslan Kapralov and Kamil Khadiev and Joshua Mokut and Yixin Shen and Maxim Yagafarov},
  journal= {arXiv preprint arXiv:2008.00270},
  year   = {2021}
}

Comments

ICTCS2021

R2 v1 2026-06-23T17:34:28.317Z