首页 | 本学科首页   官方微博 | 高级检索  
     检索      

适合中文的双向比较模式匹配算法
引用本文:叶煜.适合中文的双向比较模式匹配算法[J].成都大学学报(自然科学版),2011,30(3):236-238.
作者姓名:叶煜
作者单位:成都农业科技职业学院电子信息分院,四川成都,611130
摘    要:分析了几种常用的模式匹配算法,提出一种适合于中文的基于KMP的改进算法,即双向比较模式匹配算法.该算法以KMP算法为基础,引入特征数组以记录模式串尾字符在模式串中出现的位置信息,从而获得模式串在匹配过程中的最大移动距离和最少比较次数.实验结果表明,双向比较模式匹配算法可有效降低匹配次数.

关 键 词:模式匹配  特征数组  中文  匹配次数  双向比较

Two-way Comparative Pattern Matching Algorithm Suitable for Chinese
YE Yu.Two-way Comparative Pattern Matching Algorithm Suitable for Chinese[J].Journal of Chengdu University (Natural Science),2011,30(3):236-238.
Authors:YE Yu
Institution:YE Yu(School of Electronic and Information,Chengdu Vocational College of Agricultural Science and Technology,Chengdu 611130,China)
Abstract:Some pattern matching algorithms were analyzed and,an algorithm,suitable for Chinese,based on KMP was proposed,that is two-way pattern matching algorithm.Based on KMP,characteristic-array was introduced into to record the positional information of end character which appears in the pattern string and further to get the maximum moving distance of the pattern and the least times of comparing during the process of pattern string's matching.Experimental results show that two-way pattern matching algorithm can e...
Keywords:pattern matching  characteristic-array  Chinese  times of matching  two-way pattern matching  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号