Prefix tree processing method and device, terminal and storage medium
A processing method and prefix technology, applied in the database field, can solve the problem of inability to adjust the dictionary tree, and achieve the effect of improving the generation speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0020] figure 1 This is a flowchart of a method for processing a prefix tree provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of dynamically updating a prefix tree involved in database retrieval, and the method can be executed by a terminal that performs database query. The terminal may be a mobile terminal, a tablet computer, a notebook computer, a personal computer or a server. The method specifically includes the following steps:
[0021] Step 110, traverse the bytes of the keyword in sequence.
[0022] A keyword consists of multiple bytes, and storing the keyword is equivalent to storing the bytes that make up the keyword. For a key that needs to be written to the prefix tree, get each byte of the key in turn.
[0023] Step 120: Obtain the high-order four-bit data and the low-order four-bit data of the target byte, where the target byte is the byte currently traversed.
[0024] The byte of the keyword traversed by a sing...
Embodiment 2
[0063] figure 2 This is a schematic structural diagram of an apparatus for processing a prefix tree provided in Embodiment 2 of the present invention. This embodiment is applicable to the situation of dynamically updating prefix trees involved in database retrieval, and the apparatus can be implemented by a terminal that performs database query. The terminal may be a mobile terminal, a tablet computer, a notebook computer, a personal computer or a server. The apparatus specifically includes: a keyword traversal module 210 , a byte acquisition module 220 and a prefix tree traversal module 230 .
[0064] The keyword traversal module 210 is used to traverse the bytes of the keyword in sequence;
[0065] The byte acquisition module 220 is used to acquire the high four-bit data and the low four-bit data of the target byte, and the target byte is the byte currently traversed;
[0066] The prefix tree traversal module 230 is used to traverse the prefix tree according to the high f...
Embodiment 3
[0092] image 3 A schematic structural diagram of a terminal for processing a prefix tree provided in Embodiment 3 of the present invention, such as image 3 As shown, the processing terminal of the prefix tree includes a processor 30, a memory 31, an input device 32 and an output device 33; the number of processors 30 in the processing terminal of the prefix tree can be one or more, image 3 Take a processor 30 as an example in the above; the processor 30, the memory 31, the input device 32 and the output device 33 in the processing terminal of the prefix tree can be connected by a bus or in other ways, image 3 Take the connection through the bus as an example.
[0093] As a computer-readable storage medium, the memory 31 can be used to store software programs, computer-executable programs, and modules, such as program instructions / modules corresponding to the prefix tree processing method in the embodiment of the present invention (for example, a prefix tree processing app...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com