Global optimization and construction method and system of TRIE double-array

A global optimization and construction method technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve the problem of large data sparsity, increase construction time and other problems, achieve efficient construction speed, avoid waste, and reduce search effect of space

Inactive Publication Date: 2010-07-28
北京金远见电脑技术有限公司
View PDF0 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The double-array structure and algorithm effectively reduce the space waste of the TRIE storage structure, but there is still a big problem of data sparseness using this method
In the related technology, it is proposed to add an optimized sorting strategy in the construction of the array, that is, to prioritize the nodes with more branches in a certain l

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
  • Global optimization and construction method and system of TRIE double-array
  • Global optimization and construction method and system of TRIE double-array
  • Global optimization and construction method and system of TRIE double-array

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Exemplary embodiments of the present invention will be specifically described below with reference to the accompanying drawings.

[0029] figure 2 It is a flow chart of the global optimal construction method of the TRIE tree double array according to an embodiment of the present invention. refer to figure 2 , the global optimal construction method of the TRIE tree double array includes: step S202, each node in the TRIE tree structure is represented by a binary bit string, and each bit string is one-to-one corresponding to each bit from left to right Each child node in the point, 1 means it contains a child node, and 0 means it does not contain a child node. Then each binary bit string is shifted to the right until the 0th bit is 1, and the shifted digits are recorded respectively; Step S204: all nodes in the TRIE tree are classified as follows according to the binary representation of the node: for the node The shifted binary representation of , if there is a k suc...

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 provides a global optimization and construction method of a TRIE double-array, comprising the following steps of: 1. representing each node in a TRIE structure by using binary strings, wherein each bit in each binary string from left to right is in one-to-one correspondence with each subnode in each node, 1 represents that the subnodes are contained, and 0 represents that the subnodes are not contained, then rightwards shifting each binary string until the 0 bit is 1, and respectively recording the shifted binary representations and the shifted digits; 2. mapping all nodes in the TRIE to the corresponding class according to the binary representations of the nodes; 3. determining the stored sequence of each nodes of the TRIE in the double-array and recording the shifted basic value of each node in the double-array; and 4. setting a check and a base arrays according to the shifted basic value stored in each node, the parent-child relationships among the nodes in the TRIE and the shifted step length corresponding to each subnode.

Description

technical field [0001] The present invention relates to the construction of TRIE tree double arrays, more specifically to the global optimization construction method and system of TRIE tree double arrays. Background technique [0002] TRIE tree is an important index structure for dictionaries and large-scale keywords. It is widely used in natural language processing, information retrieval, electronic dictionary management and other fields, and its search efficiency is very high. The time to find a keyword in the TRIE tree is related to the composition of the keyword itself, its own length, and the depth of the tree. The fastest speed is O(1), and the worst is the number of layers of the TRIE tree. Although the search efficiency of the TRIE tree is high, in most cases the TRIE tree has fewer branches (even 1), resulting in a huge waste of storage space. Based on Johnson's theory that deterministic finite automata can be represented by quadruples, some researchers expressed T...

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
IPC IPC(8): G06F17/30
Inventor 王晓春王亚军
Owner 北京金远见电脑技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products