String Matching with Variable Length Gaps

Computer Science – Data Structures and Algorithms

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

draft of full version, extended abstract at SPIRE 2010

Scientific paper

We consider string matching with variable length gaps. Given a string $T$ and a pattern $P$ consisting of strings separated by variable length gaps (arbitrary strings of length in a specified range), the problem is to find all ending positions of substrings in $T$ that match $P$. This problem is a basic primitive in computational biology applications. Let $m$ and $n$ be the lengths of $P$ and $T$, respectively, and let $k$ be the number of strings in $P$. We present a new algorithm achieving time $O(n\log k + m +\alpha)$ and space $O(m + A)$, where $A$ is the sum of the lower bounds of the lengths of the gaps in $P$ and $\alpha$ is the total number of occurrences of the strings in $P$ within $T$. Compared to the previous results this bound essentially achieves the best known time and space complexities simultaneously. Consequently, our algorithm obtains the best known bounds for almost all combinations of $m$, $n$, $k$, $A$, and $\alpha$. Our algorithm is surprisingly simple and straightforward to implement. We also present algorithms for finding and encoding the positions of all strings in $P$ for every match of the pattern.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

String Matching with Variable Length Gaps does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with String Matching with Variable Length Gaps, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and String Matching with Variable Length Gaps will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-500091

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.