Fast Algorithms for Exact String Matching
Data Structures and Algorithms
2015-10-01 v1
Abstract
Given a pattern string of length and a query string of length , where the characters of and are drawn from an alphabet of size , the {\em exact string matching} problem consists of finding all occurrences of in . For this problem, we present algorithms that in time pre-process to essentially identify , a rarely occurring substring of , and then use it to find occurrences of in efficiently. Our algorithms require a worst case search time of , and expected search time of , where is at least (i.e. the number of distinct characters in ), and for most pattern strings it is observed to be .
Cite
@article{arxiv.1509.09228,
title = {Fast Algorithms for Exact String Matching},
author = {Srikrishnan Divakaran},
journal= {arXiv preprint arXiv:1509.09228},
year = {2015}
}