An on-line string matching method without gap constraint
A string matching, gapless technology, applied in the field of online string matching without gap constraints, can solve the problems of incomplete character matching, difficult to effectively control space and time overhead, and can not solve frequent patterns well, etc. Achieve the effect of achieving high efficiency, solving space overhead and time overhead, and ensuring completeness
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0087] Example of biological sequence matching: in the DNA sequence, the biological sequence is composed of four bases, a, c, g, and t, and the given biological sequence string is S=s 1 the s 2 the s 3 the s 4 the s 5 the s 6 the s 7 the s 8 the s 9 the s 10 =acgatgacgg, the given pattern string is P=p 1 p 2 p 3 p 4 = aagg.
[0088] The first step is to read in the pattern string P and create multiple queues:
[0089] Read in pattern string P=p 1 p 2 p 3 p 4 =aagg, determine that the length of the pattern string P is 4, and the characters of each pattern substring in the pattern string P are respectively p 1 ,p 2 ,p 3 ,p 4 , and establish four queues for the pattern string P, and the numbers of these queues are queue 1, queue 2, queue 3, and queue 4 respectively, that is, p 1 = a for queue 1, p 2 = a for queue 2, p 3 = g for queue 3, p 4 = g is queue 4;
[0090] The second step is to read the given sequence string S in sequence:
[0091] Sequentially ...
Embodiment 2
[0144] Example of shopping psychological matching: in order to discover the relationship between behaviors from multiple purchase behaviors of users, so as to take more effective targeted measures, the types of goods purchased by customers are symbolized as a, b, c, d, e , f, g. The symbolized sequence string S=s of the product purchased by a customer 1 the s 2 the s 3 the s 4 the s 5 the s 6 the s 7 the s 8 the s 9 the s 10 =adgacgacef, given pattern string P=p 1 p 2 p 3 p 4 =agac, the meaning of its representation is the situation of buying c after buying a, g and a in turn.
[0145] The first step is to read in the pattern string P and create multiple queues:
[0146] Read in pattern string P=p 1 p 2 p 3 p 4 =agac, determine the length of the pattern string P to be 4, and the characters of each pattern substring in the pattern string P are respectively p 1 ,p 2 ,p 3 ,p 4 , and establish four queues for the pattern string P, and the numbers of these que...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com