Method and device for character string matching
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 北京神州泰岳智能数据技术有限公司
- Publication Date
- 2020-02-07
Smart Images

Figure 1 
Figure 2
Abstract
Description
technical field
[0001] The invention relates to the technical field of the Internet, in particular to a string matching method and device. Background technique
[0002] The multi-pattern matching problem is one of the basic problems in computer science. The multi-pattern matching problem can be simply described as: a target string and a set of pattern strings, judging that the target string contains multiple pattern strings in the set of pattern strings .
[0003] The AC (Aho-Corasick) algorithm is a classic multi-pattern matching algorithm, which uses a finite state machine to convert character comparison into a state transition, for example, using the matched target string as the input of the finite state machine to make the finite The state machine performs state transition according to the target string, and when the finite state machine reaches certain specific states, it indicates that pattern matching occurs.
[0004] However, the AC algorithm in the prior art still...