Papers
Topics
Authors
Recent
Search
2000 character limit reached

Fast Algorithms for Exact String Matching

Published 30 Sep 2015 in cs.DS | (1509.09228v1)

Abstract: Given a pattern string PP of length nn and a query string TT of length mm, where the characters of PP and TT are drawn from an alphabet of size Δ\Delta, the {\em exact string matching} problem consists of finding all occurrences of PP in TT. For this problem, we present algorithms that in O(nΔ<sup>2)O(n\Delta<sup>2) time pre-process PP to essentially identify sparse(P)sparse(P), a rarely occurring substring of PP, and then use it to find occurrences of PP in TT efficiently. Our algorithms require a worst case search time of O(m)O(m), and expected search time of O(m/min(∣sparse(P)∣,Δ))O(m/min(|sparse(P)|, \Delta)), where ∣sparse(P)∣|sparse(P)| is at least δ\delta (i.e. the number of distinct characters in PP), and for most pattern strings it is observed to be Ω(n<sup>1/2)\Omega(n<sup>{1/2}).

Authors (1)
Citations (1)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.