文件名称:binarytree
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 315kb
- 下载次数:
- 0次
- 提 供 者:
- 马*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
二叉树的顺序存储结构——已知用户将一棵完全二叉树的n个结点(数据类
型可以是字符型、整型等等)以自顶向下、从左到右顺序输
入到一个一维数组中:
(1)编写算法FindRelation(i),输出i的父结点和
所有孩子结点(如果有的话)。(2)编写算法Print打印这棵二叉树的所有节点:先打印二叉树的
根、再打印左子树、最后打印右子树;(即在顺序存储结构上先序遍历
二叉树);
-Stored in the order of the binary tree structure- known to users will be a complete binary tree of n nodes (data type can be character, integer, etc.) to a top-down, left to right order of the input to a one-dimensional array in: (1) to write the algorithm FindRelation (i), the output i parent node and all child nodes (if any). (2) write algorithms Print Print tree binary tree node: first print the root of the binary tree, and then print the left subtree, and finally print the right subtree (first sequential storage structure traversing Binary)
型可以是字符型、整型等等)以自顶向下、从左到右顺序输
入到一个一维数组中:
(1)编写算法FindRelation(i),输出i的父结点和
所有孩子结点(如果有的话)。(2)编写算法Print打印这棵二叉树的所有节点:先打印二叉树的
根、再打印左子树、最后打印右子树;(即在顺序存储结构上先序遍历
二叉树);
-Stored in the order of the binary tree structure- known to users will be a complete binary tree of n nodes (data type can be character, integer, etc.) to a top-down, left to right order of the input to a one-dimensional array in: (1) to write the algorithm FindRelation (i), the output i parent node and all child nodes (if any). (2) write algorithms Print Print tree binary tree node: first print the root of the binary tree, and then print the left subtree, and finally print the right subtree (first sequential storage structure traversing Binary)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Ttree\Debug
.....\.....\Ttree.exe
.....\.....\Ttree.ilk
.....\.....\Ttree.obj
.....\.....\Ttree.pch
.....\.....\Ttree.pdb
.....\.....\vc60.idb
.....\.....\vc60.pdb
.....\Ttree.cpp
.....\Ttree.dsp
.....\Ttree.plg