Near-Optimal Quantum Algorithm for Finding the Longest Common Substring between Run-Length Encoded Strings

Abstract

We give a near-optimal quantum algorithm for the longest common substring (LCS) problem between two run-length encoded (RLE) strings, with the assumption that the prefix-sums of the run-lengths are given. Our algorithm costs O(n2/3/d1/6-o(1)·polylog(n)) time, while the query lower bound for the problem is (n2/3/d1/6), where n and n are the encoded and decoded length of the inputs, respectively, and d is the encoded length of the LCS. We justify the use of prefix-sum oracles for two reasons. First, we note that creating the prefix-sum oracle only incurs a constant overhead in the RLE compression. Second, we show that, without the oracles, there is a (n/2n) lower bound on the quantum query complexity of finding the LCS given two RLE strings due to a reduction of PARITY to the problem. With a small modification, our algorithm also solves the longest repeated substring problem for an RLE string.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…