Reinforcement multidigit Trie tree searching method and apparatus
A search engine and bitmap technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problems of waste of storage space, high price, small capacity, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0095] The keyword to be searched (hereinafter referred to as Key) is 0100001010, and the NP interface of the search engine system obtains the Key to be searched from the network processor, first starting from the first-level tree node TNode, and Have_p_node in the TNode is "1", that is There is a prefix node PNode. At this time, PBMI / PNode_address is represented as a pointer PNode_address pointing to the prefix node, which is the pointer 110 in FIG. The third bit from the left in the Extending Bitmap is "1", so there is a subtree node, and it is the first among the subtree nodes; because there are subtree nodes, there is no need to read the current level PNode for parsing and processing , according to the pointer Child_address pointing to the subtree node array in TNode, that is, the pointer 100 in FIG. 7, the first tree node TNode of the second level is obtained.
[0096] Have_p_node in the first tree node TNode of the second level is also "1", that is, there is
[0097] PN...
Embodiment 2
[0099] If the search key is 0101001010, the first-level search is the same as when the first search key is 0100001010, and the second-level search is basically the same, except that no matching prefix is found in the second-level PrefixBitmap analysis. Determine whether the PBMI (pointer 211 in FIG. 7 ) in the second-level PNode is valid; in this example, the PBMI is valid and points to the RNode corresponding to the first Prefix in the first-level subtree to obtain the search result.
Embodiment 3
[0101] If the search Key is 1110011011, at first from the tree node TNode of the first level, the Have_p_node in this TNode is "1", that is, there is PNode, and now PBMI / PNode_address is represented as PNode_address (pointer 110 among Fig. 7); The Extending Bitmap in the Extending Bitmap is "00110001", take the highest 3 bits "111" of the search Key, address and get the 8th bit from the left in the Extending Bitmap is "1", so there is a subtree node, and it is the first in the subtree node Three; because there is a subtree node, it is not necessary to read the PNode of the current level for parsing, and obtain the third tree node TNode of the second level according to the Child_address (pointer 100 in FIG. 7 ) in the TNode.
[0102] Have_p_node in the third tree node TNode of the second level is "0", that is, there is no PNode. At this time, PBMI / PNode_address is represented as PBMI (pointer 212 in FIG. 7); the Extending Bitmap in this TNode is "00110000" , take the second gro...
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