Fast Average-Case Pattern Matching on Weighted Sequences

preprint2015arXivOpen access

Abstract

A weighted string over an alphabet of size σσ is a string in which a set of letters may occur at each position with respective occurrence probabilities. Weighted strings, also known as position weight matrices or uncertain sequences, naturally arise in many contexts. In this article, we study the problem of weighted string matching with a special focus on average-case analysis. Given a weighted pattern string xx of length mm, a text string yy of length n>mn>m, and a cumulative weight threshold 1/z1/z, defined as the minimal probability of occurrence of factors in a weighted string, we present an algorithm requiring average-case search time o(n)o(n) for pattern matching for weight ratio zm<min⁡{1log⁡z,log⁡σlog⁡z(log⁡m+log⁡log⁡σ)}\frac{z}{m} < \min\{\frac{1}{\log z},\frac{\log σ}{\log z (\log m + \log \log σ)}\}. For a pattern string xx of length mm, a weighted text string yy of length n>mn>m, and a cumulative weight threshold 1/z1/z, we present an algorithm requiring average-case search time o(σn)o(σn) for the same weight ratio. The importance of these results lies on the fact that these algorithms work in average-case sublinear search time in the size of the text, and in linear preprocessing time and space in the size of the pattern, for these ratios.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.