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

08/01/2020
by   Ruslan Kapralov, et al.
0

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(nlog n) time complexity for preprocessing and O(k^2 + k·log n) 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√(n)log n). When the number of queries is o(√(n)/k^2log n), we obtain a quantum speed-up on the total runtime compared to our classical algorithm. Our algorithm builds on a result of independent interest: we give a 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(√(m)). In the particular case of one-sided errors on the input, it has expected time complexity O(√(x)) where x is the position of the first marked element.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/31/2020

A Fast Algorithm for Online k-servers Problem on Trees

We consider online algorithms for the k-servers problem on trees. There ...
research
12/17/2020

Quantum Algorithm for Lexicographically Minimal String Rotation

Lexicographically minimal string rotation (LMSR) is a problem to find th...
research
10/16/2017

A Fast Tree Algorithm for Electric Field Calculation in Electrical Discharge Simulations

The simulation of electrical discharges has been attracting a great deal...
research
07/10/2019

Approximate Voronoi cells for lattices, revisited

We revisit the approximate Voronoi cells approach for solving the closes...
research
03/27/2013

An Algorithm for Computing Probabilistic Propositions

A method for computing probabilistic propositions is presented. It assum...
research
11/29/2022

Quantum Speed-ups for String Synchronizing Sets, Longest Common Substring, and k-mismatch Matching

Longest Common Substring (LCS) is an important text processing problem, ...
research
09/03/2023

Longest Common Substring and Longest Palindromic Substring in 𝒪̃(√(n)) Time

The Longest Common Substring (LCS) and Longest Palindromic Substring (LP...

Please sign up or login with your details

Forgot password? Click here to reset