码迷,mamicode.com
首页 > 其他好文 > 详细

Boyer-Moore algorithm

时间:2016-12-29 19:16:19      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:bsp   when   sigma   case when   com   complex   char   cte   section   

http://www-igm.univ-mlv.fr/~lecroq/string/node14.html

Main features

  • performs the comparisons from right to left;
  • preprocessing phase in O(m+技术分享) time and space complexity;
  • searching phase in O(mn) time complexity;
  • 3n text character comparisons in the worst case when searching for a non periodic pattern;
  • O(n / m) best performance.

 

Boyer-Moore algorithm

标签:bsp   when   sigma   case when   com   complex   char   cte   section   

原文地址:http://www.cnblogs.com/yuanjiangw/p/6233804.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!