检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]六盘水师范学院数学与信息工程学院
出 处:《科技资讯》2019年第19期196-197,200,共3页Science & Technology Information
摘 要:模式匹配是《数据结构》中关于字符串的一个基本运算,一般有两种方法,分别为"朴素算法"与"KMP算法"。KMP算法是一种高效的字符匹配算法,它的关键在于当字符匹配失败以后,利用next数组中的信息使指针不需要回退,这样就减少了匹配的次数,提高效率。KMP算法不容易理解,该文通过举例等方法分析KMP算法的匹配原理及过程。Pattern matching is a basic operation on strings in Data Structure.There are generally two methods,namely"simple algorithm"and"KMP algorithm".The KMP algorithm is an efficient character matching algorithm.The key is that the information in the next array is used to make the pointer don’t need to be rolled back when the character matching fails,thus reducing the number of matching and improving efficiency.The KMP algorithm is not easy to understand.This paper analyzes the matching principle and process of KMP algorithm by examples.
分 类 号:TP311.12-4[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:13.58.192.154