A method and device for obtaining jump distance
A jump and distance technology, applied in the field of Internet communication, can solve the problems of low jump distance efficiency, complicated jump distance acquisition, and large amount of computation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] see Figure 1-4 , the embodiment of the present invention provides a method for obtaining jump distance, including:
[0037] Step 101: Input the characters in the character string to be matched into the matching window from the last character until the length of the character string in the matching window is equal to the length of the shortest keyword in the multimode character string tree;
[0038] Step 102: Match the characters in the matching window with the corresponding target characters in the multimode string tree one by one starting from the first character;
[0039] Step 103: When the character in the matching window does not match the corresponding target character in the multimode string tree, obtain the jumping distance of the matching window according to the jump table and the unmatched characters, the jump table includes the current level Number, character and the corresponding relationship of the layer number after the jump.
[0040] In the embodiment o...
Embodiment 2
[0042] see diagram 2-1 , the embodiment of the present invention provides a method for obtaining jump distance, including:
[0043] Step 201: Input the characters in the character string to be matched into the matching window from the last character until the length of the character string in the matching window is equal to the length of the shortest keyword in the multimode character string tree.
[0044] The character string to be matched is any message in the network, for example, the character string to be matched may be a Weibo message or a comment message.
[0045] The multi-mode character string tree includes multiple keywords. In the multi-mode character string tree, each key word corresponds to a path, and each character included in the key word is a node in the path corresponding to the key word. For example, see Picture 1-1 The multi-mode character string tree shown in the multi-mode character string tree includes ethernetmovesme, ethernetisking, ethernetisdead and...
Embodiment 3
[0102] see image 3 , the embodiment of the present invention provides a device for obtaining jump distance, including:
[0103] The input module 301 is used to input the characters in the character string to be matched into the matching window from the last character until the length of the character string in the matching window is equal to the length of the shortest keyword in the multimode character string tree up to
[0104] A matching module 302, configured to match the characters in the matching window with the corresponding target characters in the multimode character string tree one by one from the first character;
[0105] An acquisition module 303, configured to acquire the character of the matching window according to the jump table and the unmatched characters when the character in the matching window does not match the corresponding target character in the multimode character string tree The jump distance, the jump table includes the current level number, the c...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


