文件名称:BiTR
介绍说明--下载内容来自于网络,使用问题请自行百度
生成一棵以二叉链表存储的二叉树bt(不少于15个结点)。
2) 分别用递归和非递归方法前序遍历bt,并以缩格形式打印bt上各结点的信息。
3) 编写算法,交换bt上所有结点的左、右子树,并以缩格形式打印出交换前后的bt结点信息。(Generate a two fork tree BT (no less than 15 nodes) stored with a two chain list.
2) the BT is traversed with the preorder of recursive and non recursive methods, and the information of each node on BT is printed in the form of contraction.
3) write the algorithm, exchange the left and right subtrees of all nodes on the BT, and print out the BT node information before and after the exchange in the form of the contraction.)
2) 分别用递归和非递归方法前序遍历bt,并以缩格形式打印bt上各结点的信息。
3) 编写算法,交换bt上所有结点的左、右子树,并以缩格形式打印出交换前后的bt结点信息。(Generate a two fork tree BT (no less than 15 nodes) stored with a two chain list.
2) the BT is traversed with the preorder of recursive and non recursive methods, and the information of each node on BT is printed in the form of contraction.
3) write the algorithm, exchange the left and right subtrees of all nodes on the BT, and print out the BT node information before and after the exchange in the form of the contraction.)
相关搜索: bitree
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
BiTR.cpp | 4829 | 2017-12-13 |
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.