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

11/29/2022
by   Ce Jin, et al.
0

Longest Common Substring (LCS) is an important text processing problem, which has recently been investigated in the quantum query model. The decisional version of this problem, LCS with threshold d, asks whether two length-n input strings have a common substring of length d. The two extreme cases, d=1 and d=n, correspond respectively to Element Distinctness and Unstructured Search, two fundamental problems in quantum query complexity. However, the intermediate case 1≪ d≪ n was not fully understood. We show that the complexity of LCS with threshold d smoothly interpolates between the two extreme cases up to n^o(1) factors: LCS with threshold d has a quantum algorithm in n^2/3+o(1)/d^1/6 query complexity and time complexity, and requires at least Ω(n^2/3/d^1/6) quantum query complexity. Our result improves upon previous upper bounds Õ(min{n/d^1/2, n^2/3}) (Le Gall and Seddighin ITCS 2022, Akmal and Jin SODA 2022), and answers an open question of Akmal and Jin. Our main technical contribution is a quantum speed-up of the powerful String Synchronizing Set technique introduced by Kempa and Kociumaka (STOC 2019). It consistently samples n/τ^1-o(1) synchronizing positions in the string depending on their length-Θ(τ) contexts, and each synchronizing position can be reported by a quantum algorithm in Õ(τ^1/2+o(1)) time. As another application of our quantum string synchronizing set, we study the k-mismatch Matching problem, which asks if the pattern has an occurrence in the text with at most k Hamming mismatches. Using a structural result of Charalampopoulos, Kociumaka, and Wellnitz (FOCS 2020), we obtain a quantum algorithm for k-mismatch matching with k^3/4 n^1/2+o(1) query complexity and Õ(kn^1/2) time complexity.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/01/2022

Quantum jumbled pattern matching

Let S_1, S_2 ∈Σ^* strings, we say that S_1 jumble match S_2 if they are ...
research
01/07/2020

Quantum Algorithms for the Most Frequently String Search, Intersection of Two String Sequences and Sorting of Strings Problems

We study algorithms for solving three problems on strings. The first one...
research
01/17/2018

Exact quantum query complexity of weight decision problems

The weight decision problem, which requires to determine the Hamming wei...
research
08/01/2020

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

We consider online algorithms for the k-server problem on trees. Chrobak...
research
12/29/2021

Exact quantum query complexity of computing Hamming weight modulo powers of two and three

We study the problem of computing the Hamming weight of an n-bit string ...
research
08/22/2023

Quantum Circuits for Fixed Substring Matching Problems

Quantum computation represents a computational paradigm whose distinctiv...
research
10/12/2022

Quantum divide and conquer

The divide-and-conquer framework, used extensively in classical algorith...

Please sign up or login with your details

Forgot password? Click here to reset