生成二进制树时所需的帮助 [英] required help in generating binary tree

查看:76
本文介绍了生成二进制树时所需的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想生成一个二叉树,也可以在叶节点处从数据库中分配数据,因此我们可以添加新的节点.因此如何维护数据库和代码,以便我们可以做到这一点

任何人都可以帮忙.......

I want generate binary tree that dispaly data from database also at leaf node we enable to add new node.so how to maintain the database and code so we can do that

any one please help.......

推荐答案

数据库是一种扁平结构:基于表.如果要存储二进制树数据,则必须自己翻译它,用行ID值替换对节点的引用.
在不了解您要存储的内容的情况下,我认为我们无法为您提供更多帮助...
A database is a flat structure: table based. If you want to store binary tree data, then you will have to translate it yourself, replacing references to nodes with row Id values.
Without knowing more about what you are trying to store, I don''t think we can help you much further...


这篇关于生成二进制树时所需的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆