Abstract

A weighted string 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, weighted sequences or uncertain sequences, naturally arise in many contexts. In this paper, we study the problem of weighted string matching with a special focus on average-case analysis. Given a weighted pattern string [Formula: see text] of length [Formula: see text], a text string [Formula: see text] of length [Formula: see text], both on a constant-sized alphabet of size [Formula: see text], and a cumulative weight threshold [Formula: see text], defined as the minimal probability of occurrence of factors in a weighted string, we present an on-line algorithm requiring average-case search time [Formula: see text] for pattern matching for weight ratio [Formula: see text]. For a pattern string [Formula: see text] of length [Formula: see text], a weighted text string [Formula: see text] of length [Formula: see text], both on a constant-sized alphabet, and a cumulative weight threshold [Formula: see text], we present an on-line algorithm requiring average-case search time [Formula: see text] for the same weight ratio. The importance of these algorithms lies on the fact that, for these ratios, they can work in sublinear search time in the size of the input text, and in linear preprocessing costs in the size of the pattern.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.