计算机科学 ›› 2008, Vol. 35 ›› Issue (11): 164-165.

• • 上一篇    下一篇

一种改进的BMH模式匹配算法

  

  • 出版日期:2018-11-16 发布日期:2018-11-16
  • 基金资助:
    本文工作受到国家自然科学基金(No.60303020),国家自然基金重点项目(No.60533020),国家重点基础研究发展计划(No.2005cB321702),国家863(No.2006AA01A102,No.2006AA01A125)和北邮网络与交换国家重点实验室开放基金的部分资助.

  • Online:2018-11-16 Published:2018-11-16

摘要: 分析了目前网络上最流行的BM算法及其改进算法BMH,在此基础上提出了BMH算法的改进算法BMH2。考虑了模式串自身的特征,在原有移动距离数组的基础上增加一个新的移动数组,从而充分利用模式串特征进行更大距离的移动,使算法获得更高的效率。实验证明,改进后的算法能够增加“坏字符”方法的右移量,有效地提高匹配速率。

关键词: 模式匹配 BM算法 BMH算法 时间复杂度

Abstract: Based on the discussion of the most popular BM and BMH algorithms for pattern matching on the network, an improved algorithm BMH2 was presented. Considering the feature of pattern itself, a new skip distance array was added based on the old one. It can in

Key words: Pattern matching, BM algorithm, BMH algorithm, Time complexity

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!