Method and device for ordering tree structure nodes, and enquiry system
A technology of tree structure and sorting method, applied in the field of data structure, can solve problems such as difficulty in expansion and affecting database performance, and achieve the effect of stable performance and enhanced practicability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] figure 1 The flowchart of the tree structure construction method provided by the first embodiment of the present invention is shown, and the details are as follows:
[0037] In step S11, the node data of all the nodes forming the tree are obtained, the node data includes the number of layers of the tree structure where the node is located, the number of the parent node of the node, and the number of child nodes of the node.
[0038] Obtain the node data of all nodes that make up the tree, assuming that the tree structure has 3 layers, such as figure 2 shown. The nodes on the first layer are first-level nodes, including A nodes, B nodes and C nodes, the second-level nodes are second-level nodes, and the second-level nodes are A1 nodes, A2 nodes, B1 nodes and B2 nodes. The nodes of the layer are A11 node, A12 node, A21 node, and A22 node. The creation time of the above-mentioned nodes is later in order, and the A node is created the earliest, and the A22 node is create...
Embodiment 2
[0058] image 3 The flowchart of the method for sorting tree structure nodes provided by the second embodiment of the present invention is shown, and the details are as follows:
[0059] On the basis of Embodiment 1, the user can ensure that the nodes obtained by each query are unique according to the sorted nodes in the list.
[0060] Wherein, step S31 to step S34 are the same as step S11 to step S14 in the first embodiment.
[0061] In step S35, the node data and the unique identifier of the node are queried.
[0062] In this embodiment, the node data of the tree stored in the query list and the unique identifiers of the nodes composing the tree are searched. For example, query the layer number of a node, the creation time of the node, etc.
[0063] In step S36, a tree is constructed according to the node data and the unique identifier of the node.
[0064] Among them, the process of constructing the tree is: first construct the first layer of the tree according to the u...
Embodiment 3
[0070] Figure 4 The structure of the device for sorting tree structure nodes provided by the third embodiment of the present invention is shown, and for the convenience of description, only the parts related to the embodiment of the present invention are shown.
[0071] The sorting device of the tree structure nodes can be used for various information processing terminals connected to servers through wired or wireless networks, such as mobile phones, pocket computers (Pocket Personal Computer, PPC), palmtop computers, computers, notebook computers, personal digital assistants (Personal Digital Assistant, PDA), etc., can be a software unit, a hardware unit, or a combination of software and hardware running in these terminals, or can be integrated into these terminals as an independent pendant or run in the application system of these terminals ,in:
[0072] The node data obtaining unit 41 is used to obtain the node data of all the nodes that make up the tree, the node data in...
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