Near-Optimal Quantum Algorithms for Bounded Edit Distance and Lempel-Ziv Factorization
Abstract
Classically, the edit distance of two length- strings can be computed in time, whereas an -time procedure would falsify the Orthogonal Vectors Hypothesis. If the edit distance does not exceed , the running time can be improved to , which is near-optimal (conditioned on OVH) as a function of and . Our first main contribution is a quantum -time algorithm that uses queries, where hides polylogarithmic factors. This query complexity is unconditionally optimal, and any significant improvement in the time complexity would resolve a long-standing open question of whether edit distance admits an -time quantum algorithm. Our divide-and-conquer quantum algorithm reduces the edit distance problem to a case where the strings have small Lempel-Ziv factorizations. Then, it combines a quantum LZ compression algorithm with a classical edit-distance subroutine for compressed strings. The LZ factorization problem can be classically solved in time, which is unconditionally optimal in the quantum setting. We can, however, hope for a quantum speedup if we parameterize the complexity in terms of the factorization size . Already a generic oracle identification algorithm yields the optimal query complexity of at the price of exponential running time. Our second main contribution is a quantum algorithm that achieves the optimal time complexity of . The key tool is a novel LZ-like factorization of size whose subsequent factors can be efficiently computed through a combination of classical and quantum techniques. We can then obtain the string's run-length encoded Burrows-Wheeler Transform (BWT), construct the -index, and solve many fundamental string processing problems in time .
Cite
@article{arxiv.2311.01793,
title = {Near-Optimal Quantum Algorithms for Bounded Edit Distance and Lempel-Ziv Factorization},
author = {Daniel Gibney and Ce Jin and Tomasz Kociumaka and Sharma V. Thankachan},
journal= {arXiv preprint arXiv:2311.01793},
year = {2023}
}
Comments
Accepted to SODA 2024. arXiv admin note: substantial text overlap with arXiv:2302.07235