Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A Pattern Matching Method Based on Search Engine Retrieving Information

A technology for retrieving information and pattern matching, applied in the field of pattern matching, can solve the problems of low matching efficiency and large number of comparisons

Active Publication Date: 2022-03-01
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF13 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0020] As can be seen from the above-mentioned BF traditional algorithm flow, each match starts from the first character of the pattern string and matches character by character backward. After one match is completed, the pattern string is moved backward by one character distance relative to the target string Continue to match one by one. In the whole process, once a certain character fails to match, it will start from the beginning, that is, start from the last character of the target string to match the character of the pattern string again, so as to mechanically repeat the matching one by one. This leads to a large number of comparisons and low matching efficiency

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
  • A Pattern Matching Method Based on Search Engine Retrieving Information
  • A Pattern Matching Method Based on Search Engine Retrieving Information

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0035] figure 2 Be the implementation flowchart of BF improved algorithm of the present invention, adopt the same target string T=xyzabxyxyzaz% yyyxyza% xyyy with BF traditional algorithm, and pattern string P=xyza% xyyy, the steps that BF improved algorithm comprises are as follows:

[0036] According to the content of the above invention, the idea and method of forming the new pattern string N, by observing the pattern string P=xyza%xyyy, it has a special character % that is different from other characters, and three characters yyy that are connected together continuously and regularly , plus the first character x, the ...

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 pattern matching method based on searching information retrieved by a search engine. The BF improved algorithm is adopted, that is, characters or character strings are first extracted from a pattern string to be matched to form a new pattern string, and the new pattern string is compared with the pattern string to be matched. Record the number of characters in the interval between these characters or character strings, form an object with the number of characters that make up the new pattern string and the number of characters in the character interval, and then use the characters in the new pattern string and the characters at the corresponding positions of the target string to perform multiple Round comparison, first compare the even index in the object until the new pattern string completely matches the character at the corresponding position in the target string, then compare the odd index in the object until the pattern string to be matched is found in the target string. By optimizing the comparison structure and comparison order of the pattern string, each round of matching does not need to compare the first character of the pattern string with the corresponding character in the target string one by one, which can reduce the number of comparisons and improve the efficiency of pattern matching.

Description

technical field [0001] The invention relates to the field of pattern matching, in particular to an improved BF algorithm based on search engine retrieval information pattern matching. Background technique [0002] With the rapid development of computer network technology, the amount of information generated every moment is growing explosively, including unstructured data such as text, pictures, audio, video, and geographic location. Computer networks have brought convenience and speed to people, but they are also overwhelmed by these massive data information. The disorderly, huge information world and various link methods make people feel at a loss when looking for the information they need. The amount of data information is so large and mostly in unstructured data format, which puts forward higher requirements for search engines to retrieve information. It no longer just helps people retrieve more information from massive data, but more quickly It is more efficient and ac...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/903G06F16/953
CPCG06F16/90344G06F16/953
Inventor 汪浩徐媛
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products