arXiv:2611.17541cs.DSNov 2026

Manuscript Offprint

arXiv:2611.17541

Quantum Algorithm with Quadratic Speedup for 2D Pattern Matching

Rishabh Gala, Rahul Shah

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We consider the problem of 2 dimensional pattern matching under Quantum Query model. Here, we are given a rectangular text T[0..n1−1][0..n2−1]T[0..n_1-1][0..n_2-1] and a pattern P[0..m1−1][0..m2−1]P[0..m_1 -1][0..m_2-1]. We take N=n1n2N = n_1n_2 and M=m1m2M = m_1m_2 as the sizes of text and the pattern respectively (we assume M<NM < N). Based upon the Quantum Advantage given by Grover's search (and subsequent Dürr-Høyer search), we create a solution which takes O~(N)\tilde{O}(\sqrt{N}) query complexity to answer if the pattern PP exists in TT. Our solution uses deterministic sampling as a primary component. As noted by earlier work in the literature, deterministic sampling is inadequate and witness tables are essential components for 2D matching. In our settings, we assume that the witness table of the pattern is precomputed classically and is available as an oracle to the quantum algorithm. Our main novel component is how to compute and employ a geometric structure called ``skyline" without losing the quantum advantage.

A PDF page turning into lines of clean text

Preparing the full text

It will appear here by itself. You can read the abstract meanwhile.