|国家预印本平台
首页|一种改进的串的模式匹配算法的探讨

一种改进的串的模式匹配算法的探讨

Exploring an improved pattern matching algorithm of strings

中文摘要英文摘要

串的模式匹配算法一直都是计算机科学领域的研究焦点之一。本文首先分析了BF、KMP、BM三种算法,并提出了一种改进的Sundaynew算法,给出了改进的Sundaynew的详细算法过程。该算法使每一次匹配不成功后都能跳过尽可能多的字符以进行下一轮匹配,并且匹配次数大大减少,从而提高了匹配效率。最后,分析了该算法的性能,并用具体的实验数据给出了几种匹配算法的测试结果。

Pattern matching algorithms of strings has always been the focus of researches in the field of sscomputer science. This paper first analyzes the BF, KMP, BM algorithms and,then brings up an improved Sundaynew algorithm, and give detail process of the improved Sundaynew algorithm. This algorithm can jump over more characters to do next matching when this matching is lost. At the same,the matching times decreases sharply. In this case, it improves the matching efficiency. In the end, the analysis of this algorithm`s performance and the comparisons of the testing results several matching algorithms are given.

吴泽平、穆维友

计算技术、计算机技术

模式匹配串匹配算法Sundaynew算法

pattern matchingstring matchingalgorithmSundaynew algorithm

吴泽平,穆维友.一种改进的串的模式匹配算法的探讨[EB/OL].(2009-08-24)[2025-08-02].http://www.paper.edu.cn/releasepaper/content/200908-391.点此复制

评论