arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2008.00270cs.DSquant-ph
收藏

树上在线$k$ -服务器问题的快速经典和量子算法

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

Ruslan Kapralov, Kamil Khadiev, Joshua Mokut, Yixin Shen, Maxim Yagafarov

摘要:

我们认为在线算法的$k$ -服务器问题的树。Chrobak和Larmore提出了一个具有最优竞争比的$k$ -竞争算法。然而,他们的算法的简单实现对于处理每个查询具有$O(n)$时间复杂度,其中$n$是树中的节点数。我们提出了一个新的时间效率的实现,该算法具有$O(n\log n)$时间复杂度的预处理和$O\left(k^2 + k\cdot \log n\right)$时间处理查询。我们还提出了一个量子算法的情况下,树的节点使用字符串路径。在这种情况下,不需要预处理,每个查询的时间复杂度为$O(k^2\sqrt{n}\log n)$。当查询次数为$o\left(\frac{\sqrt{n}}{k^2\log n}\right)$时,与经典算法相比,我们在总运行时间上获得了量子加速。我们还给出了一个简单的量子算法,以找到第一个标记元素的$m$对象的集合中,即使在存在双边有界错误的输入Oracle的作品。它具有最差情况复杂性$O(\sqrt{m})$。在输入的单侧错误的特定情况下,它具有预期的时间复杂度$O(\sqrt{x})$,其中$x$是第一个标记元素的位置。与以前的工作相比,我们的算法可以处理输入预言中的错误。

英文摘要:

We consider online algorithms for the $k$-server problem on trees. Chrobak and Larmore proposed a $k$-competitive algorithm for this problem that has the optimal competitive ratio. However, a naive implementation of their algorithm has $O(n)$ time complexity for processing each query, where $n$ is the number of nodes in the tree. We propose a new time-efficient implementation of this algorithm that has $O(n\log n)$ time complexity for preprocessing and $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(k^2\sqrt{n}\log n)$. When the number of queries is $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 $m$ objects, that works even in the presence of two-sided bounded errors on the input oracle. It has worst-case complexity $O(\sqrt{m})$. In the particular case of one-sided errors on the input, it has expected time complexity $O(\sqrt{x})$ where $x$ is the position of the first marked element. Compare with previous work, our algorithm can handle errors in the input oracle.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑