Invention Grant
- Patent Title: String matching method, string matching apparatus, storage medium, and electronic device
-
Application No.: US16699456Application Date: 2019-11-29
-
Publication No.: US11294963B2Publication Date: 2022-04-05
- Inventor: Zhiliang Guo , Jiajia Li
- Applicant: BEIJING XIAOMI MOBILE SOFTWARE CO., LTD.
- Applicant Address: CN Beijing
- Assignee: BEIJING XIAOMI MOBILE SOFTWARE CO., LTD.
- Current Assignee: BEIJING XIAOMI MOBILE SOFTWARE CO., LTD.
- Current Assignee Address: CN Beijing
- Agency: Oblon, McClelland, Maier & Neustadt, L.L.P.
- Priority: CN201910471598.5 20190531
- Main IPC: G06F16/903
- IPC: G06F16/903 ; G06K9/72 ; G06V10/70 ; G06V30/10

Abstract:
The present disclosure relates to a string matching method, a string matching apparatus, a storage medium, and an electronic device. The method can include loading a first string and obtaining position information of a node element of an AC automaton in the first string and a node position relation of the node element on the AC automaton. The method can further include creating a skip list based on the position information and the node position relation, performing a depth-first traversal on the AC automaton, and obtaining a first matching result of a path between each target node and a parent node of the target node and the first string based on the skip list. Further, the method can include outputting a matching result of the first string and the preset matching rule based on the first matching result of each path included in the AC automaton and the first string.
Public/Granted literature
- US20200380046A1 STRING MATCHING METHOD, STRING MATCHING APPARATUS, STORAGE MEDIUM, AND ELECTRONIC DEVICE Public/Granted day:2020-12-03
Information query