English

Quantum pattern matching fast on average

Quantum Physics 2015-08-27 v3 Data Structures and Algorithms

Abstract

The dd-dimensional pattern matching problem is to find an occurrence of a pattern of length m××mm \times \dots \times m within a text of length n××nn \times \dots \times n, with nmn \ge m. This task models various problems in text and image processing, among other application areas. This work describes a quantum algorithm which solves the pattern matching problem for random patterns and texts in time O~((n/m)d/22O(d3/2logm))\widetilde{O}((n/m)^{d/2} 2^{O(d^{3/2}\sqrt{\log m})}). For large mm this is super-polynomially faster than the best possible classical algorithm, which requires time Ω~((n/m)d+nd/2)\widetilde{\Omega}( (n/m)^d + n^{d/2} ). The algorithm is based on the use of a quantum subroutine for finding hidden shifts in dd dimensions, which is a variant of algorithms proposed by Kuperberg.

Keywords

Cite

@article{arxiv.1408.1816,
  title  = {Quantum pattern matching fast on average},
  author = {Ashley Montanaro},
  journal= {arXiv preprint arXiv:1408.1816},
  year   = {2015}
}

Comments

22 pages, 2 figures; v3: further minor changes, essentially published version

R2 v1 2026-06-22T05:23:04.484Z