Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for dynamically adjusting tree spacing based on Walker's Tree

A dynamic adjustment and spacing technology, which is applied in special data processing applications, other database retrieval, other database indexes, etc., can solve the problems that the parent node is not in the center, does not consider the dynamic adjustment of tree spacing, and high hierarchical structure, so as to meet the requirements of nodes Different sizes, improve the effect of tree map output

Pending Publication Date: 2020-06-05
ZHEJIANG HUAYUN INFORMATION TECH CO LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The algorithms for drawing trees proposed by many researchers also have unsatisfactory results. There are three main problems to be solved, namely 1) the width of the drawn tree is very wide; 2) the parent node in the tree is not The center position of all its child nodes; 3) The spacing of each layer in the tree is fixed, which is a fixed constant. This setting does not consider the impact between the size and spacing of the upper and lower layers of nodes
[0004] The Walker’s Tree algorithm effectively solves the first two problems. The only shortcoming is that it does not take into account the dynamic adjustment of the spacing in the tree, so that the overall tree structure is beautiful and the hierarchical structure of the tree will not be very high and abrupt.

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
  • Method for dynamically adjusting tree spacing based on Walker's Tree
  • Method for dynamically adjusting tree spacing based on Walker's Tree

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The technical solution of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0020] Such as figure 1 As shown, a method for dynamically adjusting tree spacing based on Walker's Tree, the process includes the following steps:

[0021] 1) Firstly, data topology information is processed, a tree node object is established, and tree node attributes are initialized;

[0022] 2) Establish a tree structure model to handle the parent-child relationship of each node in the tree. The trees in this example are all trees with only one root node;

[0023] 3) Perform post-order traversal to calculate the initial value and adjustment value of the coordinates of each node in the tree. The adjustment value is set for the following situation: when the current node has a left brother node, in order to separate the two nodes by a certain distance, two The size of the nodes and the distance between nodes; when the current node i...

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 discloses a method for dynamically adjusting tree spacing based on Walker's Tree, and relates to the field of automatic mapping of structural trees. The Walker's Tree algorithm effectively solves the two problems that the width of a drawing tree is very wide and a father node in the tree is not the central position of all child nodes of the father node, and the unique defect is thatthe distance in the tree is not dynamically adjusted. The method comprises the following steps of: 1) processing data topology information; 2) establishing a tree structure model; 3) performing subsequent traversal on all nodes in the tree model, and calculating an initial value and an adjustment value of each node coordinate in the tree; 4) carrying out preorder traversal, and calculating final coordinates of each node in the tree; and 5) outputting the graph of the tree. According to the method, the symmetry of the father nodes relative to the child nodes is guaranteed, it is also guaranteedthat the distance between tree structures can be dynamically adjusted according to the sizes of the nodes, the requirements that the sizes of the nodes in the tree are different, the structure of thetree is not crowded, and the whole tree graph is orderly can be met, and perfect tree graph output is achieved.

Description

technical field [0001] The invention relates to the field of automatic graphing of structured trees, in particular to a method for dynamically adjusting tree spacing based on Walker's Tree. Background technique [0002] The key task in drawing a tree is to determine the position of each node in the tree. The tree drawing algorithm mainly calculates the x and y coordinates of each node of the tree. These coordinates can then be used to draw the tree. Among them, the node localization algorithm must solve two key problems. First, paint the overall aesthetic of the tree. Second, the node localization algorithm should save space. Each of these two problems can be tackled directly, but combining them poses some challenges. [0003] The algorithms for drawing trees proposed by many researchers also have unsatisfactory results. There are three main problems to be solved, namely 1) the width of the drawn tree is very wide; 2) the parent node in the tree is not The center posit...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/901
CPCG06F16/9027Y02D10/00
Inventor 陈士云张晓宁叶兴会
Owner ZHEJIANG HUAYUN INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products