Sub-string/Pattern Matching in Sub-linear Time Using a Sparse Fourier Transform Approach

We consider the problem of querying a string (or, a database) of length \(N\) bits to determine all the locations where a substring (query) of length \(M\) appears either exactly or is within a Hamming distance of \(K\) from the query. We assume that sketches of the original signal can be computed o...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:arXiv.org 2017-04
Hauptverfasser: Janakiraman, Nagaraj T, Vem, Avinash, Narayanan, Krishna R, Chamberland, Jean-Francois
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:We consider the problem of querying a string (or, a database) of length \(N\) bits to determine all the locations where a substring (query) of length \(M\) appears either exactly or is within a Hamming distance of \(K\) from the query. We assume that sketches of the original signal can be computed off line and stored. Using the sparse Fourier transform computation based approach introduced by Pawar and Ramchandran, we show that all such matches can be determined with high probability in sub-linear time. Specifically, if the query length \(M = O(N^\mu)\) and the number of matches \(L=O(N^\lambda)\), we show that for \(\lambda < 1-\mu\) all the matching positions can be determined with a probability that approaches 1 as \(N \rightarrow \infty\) for \(K \leq \frac{1}{6}M\). More importantly our scheme has a worst-case computational complexity that is only \(O\left(\max\{N^{1-\mu}\log^2 N, N^{\mu+\lambda}\log N \}\right)\), which means we can recover all the matching positions in {\it sub-linear} time for \(\lambda
ISSN:2331-8422