文件名称:二叉树的基本操作
介绍说明--下载内容来自于网络,使用问题请自行百度
二叉树的基本操作(1)在二叉链表上设计和实现下列二叉树运算的算法
① 设计递归算法,实现:删除二叉树,求二叉树的高度,求二叉树中叶子结点数,复制二叉树,交换二叉树的左右子树。
② 设计算法,按自上到下,自左向右的次序,即按层次遍历一棵二叉树。
③ 设计main函数,测试上述每个运算。
-Binary Tree s basic operations (1) in the binary list on the design and realization of the following binary tree algorithm for computing the design ① recursive algorithm: Remove binary tree, and tree height, for binary tree in leaf nodes, copy the binary tree, exchanging left and right subtree tree. ② design algorithm, since by the next, since the left-to-right order, that is, according to the level of a binary tree traversal. ③ main function of the design, testing each of the above calculations.
① 设计递归算法,实现:删除二叉树,求二叉树的高度,求二叉树中叶子结点数,复制二叉树,交换二叉树的左右子树。
② 设计算法,按自上到下,自左向右的次序,即按层次遍历一棵二叉树。
③ 设计main函数,测试上述每个运算。
-Binary Tree s basic operations (1) in the binary list on the design and realization of the following binary tree algorithm for computing the design ① recursive algorithm: Remove binary tree, and tree height, for binary tree in leaf nodes, copy the binary tree, exchanging left and right subtree tree. ② design algorithm, since by the next, since the left-to-right order, that is, according to the level of a binary tree traversal. ③ main function of the design, testing each of the above calculations.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1/exp3_1.cpp
1
1
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.