基于统计特征的模式匹配算法摘要针对传统模式匹配算法的按模式中字符排列顺序匹配的过程,该算法模拟人脑思维利用模式中字符出现频率、位置等特征信息建立了一个新的匹配序列,打乱了原来的顺序匹配过程,从而在匹配过程中,利用特征信息尽可能的跳过更多的字符,从而达到比较高的匹配效率
该算法的另一大特点就是不需要遍历完所有文本中的字符就可以找出与模式匹配的字符串
与传统的BF、KMP、BM等算法相比,该算法的平均时间复杂度已经达到了他们的最好情况
关键词:模式匹配;算法;统计特征AbstractThedifferencetothetraditionalAlgorithmofString-Matchingisthisalgorithmusesthestatisticcharacteristicofthepositionandfrequencyofthechartobuildanewmatchinglist
Duringtheprocessofthematching,thisalgorithmwilltryitsbesttousethischaracteristictoskipmuchmorecharstoimprovetheefficiencyofthematching
AnothercharacteristicofthisAlgorithmisitcansuccessfullyfinishwithoutcomparingallcharsintheText
ComparingwiththeAlgorithmbefore,likeBF,KMP,BM,thisAlgorithm’saveragecomplicationoftimereachesthenbestconditionofthese
Keywords:string-matching;algorithm;statisticcharacte