计算机与现代化

• 应用与开发 • 上一篇    下一篇

路径存储法在生成树形结构中的应用研究

  

  1. 四川文理学院计算机学院,四川达州635000
  • 收稿日期:2013-12-16 出版日期:2014-04-17 发布日期:2014-04-23
  • 作者简介:作者简介: 唐青松(1980),男,四川简阳人,四川文理学院计算机学院讲师,硕士,研究方向:网络数据库,软件技术与理论。
  • 基金资助:
     
    四川省教育厅青年基金资助项目(10ZB085)

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

摘要:  

摘要: 动态树形结构应用十分广泛,现有的“遍历节点法”、“层点展开法”、“多表存储法”等技术在生成树形结构时有利有弊。本文将节点在树分支中的线性结构关系作为路径,把路径信息存储在节点数据表的一个字段中,并将路径信息作为检索排序依据,实现对树节点排序,从而按照此序列生成树形结构的路径存储法。该方法提高了“遍历节点法”访问节点算法的效率,解决了“层点展开法”的访问子树节点问题,优化了“多表存储法”的存储结构。

关键词:  , 路径存储法, 树形结构, 信息管理系统, 数据库, Web服务

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:

中图分类号: