BF模式匹配算法的改进
DOI:
CSTR:
作者:
作者单位:

嘉应学院 计算机学院,广东暨通信息发展有限公司

作者简介:

通讯作者:

中图分类号:

基金项目:

2013年广东省科技计划项目(2013B040500010),2014年度广东省科技前沿与关键技术创新专项(2014B010117002),2016年广东省重点平台及科研项目(2016KTSCX129),2016年嘉应学院自然科学重点项目(2016KJZ04)


Improved of BF pattern matching algorithm
Author:
Affiliation:

Department of Computer Science and Technology,Jiaying University,Guang Dong Ji Tong Information Development co,LTD

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    文章分析经典的BF算法及其改进方法,根据字符串匹配的特点对BF算法提出了新的改进算法I_BF算法。I_BF算法根据模式串的首字符与匹配窗口之间的距离来确定右移距离,从而进行快速地匹配,匹配方式是从左往右进行。为了测试I_BF算法的性能,在相同条件下,从匹配字符个数、匹配次数、所花时间三方面对I_BF算法进行实验。结果表明,由于I_BF算法能够很大程序地跳过坏字符,减少匹配次数和字符比较个数,节约匹配时间,从而有效地提高匹配速度。

    Abstract:

    In this paper, the classical BF algorithm and its improved method are analyzed. According to the characteristics of string matching, a new improved algorithm I_BF algorithm for BF algorithm is proposed. The I_BF algorithm determines the right distance according to the first character of the pattern string and the distance between the matching windows, so it fasts matching. The matching way of I_BF algorithm is from left to right. In order to test the performance of the I_BF algorithm, the I_BF algorithm is tested under the same conditions from three aspects: the number of matches, the number of matches and the time spent. The experimental results show the I_BF algorithm is more quickly and more efficient because it reduces greatly the number of matching and character comparison for maximizing to skip the bad characters.

    参考文献
    相似文献
    引证文献
引用本文

巫喜红,文张斌. BF模式匹配算法的改进计算机测量与控制[J].,2018,26(5):173-176.

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2017-09-01
  • 最后修改日期:2017-10-04
  • 录用日期:2017-10-09
  • 在线发布日期: 2018-05-22
  • 出版日期:
文章二维码