CoChat

Quantum Pattern Matching Fast on Average

Open access
Montanaro, Ashley · 2017 · Algorithmica

The DOI matches its Crossref record; 37 of the 39 references it cites were found in a registry or an index.

Abstract

The d-dimensional pattern matching problem is to find an occurrence of a pattern of length m×⋯×m\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$m \times \dots \times m$$\end{document} within a text of length n×⋯×n\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$n \times \dots \times n$$\end{document}, with n≥m\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$n \ge m$$\end{document}. 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))\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widetilde{O}((n/m)^{d/2} 2^{O(d^{3/2}\sqrt{\log m})})$$\end{document}. For large m this is super-polynomially faster than the best possible classical algorithm, which requires time Ω~(nd/2+(n/m)d)\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widetilde{\Omega }( n^{d/2} + (n/m)^d)$$\end{document}. The algorithm is based on the use of a quantum subroutine for finding hidden shifts in d dimensions, which is a variant of algorithms proposed by Kuperberg.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1007/s00453-015-0060-4

Cites

37 of 37 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

  • Quantum Mechanics Helps in Searching for a Needle in a Haystack

    Grover, L. K. (1997) · Physical Review Letters · doi:10.1103/physrevlett.79.325 · Cited by 4,306 · cited 1×

    “Grover’s algorithm [17] can be seen as searching for a pattern of length 1 in a text of length n using O( √ n) queries to the text.”
  • Fast Pattern Matching in Strings

    Knuth, D. E., Morris, Jr., & Pratt, V. R. (1977) · SIAM Journal on Computing · doi:10.1137/0206024 · Cited by 2,936 · cited 5×

    “A simple algorithm was given by Knuth [21, Section 8] which runs in time O(n(logqm)/m + m) with high probability on such random inputs, while still preserving efficient worst-case behaviour.”
    BackgroundMethodInfluential
  • A guided tour to approximate string matching

    Navarro, G. (2001) · ACM Computing Surveys · doi:10.1145/375360.375365 · Cited by 2,561

  • A fast string searching algorithm

    Boyer, R. S., & Moore, J. S. (1977) · Communications of the ACM · doi:10.1145/359842.359859 · Cited by 2,290 · cited 1×

    “As well as the KMP algorithm already mentioned, another approach frequently used in practice classically is the Boyer-Moore algorithm [5], which achieves good performance for random inputs when the alphabet size is large.”
    Method
  • Quantum amplitude amplification and estimation

    Brassard, G., Høyer, P., Mosca, M., & Tapp, A. (2002) · Contemporary Mathematics · doi:10.1090/conm/305/05215 · Cited by 1,680 · cited 1×

    “We will need the following simple lemma, whose proof follows immediately from amplitude amplification [6].”
  • Strengths and Weaknesses of Quantum Computing

    Bennett, C. H., Bernstein, E., Brassard, G., & Vazirani, U. (1997) · SIAM Journal on Computing · doi:10.1137/s0097539796300933 · Cited by 1,470 · cited 2×

    “nistic sampling [33]. It is easy to see that this complexity is optimal in the worst case up to logarithmic factors, using standard lower bounds on the quantum query complexity of unstructured search [4]. The algorithm of Ramesh and Vinay achieves a faster runtime than the algorithms described here in the case that mi…”
    BackgroundMethodInfluential
  • Quantum Random Access Memory

    Giovannetti, V., Lloyd, S., & Maccone, L. (2008) · Physical Review Letters · doi:10.1103/physrevlett.100.160501 · Cited by 935 · cited 1×

    “ery to T or P uses time O(1). We can think of T and P as either easily evaluated oracle functions in the query complexity model, or data stored in an eciently accessible quantum random-access memory [17]. Observe that, for any xed d, 2O(d3=2 p logm) = o(m) for any >0. When mis large, Theorem 1thus demonstrates a su…”
    Background
  • Algorithms on Strings

    Crochemore, M., Hancart, C., & Lecroq, T. (2007) · Cambridge University Press eBooks · doi:10.1017/cbo9780511546853 · Cited by 676 · cited 1×

    “For surveys of the (now vast) classical pattern matching literature, see for example [10,25].”
    Background
  • Quantum Amplitude Amplification and Estimation

    Gilles Brassard, A., Høyer, P., Mosca, M., & Tapp, A. (2000) · doi:10.48550/arxiv.quant-ph/0005055 · Cited by 514 · cited 1×

    “We will need the following simple lemma, whose proof follows immediately from amplitude amplification [6].”
  • A Subexponential-Time Quantum Algorithm for the Dihedral Hidden Subgroup Problem

    Kuperberg, G. (2005) · SIAM Journal on Computing · doi:10.1137/s0097539703436345 · Cited by 347 · cited 8×

    “The algorithm to determine s can be seen as a hybrid of two algorithms of Kuperberg [21], so we begin by discussing the intuition behind Kuperberg’s original algorithm for the case d = 1 (see [21,28] for more).”
    BackgroundMethodInfluential

Show all 37 references

Cited by

Metadata

Authors
Montanaro, A.
Affiliations
University of Bristol (GB)
Corresponding author
Montanaro, Ashley
Venue
Algorithmica
Published
2015-08-27
Volume
77
Issue
1
Pages
16-39
ISSN
  • 0178-4617 (ISSN-L)
  • 1432-0541
OpenAlex
W2118172634
Cited by
84
References
39
Citations by year
2026: 6 · 2025: 10 · 2024: 9 · 2023: 10 · 2022: 20 · 2021: 14 · 2020: 4 · 2019: 4 · 2018: 3 · 2017: 1 · 2016: 3
FWCI
2.29
Type
journal article
Language
en
Licence
  • other-oa
  • www.springer.com/tdm (tdm)
Locations
  • Algorithmica (publishedVersion)
  • Bristol Research (University of Bristol) (publishedVersion, other-oa)
  • Explore Bristol Research (submittedVersion, other-oa)
Funders
Engineering and Physical Sciences Research Council (GB) (EP/L021005/1)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Quantum Computing Algorithms and Architecture
  • Physical Sciences › Mathematics › Theoretical Computer Science › Algorithms and Data Compression
  • Physical Sciences › Physics and Astronomy › Atomic and Molecular Physics, and Optics › Quantum Information and Cryptography
Keywords
quantum algorithms, random patterns, average-case complexity

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.