一种基于统计特征的模式匹配算法
String-Matching Algorithm Base on Statistic Characteristic
针对传统模式匹配算法的按模式中字符排列顺序匹配的过程,该算法模拟人脑思维利用模式中字符出现频率、位置等特征信息建立了一个新的匹配序列,打乱了原来的顺序匹配过程,从而在匹配过程中,利用特征信息尽可能的跳过更多的字符,从而达到比较高的匹配效率。该算法的另一大特点就是不需要遍历完所有文本中的字符就可以找出与模式匹配的字符串。与传统的KMP,BM等算法相比,该算法的平均时间复杂度已经达到了他们的最好情况。
he difference to the traditional Algorithm of String-Matching is :this algorithm uses the statistic characteristic of the position and frequency of the char to build a new matching list. During the process of the matching, this algorithm will try its best to use this characteristic to skip much more chars to improve the efficiency of the matching. Another characteristic of this Algorithm is it can successfully finish without comparing all chars in the Text. Comparing with the Algorithm before, like KMP,BM, this Algorithm’s average complication of time reaches then best condition of these.
卢德春、周晓峰
计算技术、计算机技术
模式匹配算法统计特征
string-matchingalgorithmstatistic information
卢德春,周晓峰.一种基于统计特征的模式匹配算法[EB/OL].(2006-06-08)[2025-08-02].http://www.paper.edu.cn/releasepaper/content/200606-146.点此复制
评论