A jumping string mode matching algorithm
Wenjian Wang, Shunxiang Wu · 2009
In this paper we present a jumping string mode matching algorithm. The principle is as follows. First, we build a ‘bucket’ based on the main text. The characters in the pattern string compare with the corresponding ones in the ‘bucket’ to find out the Best Matching Character. Then we simply match from the most suitable positions. This algorithm is especially fit for the relatively stable main texts. The time complexity depends on the degree of relevancy between pattern string and the main text.