文件名称:BiTree
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2015-01-14
- 文件大小:
- 228kb
- 下载次数:
- 0次
- 提 供 者:
- 真*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
编程实现二叉树的a建立,b/c先序、中序、后序、层序遍历(递归和非递归方法),d二
叉树的高度、e繁茂度,f交换左右子树,g统计叶子节点的数目,h判断是否为完全二叉树,
i按树的形态在屏幕上打印输出。
[基本要求]
(1) 从文件中读入建树信息,树的节点数目不小于20个,树的高度不小于4。
(2) 建树信息采用两行英文字符表示,每个英文字符代表一个结点,第 1 行为树的
中序遍历结果,第 2 行为树的后序遍历结果。-Programming a binary tree establishment, b/c the first order, in order, after the order, sequence traversal (recursive and non-recursive method), the height of a binary tree d, e lush degree, f swap left and right subtrees, g statistics leaf nodes number, h to determine whether the complete binary tree, i press the shape of the tree on the screen printouts. [Basic requirements] (1) contribution the file reads information, the number of nodes in the tree is not less than 20, the height of the tree is not less than 4. (2) The contribution of information using two lines of English character representation, each character represents a node in English, the first acts of the tree preorder result, after the first two acts of the tree preorder results.
叉树的高度、e繁茂度,f交换左右子树,g统计叶子节点的数目,h判断是否为完全二叉树,
i按树的形态在屏幕上打印输出。
[基本要求]
(1) 从文件中读入建树信息,树的节点数目不小于20个,树的高度不小于4。
(2) 建树信息采用两行英文字符表示,每个英文字符代表一个结点,第 1 行为树的
中序遍历结果,第 2 行为树的后序遍历结果。-Programming a binary tree establishment, b/c the first order, in order, after the order, sequence traversal (recursive and non-recursive method), the height of a binary tree d, e lush degree, f swap left and right subtrees, g statistics leaf nodes number, h to determine whether the complete binary tree, i press the shape of the tree on the screen printouts. [Basic requirements] (1) contribution the file reads information, the number of nodes in the tree is not less than 20, the height of the tree is not less than 4. (2) The contribution of information using two lines of English character representation, each character represents a node in English, the first acts of the tree preorder result, after the first two acts of the tree preorder results.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
BiTree\BiTree.opt
......\BiTree.dsp
......\BiTree.dsw
......\BiTree.cpp
......\BiTree.ncb
......\BiTree.plg
......\Tree.txt
......\Debug\vc60.idb
......\.....\vc60.pdb
......\.....\BiTree.exe
......\.....\BiTree.pdb
......\.....\BiTree.ilk
......\.....\BiTree.pch
......\.....\BiTree.obj
......\Debug
BiTree