arXiv · 2611.35397
Quantum Algorithm for Parameterized Aperiodic Pattern Matching
Abstract
In string matching, the most basic setting is that we are given a text $T[0 \ldots n-1]$ and a pattern $P[0\ldots m-1]$. We want to find whether $P$ appears in $T$ as a substring or not. This is a very fundamental problem with wide applicability across many practical domains. We consider a variant of string matching namely, parameterized pattern matching, in which, two strings are considered to match if there exists a one-to-one mapping between the symbols appearing in them. Thus, two strings can match even if they consist of different alphabet symbols, provided that the pattern of symbols repetitions is identical in both strings. Bringing out quantum advantage in string matching problems involves a careful blend of string combinatorics and quantum primitives. In the RAM model, the best time complexity for pattern matching is $O(n+m)$ or simply written as $O(n)$, as $m$ is taken to be $\le n$. In the quantum query model, Ramesh and Vinay ~\cite{RameshVinay2003} established a $\widetilde{O}(\sqrt{n}+\sqrt{m})$ query complexity for the conventional string matching problem. In this work, we study quantum query complexity of parameterized pattern matching focusing on non-periodic patterns and present a quantum algorithm with $\widetilde{O}(\sqrt{n}+\sqrt{m})$ query complexity, assuming oracle access to the input text and pattern, as well as their precomputed previous-encoding arrays
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Rahul Shah, Lalita Sthapit. 2026-11-26. Quantum Algorithm for Parameterized Aperiodic Pattern Matching. https://arxiv.science/abs/2611.35397
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.