-
sy2
用递归的方法实现以下算法:
1.以二叉链表表示二叉树,建立一棵二叉树(算法5.3);
2.输出二叉树的中序遍历结果(算法5.1);
3.输出二叉树的前序遍历结果(见讲稿);
4.输出二叉树的后序遍历结果(见讲稿);
5.计算二叉树的深度(算法5.5);
6.统计二叉树的结点个数(算法5.6);
7.统计二叉树的叶结点个数;
8.统计二叉树的度为1的结点个数;
9.输出二叉树中从每个叶子结点到根结点的路径。(The following algorithm is implemented using a recursive method:
1., the two fork list is used to represent the two fork tree, and a two fork tree is established (algorithm 5.3).
2. output two order tree traversal results (algorithm 5.1);
3. output two prefix traversal results (see lecture notes);
4. output the result of traversal traversal of two fork tree (see lecture notes).
5. calculate the depth of the two forked tree (algorithm 5.5);
6. statistics the number of nodes of the two fork tree (algorithm 5.6).
7. statistics of the number of leaf nodes of the two forked tree;
8. the number of nodes of the two forked tree is 1.
9. output the path from each leaf node to the root node in the two fork tree.)
- 2020-11-20 13:19:37下载
- 积分:1
-
10.1109-TPWRS.2012.2193603
Capacitor Design Considering First Swing Stability of Distributed Generations
- 2014-06-17 00:30:18下载
- 积分:1
-
UDP-Tunnel
UDB TUNNEL C++ bot for windows
- 2013-05-04 16:34:49下载
- 积分:1
-
实现TCP穿越NAT(即TCP打洞)。目的是为了实现局域网节点和另一个局域网节点的通信...
实现TCP穿越NAT(即TCP打洞)。目的是为了实现局域网节点和另一个局域网节点的通信-TCP to achieve through the NAT (ie TCP holes). In order to achieve the purpose of communications between node of local area network and another local network node.
- 2022-03-21 02:33:07下载
- 积分:1
-
Deque
This interface provides a method to filter data entries.
- 2014-02-27 15:30:05下载
- 积分:1
-
遗传算法兰伯特变轨优化
兰伯特变轨用遗传算法优化,效率较高,内含差分进化验证(Genetic Algorithms for Lambert Transfer)
- 2019-06-10 09:03:36下载
- 积分:1
-
elm_linear
ELM的C语言版本,黄广斌教授的研究成果(The C version of ELM, which is proposed by Prof. Guangbin Huang.)
- 2020-12-13 12:09:16下载
- 积分:1
-
开源工具类库com.google.zxing
使用开源工具类库com.google.zxing,实现二维码的编解码(Use of open-source tool library com.google.zxing, two-dimensional code codec)
- 2012-10-10 21:14:29下载
- 积分:1
-
Java五子棋网络对战
五子棋网络对战基于tomcat websocket,java实现单机版和网络对战版五子棋程序,功能包括计时、悔棋、聊天、显示双方状态等等。首先第一个玩家先运行游戏,将自己的IP绑定,然后第二个玩家输入对方的IP连接。这样的话不管是哪一方都可以主动连接和被动连接。
- 2019-03-27下载
- 积分:1
-
tfpejzh
说明:
- 2018-05-15 17:00:42下载
- 积分:1