-
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
-
快排2
说明: 实现了快速排序、随机排序以及中位排序查找第k小元素(Fast sorting, random sorting and median sorting are realized to find the k-th small element)
- 2020-05-24 18:20:39下载
- 积分:1
-
creatFile2
使用Windows API函数获取当前系统时间,并以当前系统时间为名称创建txt文档(Use the Windows API function to obtain the current system time and create the txt document with the name of the current system time)
- 2017-07-20 21:46:06下载
- 积分:1
-
Optimal-Power-Flow-in-Microgrids
Optimal Power Flow in Microgrids
- 2016-12-11 02:23:30下载
- 积分:1
-
chat_TCP
基于VB6.0的Winsoket控件实现TCP服务器与客户端的聊天功能(based VB6.0 Winsoket control TCP client and server chat function)
- 2007-06-16 14:03:01下载
- 积分:1
-
n_winhttp
to call WS from powerbuilder
- 2018-01-22 13:26:57下载
- 积分:1
-
利用Duhamel求解elcentro地震波作用下的地震加速度反应谱
利用Duhamel求解elcentro地震波作用下的地震加速度反应谱(Computation of seismic response spectrum)
- 2021-04-23 21:18:47下载
- 积分:1
-
model-1-heat-600
说明: Abaqus模拟选区激光融化SLM所需要调用到的热源Dflux子程序(The heat source Dflux subroutine is applied to simulate selection laser melting in Abaqus.)
- 2020-05-03 00:09:36下载
- 积分:1
-
bingo
自己做的两个小病毒和一个控制开关机的程序。。。小病毒求大神指点aaa(Own two small virus and a control switch procedure. . . The god of small viruses seek advice aaa)
- 2013-12-26 18:46:40下载
- 积分:1
-
2019nCov
说明: 根据目前的数据进行了SEIR模型的代码实现(SEIR code implementation)
- 2020-11-04 20:31:15下载
- 积分:1