Computer and Modernization ›› 2014, Vol. 0 ›› Issue (4): 178-181.

Previous Articles     Next Articles

Application of Path Storage Method in Generating Tree Structure

  

  1. Department of Computer Science, Sichuan University of Arts and Science, Dazhou 635000, China
  • Received:2013-12-16 Online:2014-04-17 Published:2014-04-23

Abstract:  

Abstract:  The dynamic tree structure is widely used, the existing method of generating tree structure, such as sort the tree nodes, expand the tree nodes and storage tree nodes in the relation of tables, has its own advantages and disadvantages. To avoid the disadvantages, the path storage method is used. That is to make the liner structural relationship of the nodes in the tree branch as the path, and then stores the path in a field of the node data table, after that, the database searches the list rules and presses the tree node this sequence to generate tree graph. Experiments show that this method can improve the sorting efficiency to sort the tree nodes, search the subtree nodes quickly, and optimize the storage structure for data base.

Key words:

CLC Number: