boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
CS版 - 有编过binary tree搜索的没?
相关主题
谁上操作系统时编过一个真的操作系统?
相关话题的讨论汇总
话题: tree话题: binary话题: array话题: 编过话题: use
进入CS版参与讨论
1 (共1页)
R*******N
发帖数: 7494
1
怎样在C++中表示一个binary tree呢?
用几维数组?
e*****t
发帖数: 1005
2
both tree and array are typical data structures.
why you want to use an array to store a tree?

【在 R*******N 的大作中提到】
: 怎样在C++中表示一个binary tree呢?
: 用几维数组?

I**********s
发帖数: 441
3
You better use linked structure. Use array for tree is rare, one notable
exception is the heap which is a balanced binary tree and all the external
nodes are in the left-most positions, so there is no hole in the array
representation.
R*******N
发帖数: 7494
4
How to define a link structure?
I am using MFC, is there any MFC class for this data structure?

【在 I**********s 的大作中提到】
: You better use linked structure. Use array for tree is rare, one notable
: exception is the heap which is a balanced binary tree and all the external
: nodes are in the left-most positions, so there is no hole in the array
: representation.

I**********s
发帖数: 441
1 (共1页)
进入CS版参与讨论
相关主题
谁上操作系统时编过一个真的操作系统?
相关话题的讨论汇总
话题: tree话题: binary话题: array话题: 编过话题: use