Research of String Matching Algorithm Optimization
- Author
- LiuYanBing
- Advisor
- GuoLi
- School
- Institute of Computing Technology
- Major
- Computer Software and Theory
- Classification
- TP393.08 Computer Network Security
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 315
- Citations
- 7
- Pattern matching
- Exact Pattern Matching
- Dynamic Pattern Matching
- Space Compression
- Memory Layout Optimization
Abstract
String matching is a classic research area in computer science and plays an important role in different kinds of network security systems. Nowadays the classic string matching algorithms have been faced with great challenges because of the rapidly growing of information and the emergence of new application requirements in engineering.This thesis was dedicated to the research of large scale exact string matching and dynamic string matching. With respect to large scale exact string matching, two optimization strategies were proposed: compressing the memory space of automata to achieve a better cache performance and rearranging the states of automata to improve its locality. With respect to dynamic string matching, classic algorithms are extended to provide the ability of inserting and deleting a keyword.In this thesis, the following results have been achieved:1. Performance analysis of string matching algorithm: Through experimental and theoretical analysis, the linear correlation between the execution time and level 2 cache misses of algorithm was illustrated. This thesis analyzed the time complexity of the classic algorithm (eg. AC.Wu-Manber, SBOM) and proposed two optimization strategies: compressing the string matching automata’s memory space and improving its locality.2. A string matching algorithm based on memory space compression: Based on the idea of compressing automata’s memory space, this thesis proposed a strategy to compress SBOM’s memory space, and proved that the improved algorithm is O(mr log|∑| mr) in space complexity. Experiments showed that this improvement not only effectively compressed the automata’s memory space, but also greatly improved the searching speed.3. Memory layout optimization of string matching automata: Based on the idea of improving automata’s locality, firstly, this thesis formulated the memory layout problem into a mathematical optimization problem. And then, linear programming method was employed to solve it. Memory layout optimization is instructive both in practice and theory.4. Extension of classic algorithms: This thesis extended the classic algorithms, provide the ability of inserting and deleting a keyword without reconstructing the whole automata. The inserting and deleting operation is approximately linear in time complexity.5. Universal string matching library: Based on the research of pioneers and the work of this thesis, a universal string matching library was build. The library is thread-safety and provide continuous stream searching. It can be used in different projects for further development.
Table of contents
Abstract 4-5
ABSTRACT 5-7
directory 7-12 the
INTRODUCTION 12-17 <br / > 1.1 string matching the purpose and significance of the research 12-15
the 1.1.1 string matching techniques widely used 12-13
1.1.2 string matching technology is facing new challenges the 13-15
1.2 This article studies the content and arrangements the Research 15-17
second string matching algorithm 17-30
the 2.1 definition string matching the 17-18 2.2 the precise string matching algorithm
Research 18-25
2.2.1 prefix-based algorithm [KMP, AC] nbsp algorithm based on the suffix; 18-20
2.2.2 [BM, Horspool, Wu-Manber] 20-21
2.2.3 factor-based algorithm [BDM, BOM] nbsp 2.2.4 bit parallel algorithm [Shift-AND Shift-OR BNDM] ; 21-22
22-23
2.2.5 In recent years, the progress 23-24
2.2.6 exact string matching algorithm time complexity lower bound 24-25
2.3 dynamic string matching algorithms Research 25-30
string matching algorithm performance analysis the 30-38
3.1 string matching algorithm performance bottleneck 30-31
3.2 Impact string matching algorithm performance factors 31-32
3.3 the possibility of improved algorithm angle 32-35
3.4 from space angle improved possibility 35-38
string matching algorithm based on stored compressed the 38-57
4.1 The main idea of ??the algorithm , 38-39
4.2 double-array the Trie structure of 39
4.3 algorithm design and implementation nbsp the Suffix Trie; 39-44
4.3.1 construct Pruning 40-41
4.3.2 construct the dual array Trie 41-43
4.3.3 Search process 43-44
4.4 space complexity analysis 44-46
4.5 Experimental 46-52
4.5.1 experimental environment and data 46-47
4.5.2 matching speed 47-49
4.5.3 memory 49-50
4.5.4 Comparison of average jump distance the two 4.5.5 50-51
number of cache miss 51-52
4.6 This chapter Summary 52-57
Chapter string matching the memory layout optimization algorithm nbsp the the 5.1 issues raised 57-63
; 57
5.2 formal 57-58
5.3 problem solving 58-60
5.4 memory layout optimization process 60
5.5 Experimental 60-61
5.5.1 experimental environment and data 60 -61
5.5.2 Experimental results and analysis 61
5.6 Chapter Summary 61-63
Chapter dynamic string matching algorithm 63-72
6.1 classical algorithm limitations on dynamic matching 63
6.2 extended classic algorithm in dynamic matching 63-67
6.2.1 can add or delete keywords Advanced AC algorithm the 63-65
the 6.2.2 additions and deletions Keywords Wu-Manber algorithm the SBOM algorithm can add or delete keywords
65 6.2.3 65-67
6.3 Experimental 67-72
6.3.1 experimental environment and data 6.3.2 Bulk increased 67
words time consideration 67-68
6.3.3 matching speed the 68-72
Chapter VII generic string matching algorithm library 72-75
7.1 generic string matching algorithm library Framework 72-73
7.2 generic string matching algorithm library API interface the 7.3 generic string matching algorithm library features 73
73-75
Chapter VIII Summary and Outlook to References 75-77
77-81
Acknowledgements 81-82
of resume 82
Related dissertations
- Design and Implementation of Trojan Detection System Based on Network Transmission Content
- The Research and Implementation of Distributed Intrusion Detection System Based on Libnids
- Researches on Non-exact Deep Packet Inspection
- The Research of Multi-pattern Matching Algorithms Based on Bit-split Method
- Research on Structured Information Extraction Based on Pattern Matching
- Pattern Matching with Variable Wildcards
- Approximate String Matching under Different Models
- Improvement and Implementation of Iris Recognition Algorithm
- The Research on Time Series Analysis Techniques
- An Empirical Study on Quantitative Investment Strategies Based on Data Mining
- Design and Implementation of Mobile Internet Content Security Audit System
- Hybrid Carrier Communication System Resistance against Multi-path Fading and Narrowband Interference
- Research on Signal Processing Technology for Represent Polymer Compounding State
- Research and Design of FPGA-based High Performance Pattern Matching Engines
- Research on Multi-pattern Matching Algorithms Based on Regular Expressions and Hardware Implementation
- The Design and Implementation of Network-Based Intrusion Detection System Based on Libnids
- The Research of String Matching Algorithm in Intrusion Detection System
- Application of Non-Standard Pattern Matching Algorithm in Deep Packet Inspection
- The Research of Multi-Pattern Matching Algorithms Based on Regular Expressions
- Design and Implementation of Intrusion Detection System Supporting IPv6