文件名称:binary-tree
介绍说明--下载内容来自于网络,使用问题请自行百度
(1)输入字符序列,建立二叉链表。
(2)先序、中序、后序遍历二叉树:递归算法。
(3)中序遍历二叉树:非递归算法。(最好也能实现先序、后序非递归算法)
(4)求二叉树的高度 。
(5)求二叉树的叶子个数。
(6)借助队列实现二叉树的层次遍历。
(7)在主函数中设计一个简单的菜单,分别调试上述算法。-(1) Enter the character sequence to build binary list. (2) first order, in sequence, after the binary tree traversal: recursive algorithm. (3) traversal of a binary tree: non-recursive algorithm. (Preferably also able to achieve the first sequence, after the non-recursive algorithm) (4) binary tree of height. (5) the number of tree leaves. (6) With the level of a binary tree traversal queue. (7) in the main function to design a simple menu, respectively debugging the above algorithm.
(2)先序、中序、后序遍历二叉树:递归算法。
(3)中序遍历二叉树:非递归算法。(最好也能实现先序、后序非递归算法)
(4)求二叉树的高度 。
(5)求二叉树的叶子个数。
(6)借助队列实现二叉树的层次遍历。
(7)在主函数中设计一个简单的菜单,分别调试上述算法。-(1) Enter the character sequence to build binary list. (2) first order, in sequence, after the binary tree traversal: recursive algorithm. (3) traversal of a binary tree: non-recursive algorithm. (Preferably also able to achieve the first sequence, after the non-recursive algorithm) (4) binary tree of height. (5) the number of tree leaves. (6) With the level of a binary tree traversal queue. (7) in the main function to design a simple menu, respectively debugging the above algorithm.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
二叉树.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.