文件名称:4
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:723byte
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
(1)已知一棵完全二叉树存放于一个一维数组T[n]中,T[n]中存放的是各结点的值。试设计一个算法,从T[0]开始顺序读出各结点的值,建立该二叉树的二叉链表表示。
(2)二叉树的双序遍历(Double-order traversal)是指:对于二叉树的每一个结点来说,先访问这个结点,再按双序遍历它的左子树,然后再一次访问这个结点,接下来按双序遍历它的右子树。试写出执行这种双序遍历的算法。
-(1) known to a complete binary tree stored in a one-dimensional array T [n] in, T [n] is stored in the value of each node. Try to design an algorithm, from T [0] started in order to read out the value of each node to build the binary tree binary list said. (2) two-order binary tree traversal (Double-order traversal) is: For each binary tree node, the first visit to this node, and then double-traversing its left subtree, and then visit this node, followed by two-order traversal of its right subtree. Write down the implementation of this two-order traversal algorithm.
(2)二叉树的双序遍历(Double-order traversal)是指:对于二叉树的每一个结点来说,先访问这个结点,再按双序遍历它的左子树,然后再一次访问这个结点,接下来按双序遍历它的右子树。试写出执行这种双序遍历的算法。
-(1) known to a complete binary tree stored in a one-dimensional array T [n] in, T [n] is stored in the value of each node. Try to design an algorithm, from T [0] started in order to read out the value of each node to build the binary tree binary list said. (2) two-order binary tree traversal (Double-order traversal) is: For each binary tree node, the first visit to this node, and then double-traversing its left subtree, and then visit this node, followed by two-order traversal of its right subtree. Write down the implementation of this two-order traversal algorithm.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
4.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.