- 2
- 0
- 约6.22千字
- 约 18页
- 2016-12-16 发布于河南
- 举报
A Fast String Matching Algorithm The Boyer Moore Algorithm The obvious search algorithm Considers each character position of str and determines whether the successive patlen characters of str matches pat. In worst case, the number of comparisons is in the order of . Ex. pat: aab ; str: ..aaaaac . Knuth-Pratt-Morris Algoritm Linear search algorithm. Preprocesses pat in time linear in and searches str in time linear in . EXAMPLE HERE IS A SIMPLE EXAMPLE Characteristics of Boyer Moore Algorithm Basic idea: string matches the pattern from th
原创力文档

文档评论(0)