登录
首页 » 数据结构 » 由于简单模式匹配算法在一次字符比较失败后,简单的把模式串位置向前移动一个字符位置,这样就丢掉了前面字符匹配中得到的信息,效率差。所以就需要一种无回溯的算法来提高...

由于简单模式匹配算法在一次字符比较失败后,简单的把模式串位置向前移动一个字符位置,这样就丢掉了前面字符匹配中得到的信息,效率差。所以就需要一种无回溯的算法来提高...

于 2022-03-19 发布 文件大小:3.18 kB
0 243
下载积分: 2 下载次数: 1

代码说明:

由于简单模式匹配算法在一次字符比较失败后,简单的把模式串位置向前移动一个字符位置,这样就丢掉了前面字符匹配中得到的信息,效率差。所以就需要一种无回溯的算法来提高效率,这里使用KMP(Knuth-Morris-Pratt)算法。模式串前面的连续片断部分称“前缀模式”,前缀模式在模式串后部重复出现的情况可以用来避免重复进行已经做过的检查,这是KMP算法中的一个重要概念。-as simple pattern-matching algorithm to compare a character failure, a simple model put forward position Series mobile location of a character, would be lost in front of characters matching the information inefficiently. There is a need for a non-backtracking algorithms to improve efficiency, the use of KMP here (Knuth-Morris-Pratt) algorithm. Model Series in front of a row clips part said "prefix model," prefix string pattern in the pattern of recurring back can be used to avoid duplication of inspection has been done, KMP algorithm is an important concept.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 医院管理系统
    这个医院管理系统管理病人信息、 人员信息、 商店和药品、 计费并生成报告。这个复杂的应用程序与后端数据库服务器进行通信和管理医院物流相关的所有信息。
    2023-01-12 12:10:04下载
    积分:1
  • 界面清新的datagridview控件,一个商务系统
    界面清新的datagridview控件,功能简易的商务系统,适合初学者借鉴的C#代码
    2022-06-12 08:17:22下载
    积分:1
  • 一个用vc实现的Kruskal算法,程序流程非常清晰,有助于对算法的理解。...
    一个用vc实现的Kruskal算法,程序流程非常清晰,有助于对算法的理解。-a vc achieved using Kruskal algorithm, program flow is very clear, contribute to the understanding of the algorithm.
    2022-01-29 01:16:47下载
    积分:1
  • 哈夫曼
    将文件中的字符作为结点,每个字符在文件中出现的频率作为结点的权值,采用Huffman算法构造Huffman树,将字符用尽可能短的二进制数位表示(频率越低,二进制数位越长),而不是用8位的ASCII码进行存储,已达到节省存储空间,压缩文件的目的。
    2022-06-18 16:41:32下载
    积分:1
  • 文件包含的内容: 常见的algorithm,使用vc6开发的 包括排序算法...
    文件包含的内容: 常见的algorithm,使用vc6开发的 包括排序算法-document contains elements : common algorithm used in the development vc6 Sorting Algorithm
    2022-11-06 22:20:03下载
    积分:1
  • jsp网上选课系统
    本系统是简易的网上选课系统,包括学生的选课查成绩、教师打分以及管理员的一些后台操作。本系统是基于jsp环境下进行设计的,学习运用JSP 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-04-18 14:07:33下载
    积分:1
  • 实现如何上传图片等数据,并存储其至数据库的源码
    实现如何上传图片等数据,并存储其至数据库的源码-How do I upload pictures to achieve the data and store it to database source
    2023-07-29 13:30:03下载
    积分:1
  • Realiza inventarios no terminado
    Realiza inventarios no terminado
    2022-01-22 03:52:35下载
    积分:1
  • 前一段研究vc数据库时朋友帮我做的一个关于vc中ADO数据库中使用Combo Box的例子,很简单但是很实用。绝对原创!...
    前一段研究vc数据库时朋友帮我做的一个关于vc中ADO数据库中使用Combo Box的例子,很简单但是很实用。绝对原创!-vc database friends to help me do a vc on ADO database using Combo Box example, a very simple but practical. Absolutely original!
    2023-02-06 00:10:04下载
    积分:1
  • create a binary tree using preorder before the establishment of a tree. transmis...
    创建一棵二叉树,采用前序遍历的方法建立一棵树,传递的参数为一个指向结点的指针的指针,目的是为了解决传值的问题,输入@符号的时候,表示一棵子树结束线索化二叉树,寻找当前结点的后继结点,寻找当前结点的前驱结点,中序遍历 -create a binary tree using preorder before the establishment of a tree. transmission parameters of a point to the node pointer, the purpose is to solve the problem of traditional values, the importation of the @ symbol, said the end of a tree-binary tree of clues to find the current node"s successor nodes, for the current node precursor nodes, China preorder
    2023-02-13 17:50:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载