A FAST pattern matching algorithm

被引:29
作者
Sheik, SS
Aggarwal, SK
Poddar, A
Balakrishnan, N
Sekar, K [1 ]
机构
[1] Indian Inst Sci, Bioinformat Ctr, Bangalore 560012, Karnataka, India
[2] Indian Inst Sci, Supercomp Educ & Res Ctr, Bangalore 560012, Karnataka, India
来源
JOURNAL OF CHEMICAL INFORMATION AND COMPUTER SCIENCES | 2004年 / 44卷 / 04期
关键词
D O I
10.1021/ci030463z
中图分类号
O6 [化学];
学科分类号
0703 ;
摘要
The advent of digital computers has made the routine use of pattern-matching possible in various applications. This has also stimulated the development of many algorithms. In this paper, we propose a new algorithm that offers improved performance compared to those reported in the literature so far. The new algorithm has been evolved after analyzing the well-known algorithms such as Boyer-Moore, Quick-search, Raita, and Horspool. The overall performance of the proposed algorithm has been improved using the shift provided by the Quick-search bad-character and by defining a fixed order of comparison. These result in the reduction of the character comparison effort at each attempt. The best- and the worst- case time complexities are also presented in this paper. Most importantly, the proposed method has been compared with the other widely used algorithms. It is interesting to note that the new algorithm works consistently better for any alphabet size.
引用
收藏
页码:1251 / 1256
页数:6
相关论文
共 5 条
[1]   FAST STRING SEARCHING ALGORITHM [J].
BOYER, RS ;
MOORE, JS .
COMMUNICATIONS OF THE ACM, 1977, 20 (10) :762-772
[2]  
CHARRAS C, HDB EXACT STRING MAC
[3]   PRACTICAL FAST SEARCHING IN STRINGS [J].
HORSPOOL, RN .
SOFTWARE-PRACTICE & EXPERIENCE, 1980, 10 (06) :501-506
[4]   TUNING THE BOYER-MOORE-HORSPOOL STRING SEARCHING ALGORITHM [J].
RAITA, T .
SOFTWARE-PRACTICE & EXPERIENCE, 1992, 22 (10) :879-884
[5]   A VERY FAST SUBSTRING SEARCH ALGORITHM [J].
SUNDAY, DM .
COMMUNICATIONS OF THE ACM, 1990, 33 (08) :132-142