AN IMPROVED ADAPTIVE STRING SEARCHING ALGORITHM

Authors
Citation
Zb. Liu et al., AN IMPROVED ADAPTIVE STRING SEARCHING ALGORITHM, Software, practice & experience, 28(2), 1998, pp. 191-198
Citations number
5
Categorie Soggetti
Computer Science Software Graphycs Programming","Computer Science Software Graphycs Programming
ISSN journal
00380644
Volume
28
Issue
2
Year of publication
1998
Pages
191 - 198
Database
ISI
SICI code
0038-0644(1998)28:2<191:AIASSA>2.0.ZU;2-R
Abstract
Sunday's OM algorithm can reduce the number of character comparisons b y making use of information of character distribution in an alphabet. Smith's adaptive algorithm uses dynamic statistics to reduce compariso ns, and its performance is close to that of the OM algorithm in the nu mber of character comparisons. Smith's algorithm has the advantage of language independence. Its drawback is that it runs slowly because of maintaining an ordering list. This paper presents an improved adaptive method which dispenses with the ordering list. This method treats the pattern as a circle, and first compares the mismatched character in t he last checking operation. This method is slightly worse than Smith's method in the number of character comparisons, but it is much better in the running time. (C) 1998 John Wiley & Sons Ltd.