Near-Optimal Quantum Algorithms for String Problems
- URL: http://arxiv.org/abs/2110.09696v2
- Date: Wed, 20 Oct 2021 23:47:57 GMT
- Title: Near-Optimal Quantum Algorithms for String Problems
- Authors: Shyan Akmal, Ce Jin
- Abstract summary: We give quantum algorithms for fundamental string problems with near-optimal query complexities and time complexities.
These problems include Longest Common Substring, Lexicographically Minimal String Rotation, and Longest Square Substring.
Our techniques naturally extend to other related string problems, such as Longest Repeated Substring, Longest Lyndon Substring, and Minimal Suffix.
- Score: 0.5736353542430439
- License: http://creativecommons.org/licenses/by-nc-nd/4.0/
- Abstract: We study quantum algorithms for several fundamental string problems,
including Longest Common Substring, Lexicographically Minimal String Rotation,
and Longest Square Substring. These problems have been widely studied in the
stringology literature since the 1970s, and are known to be solvable by
near-linear time classical algorithms. In this work, we give quantum algorithms
for these problems with near-optimal query complexities and time complexities.
Specifically, we show that:
- Longest Common Substring can be solved by a quantum algorithm in $\tilde
O(n^{2/3})$ time, improving upon the recent $\tilde O(n^{5/6})$-time algorithm
by Le Gall and Seddighin (2020). Our algorithm uses the MNRS quantum walk
framework, together with a careful combination of string synchronizing sets
(Kempa and Kociumaka, 2019) and generalized difference covers.
- Lexicographically Minimal String Rotation can be solved by a quantum
algorithm in $n^{1/2 + o(1)}$ time, improving upon the recent $\tilde
O(n^{3/4})$-time algorithm by Wang and Ying (2020). We design our algorithm by
first giving a new classical divide-and-conquer algorithm in near-linear time
based on exclusion rules, and then speeding it up quadratically using nested
Grover search and quantum minimum finding.
- Longest Square Substring can be solved by a quantum algorithm in $\tilde
O(\sqrt{n})$ time. Our algorithm is an adaptation of the algorithm by Le Gall
and Seddighin (2020) for the Longest Palindromic Substring problem, but uses
additional techniques to overcome the difficulty that binary search no longer
applies.
Our techniques naturally extend to other related string problems, such as
Longest Repeated Substring, Longest Lyndon Substring, and Minimal Suffix.
Related papers
- Sum-of-Squares inspired Quantum Metaheuristic for Polynomial Optimization with the Hadamard Test and Approximate Amplitude Constraints [76.53316706600717]
Recently proposed quantum algorithm arXiv:2206.14999 is based on semidefinite programming (SDP)
We generalize the SDP-inspired quantum algorithm to sum-of-squares.
Our results show that our algorithm is suitable for large problems and approximate the best known classicals.
arXiv Detail & Related papers (2024-08-14T19:04:13Z) - Quantum algorithms for Hopcroft's problem [45.45456673484445]
We study quantum algorithms for Hopcroft's problem which is a fundamental problem in computational geometry.
The classical complexity of this problem is well-studied, with the best known algorithm running in $O(n4/3)$ time.
Our results are two different quantum algorithms with time complexity $widetilde O(n5/6)$.
arXiv Detail & Related papers (2024-05-02T10:29:06Z) - Generalized quantum Arimoto-Blahut algorithm and its application to
quantum information bottleneck [55.22418739014892]
We generalize the quantum Arimoto-Blahut algorithm by Ramakrishnan et al.
We apply our algorithm to the quantum information bottleneck with three quantum systems.
Our numerical analysis shows that our algorithm is better than their algorithm.
arXiv Detail & Related papers (2023-11-19T00:06:11Z) - A sublinear time quantum algorithm for longest common substring problem
between run-length encoded strings [0.951828574518325]
We give a sublinear quantum algorithm for the longest common (LCS) problem on the run-length encoded (RLE) inputs.
Our algorithm costs $tildeO(n5/6)cdot O(mathrmpolylog(tilden))$ time, where $n$ and $tilden$ are the encoded and decoded length of the inputs, respectively.
arXiv Detail & Related papers (2023-10-02T08:14:34Z) - Longest Common Substring and Longest Palindromic Substring in
$\tilde{\mathcal{O}}(\sqrt{n})$ Time [0.0]
The Longest Common Substring (LCS) and Longest Palindromic Substring (LPS) are classical problems in computer science.
We present a quantum algorithm for both LCS and LPS working in the circuit model of computation.
arXiv Detail & Related papers (2023-09-03T19:27:57Z) - Quantum Algorithms for the Shortest Common Superstring and Text
Assembling Problems [11.048346250166073]
We consider two versions of the Text Assembling problem.
We are given a sequence of strings $s1,dots,sn$ of total length $L$ that is a dictionary, and a string $t$ of length $m$ that is texts.
For both problems, we suggest new quantum algorithms that work better than their classical counterparts.
arXiv Detail & Related papers (2023-06-18T14:16:49Z) - Mind the gap: Achieving a super-Grover quantum speedup by jumping to the
end [114.3957763744719]
We present a quantum algorithm that has rigorous runtime guarantees for several families of binary optimization problems.
We show that the algorithm finds the optimal solution in time $O*(2(0.5-c)n)$ for an $n$-independent constant $c$.
We also show that for a large fraction of random instances from the $k$-spin model and for any fully satisfiable or slightly frustrated $k$-CSP formula, statement (a) is the case.
arXiv Detail & Related papers (2022-12-03T02:45:23Z) - Linear Bandit Algorithms with Sublinear Time Complexity [67.21046514005029]
We propose to accelerate existing linear bandit algorithms to achieve per-step time complexity sublinear in the number of arms $K$.
We show that our proposed algorithms can achieve $O(K1-alpha(T))$ per-step complexity for some $alpha(T) > 0$ and $widetilde O(stT)$ regret, where $T$ is the time horizon.
arXiv Detail & Related papers (2021-03-03T22:42:15Z) - Quantum Algorithms for String Processing [58.720142291102135]
We provide a quantum algorithm for the String matching problem that uses exponentially less quantum memory than existing ones.
Using the same ideas, we provide two algorithms for the String comparing problem.
The second algorithm works exponentially faster than the existing one.
arXiv Detail & Related papers (2020-12-01T09:59:06Z) - Quantum Meets Fine-grained Complexity: Sublinear Time Quantum Algorithms
for String Problems [5.490993287665715]
Longest common (LCS), longest palindrome (LPS), and Ulam distance (UL) are three fundamental string problems that can be classically solved in near linear time.
We present sublinear time quantum algorithms for these problems along with quantum lower bounds.
arXiv Detail & Related papers (2020-10-23T01:00:50Z) - Classical and Quantum Algorithms for Constructing Text from Dictionary
Problem [0.0]
We study algorithms for solving the problem of constructing a text from a dictionary (sequence of small strings)
The problem has an application in bioinformatics and has a connection with the Sequence assembly method for reconstructing a long DNA sequence from small fragments.
arXiv Detail & Related papers (2020-05-28T22:44:01Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.