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

面向涉密检查系统的基于KMP思想的多模式匹配算法
引用本文:郝春媚,杨榆.面向涉密检查系统的基于KMP思想的多模式匹配算法[J].软件,2013(9):57-60.
作者姓名:郝春媚  杨榆
作者单位:1. 北京邮电大学计算机学院,北京市,100876
2. 北京邮电大学信息安全中心,北京市,100876
摘    要:模式匹配算法是涉密检查系统搜索引擎中的主要算法。在分析比较常用模式匹配算法基础上,提出了一种基于KMP算法跳跃思想的多模式匹配算法。该算法可兼容多模式匹配情况和单模式匹配情况,引入多维数组存储模式集并对模式集进行简单排序处理以简化后续操作,引入棋盘表记录各模式串的最大跳跃距离及模式串间跳跃距离。实验结果表明,该算法易于实现,并能有效提高匹配速度,对海量数据检索,有较好的时间和空间性能。

关 键 词:多模式匹配  KMP匹配思想  模式矩阵  棋盘跳跃表

Multi-pattern Matching Based on KMP Algorithm for SCT System
HAO Chun-mei , YANG Yu.Multi-pattern Matching Based on KMP Algorithm for SCT System[J].Software,2013(9):57-60.
Authors:HAO Chun-mei  YANG Yu
Affiliation:(Information Security Center, Be(iing University of Posts and Telecommunications, Beijing 100876, China)
Abstract:Pattern matching is the essential part of Secret Checking Tool. We presented an improved multi-pattern matching algorithm based on the idea of KMP algorithm after analyzing some classic pattern matching algorithms. The new algorithm applied to multi-pattern matching and single pattern matching. It adopts pattern matrix to hold patterns which have been sorted by and adopts skip matrix to record the next location of moving. Experimental results proved that the new algorithm is easy to implement and can enharice the speed of matching effectively, having better time complexity and space complexity.
Keywords:Multi-pattern matching  KMP Algorithm  Pattern matrix  Skip matrix
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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