Skip to content

String Matching in O(n+m) Quantum Time

H. Ramesh, V. Vinay

quant-pharXiv:quant-ph/0011049

Abstract

We show how to determine whether a given pattern p of length m occurs in a given text t of length n in O(n+m) O allows for logarithmic factors in m and n/m time, with inverse polynomial failure probability. This algorithm combines quantum searching algorithms with a technique from parallel string matching, called Deterministic Sampling.

Create a lesson