期刊文献+

改进的KR模式匹配算法的研究与实现 被引量:1

On Implementation of Improved Karp-Rabin Pattern Matching Algorighmic
在线阅读 下载PDF
导出
摘要 文章在详细分析KR匹配算法的基础上,提出了改进的I_KR算法.I_KR算法的改进之处:一是采用2次Hash函数的方法在计算T的子串的散列值之后,马上与P的散列值进行比较;二是采用双向并行方式进行匹配.为了分析I_KR算法的性能,从不同文本串和模式串角度,在匹配次数和比较的字符个数方面对I_KR算法进行实验.实验结果表明,I_KR算法能够极大地减少匹配次数,缩短匹配时间,有效地提高模式匹配速度. An improved Karp-Rabin(I_KR)algorithm has been promoted in this paper for string matching based on the detailed analysis of Karp-Rabin(KR)algorithm.The improvements of I_KR algorithm are in two ways:one is that,after the hashed value of the T'substrings,two times Hash functions has been used,which is compared with the hashed value of the P;the other is that bidirectional parallel is used when matching.To analyze the performance of the I_KR algorithm,some experiments have been done from some aspects which are matched times and compared characters' numbers through the number of different text strings and pattern strings.The experimental results show the I_KR algorithm can reduce the times of matching and shorten the time of matching.The I_KR algorithm enhances the algorithm's speed effectively.
作者 巫喜红
出处 《西南师范大学学报(自然科学版)》 CAS 北大核心 2016年第10期124-129,共6页 Journal of Southwest China Normal University(Natural Science Edition)
基金 广东省科技计划项目(2013B040500010) 2016年嘉应学院自然科学重点项目(2016KJZ04)
关键词 KR算法 I_KR算法 HASH函数 双向并行 模式匹配 Karp-Rabin(KR)algorithm improved Karp-Rabin(I_KR)algorithm Hash function bidirectional parallel pattern matching
作者简介 巫喜红(1975-),女,广东梅州人,硕士,副教授,主要从事算法理论研究.
  • 相关文献

参考文献10

二级参考文献84

共引文献30

同被引文献4

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部