L1 pattern matching lower bound

  • Authors:
  • Ohad Lipsky;Ely Porat

  • Affiliations:
  • Department of Computer Science, Bar-Ilan University, Ramat-Gan, Israel;Department of Computer Science, Bar-Ilan University, Ramat-Gan, Israel

  • Venue:
  • SPIRE'05 Proceedings of the 12th international conference on String Processing and Information Retrieval
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

Let a text string T = t0,...,tn−−1 and a pattern string P = p0,..., pm−−1ti, pj∈IN be given. In The Approximate Pattern Matching in the L1metric problem (L1-matching for short) the output is, for every text location i, the L1 distance between the pattern and the length m substring of the text starting at i, i.e. Σ$_{j=0}^{m-1}|{\it t}_{i+{\it j}}$ – pj | . The Less Than Matching problem is that of finding all locations i of T where t$_{i+{\it j}}$ ≥ pjj = 0,..., m–1 . The String Matching with Mismatches problem is that of finding the number of mismatches between the pattern and every length m substring of the text. For the three above problems, the fastest known deterministic solution is $O(n\sqrt{m{\rm log}m})$ time. In this paper we show that the latter two problems can be linearly reduced to the problem of L1-matching.