THT-MSMA:基于双哈希表的高效多模式匹配算法
TP391.1; 针对已有模式匹配技术的不足进行研究,提出了THT-MSMA多模式匹配算法,该算法采用双哈希表来减少尝试比较的次数.当模式串没有公共前缀,则只需在第一个哈希表中查找;若模式串有公共前缀,则需要在两个哈希表中依次进行查找.分析表明,该算法适合于最短模式串长度很长的环境,时间复杂度要低于经典的算法,尝试比较次数少于传统的多模式匹配算法.实验结果表明,THT-MSMA算法具有良好的时空性能....
Saved in:
Published in | 计算机应用研究 Vol. 33; no. 2; pp. 431 - 434 |
---|---|
Main Author | |
Format | Journal Article |
Language | Chinese |
Published |
沈阳农业大学信息与电气工程学院,沈阳110866
2016
沈阳航空航天大学经济与管理学院,沈阳110136%沈阳农业大学信息与电气工程学院,沈阳,110866%沈阳航空航天大学经济与管理学院,沈阳,110136 |
Subjects | |
Online Access | Get full text |
ISSN | 1001-3695 |
DOI | 10.3969/j.issn.1001-3695.2016.02.026 |
Cover
Loading…
Summary: | TP391.1; 针对已有模式匹配技术的不足进行研究,提出了THT-MSMA多模式匹配算法,该算法采用双哈希表来减少尝试比较的次数.当模式串没有公共前缀,则只需在第一个哈希表中查找;若模式串有公共前缀,则需要在两个哈希表中依次进行查找.分析表明,该算法适合于最短模式串长度很长的环境,时间复杂度要低于经典的算法,尝试比较次数少于传统的多模式匹配算法.实验结果表明,THT-MSMA算法具有良好的时空性能. |
---|---|
Bibliography: | 51-1196/TP hashing date structure; pattern string; multi-string matching algorithm; time and space performance Research was conducted on shortcoming of existing pattern matching techniques, this paper presented a new solu- tion called THT-MSMA by using two-hashing tables to minimize attempting times. The matching method hashed one time or twice in the first hashing table if there was no pattern overlapping or twice in' both hashing tables if there was only one or more pattern overlapping. Analysis shows that this solution is suitable for very long length of shortest pattern string. Its time com- plexity is more efficient than classic algorithms and its attempting times are less than traditional algorithms. At last, the experi- mental results prove that THT-MSMA has good time and space performance. Wei Lifeng, Ji Jianwei , Wang Ying , Wang Xiaobin ( 1. Collage of Information & Electrical Engineering, Shenyang Agricultural University, Shenyang 110866, China; 2. School of Economics & Management, Shenyang Aerospace |
ISSN: | 1001-3695 |
DOI: | 10.3969/j.issn.1001-3695.2016.02.026 |