Compressibility-Aware Quantum Algorithms on Strings

02/14/2023
by   Daniel Gibney, et al.
0

Sublinear time quantum algorithms have been established for many fundamental problems on strings. This work demonstrates that new, faster quantum algorithms can be designed when the string is highly compressible. We focus on two popular and theoretically significant compression algorithms – the Lempel-Ziv77 algorithm (LZ77) and the Run-length-encoded Burrows-Wheeler Transform (RL-BWT), and obtain the results below. We first provide a quantum algorithm running in Õ(√(zn)) time for finding the LZ77 factorization of an input string T[1..n] with z factors. Combined with multiple existing results, this yields an Õ(√(rn)) time quantum algorithm for finding the RL-BWT encoding with r BWT runs. Note that r = Θ̃(z). We complement these results with lower bounds proving that our algorithms are optimal (up to polylog factors). Next, we study the problem of compressed indexing, where we provide a Õ(√(rn)) time quantum algorithm for constructing a recently designed Õ(r) space structure with equivalent capabilities as the suffix tree. This data structure is then applied to numerous problems to obtain sublinear time quantum algorithms when the input is highly compressible. For example, we show that the longest common substring of two strings of total length n can be computed in Õ(√(zn)) time, where z is the number of factors in the LZ77 factorization of their concatenation. This beats the best known Õ(n^2/3) time quantum algorithm when z is sufficiently small.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/23/2020

Quantum Meets Fine-grained Complexity: Sublinear Time Quantum Algorithms for String Problems

Longest common substring (LCS), longest palindrome substring (LPS), and ...
research
05/28/2020

Classical and Quantum Algorithms for Constructing Text from Dictionary Problem

We study algorithms for solving the problem of constructing a text (long...
research
02/16/2022

An Optimal-Time RLBWT Construction in BWT-runs Bounded Space

The compression of highly repetitive strings (i.e., strings with many re...
research
08/11/2021

Practical evaluation of Lyndon factors via alphabet reordering

We evaluate the influence of different alphabet orderings on the Lyndon ...
research
05/04/2023

Prefix Sorting DFAs: a Recursive Algorithm

In the past thirty years, numerous algorithms for building the suffix ar...
research
02/10/2020

Palindromic k-Factorization in Pure Linear Time

Given a string s of length n over a general alphabet and an integer k, t...
research
03/05/2018

Optimal Substring-Equality Queries with Applications to Sparse Text Indexing

We consider the problem of encoding a string of length n from an alphabe...

Please sign up or login with your details

Forgot password? Click here to reset