作者: Frantisek Franek , Christopher G. Jennings , William F. Smyth
DOI: 10.1007/11496656_25
关键词: Time complexity 、 Computer science 、 Simple (abstract algebra) 、 Independence (probability theory) 、 Algorithm 、 Pattern recognition (psychology) 、 String searching algorithm 、 Execution time 、 Pattern matching
摘要: The Knuth-Morris-Pratt (KMP) pattern-matching algorithm guarantees both independence from alphabet size and worst-case execution time linear in the pattern length; on other hand, Boyer-Moore (BM) provides near-optimal average-case best-case behaviour, as well executing very fast practice. We describe a simple that employs main ideas of KMP BM (with little help Sunday) an effort to combine these desirable features. Experiments indicate practice new is among fastest exact algorithms discovered date, perhaps dominant for 8 or more.