Character string matching method and device

A matching method and matching device technology, applied in the Internet field, can solve problems such as slow speed, and achieve the effects of solving slow speed, reducing memory usage, and improving speed

Active Publication Date: 2012-12-19
HILLSTONE NETWORKS CORP
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a string matching method and d

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Character string matching method and device
  • Character string matching method and device
  • Character string matching method and device

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0023] It should be noted that the embodiments in this application and the features in the embodiments can be combined with each other if there is no conflict. Hereinafter, the present invention will be described in detail with reference to the drawings and in conjunction with the embodiments.

[0024] The embodiment of the present invention provides a character string matching device. The following describes the character string matching device provided in the embodiment of the present invention.

[0025] figure 1 It is a structural block diagram of a string matching device according to an embodiment of the present invention.

[0026] Such as figure 1 As shown, the device for matching the character string includes a first obtaining unit 11, a receiving unit 12, a second obtaining unit 13, and a matching unit 14.

[0027] The first acquiring unit 11 is configured to acquire a character mapping table, wherein, in the character mapping table, all characters different from the characters...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a character string matching method and device. The character string matching method comprises the following steps of: getting a character mapping table, wherein all characters which are different from the characters in a preset character string in the character mapping table correspond to a first mapping character, and the first mapping character is different from the mapping characters in the mapping table, which correspond to the characters in the preset character string; receiving input data; getting the mapping characters in the character mapping table relative to the characters in the input data; and matching the character string constituted by the obtained mapping characters with the mapped character string in the character mapping table, which correspond to the characters in the preset character string. According to the character string matching method disclosed by the invention, all the non-appeared characters in the preset character string are mapped to the same character, so that the occupancy of a memory during matching is reduced and matching speed and matching efficiency are improved by only identifying whether the certain character is matched with the characters in the preset character string or not without respectively identifying all the non-matched characters during the matching process.

Description

Technical field [0001] The present invention relates to the Internet field, in particular to a method and device for matching character strings. Background technique [0002] In the prior art Internet technology, when matching certain sensitive words or keywords to achieve filtering or filtering, after determining the matched string, each string in the input data is matched with the matched string. In the process of matching, a large number of different unmatched strings in the input data occupy a large amount of memory, which reduces the speed and efficiency of matching. [0003] Aiming at the problem of slow matching in the prior art, no effective solution has yet been proposed. Summary of the invention [0004] The present invention provides a string matching method and device to at least solve the problem of slow matching in the prior art. [0005] In order to achieve the above objective, according to one aspect of the present invention, a method for matching character strings i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/30
Inventor 常磊
Owner HILLSTONE NETWORKS CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products