A FAST pattern matching algorithm.
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.
Sheik
S S
SS
Bioinformatics Centre and Supercomputer Education and Research Centre, Indian Institute of Science, Bangalore 560 012, India.
Aggarwal
Sumit K
SK
Poddar
Anindya
A
Balakrishnan
N
N
Sekar
K
K
D000465:Algorithms; D000595:Amino Acid Sequence; D001483:Base Sequence; D004247:DNA / Q000235:genetics; D015894:Genome, Human; D006801:Humans; D008969:Molecular Sequence Data; D011506:Proteins / Q000235:genetics; D016415:Sequence Alignment / Q000706:statistics & numerical data*
D011506:Proteins; D004247:DNA