-
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
-
bezcurve
openGL使用Visual C++
bezcurve(openGL using Visual C++ bezcurve)
- 2012-10-19 21:27:22下载
- 积分:1
-
nsga2-v1.0
多目标的NSGA-2的程序 使用C语言编写,里面包含详细的步骤(NSGA2 multi-target program)
- 2015-04-16 14:58:51下载
- 积分:1
-
bpsk_qpsk_matlab
数字调制-BPSK.QPSK等等多个调制方式的原理-代码等MATLAB程序(Digital Modulation-BPSK.QPSK, and so the principle of multiple modulation- MATLAB program code, etc.)
- 2009-12-15 20:13:33下载
- 积分:1
-
serialTest
树莓派串口调试程序,可实现与单片机或者手机等通信。(te serial port testing program which can communicate with single chip machine or android cell phone.)
- 2015-10-01 21:10:38下载
- 积分:1
-
sajjad, rizwan, kazim, ali ,taha, sana
ef%SF SR EC和SP约束处理方法的集合全部清除;全局初始标志初始标志=0;格式长e;D=10;D=D;%30NP=50;%100Xmin1=0*ones(1,D);Xmax1=+10*ones(1,D);Xmin2=-5.12*ones(1,D);Xmax2=+5.12*ones(1,D);Xmin3=-1000*ones(1,D);Xmax3=+1000*ones(1,D);Xmin4=-50*ones(1,D);Xmax4=+50*ones(1,D);Xmin5=-600*一个(1,D);Xmax5=+600*一个(1,D);Xmin6=-600*一个(1,D);Xmin6=-600*一个(1,D);Xmax6=+600*一个(1,D);Xmin7=-600*一个(1,D);Xmax5=+600*一个(1,D);Xmin6=-600*一个(1,D);Xmax6=+600*一个(1,D);Xmax6=+600*一个(1,D);Xmin7=-140*一个(1,D);Xmin7=-140*一个(1,D);Xmax7=+140*一个(1,D);Xmax7=+140*140*一个(1,D);Xmin8=-140*600*一个(1个(1,D);Xmax5;Xmax5=+600*一个=-(1,D);Xmax12=+1000*个(1,D);Xmin13=-500*ones(1,D);Xmax13=+500*ones(1,D);Xmin14=-1000*ones(1,D);Xmax14=+1000*ones(1,D);Xmin15=-1000*on
- 2022-03-25 18:16:55下载
- 积分:1
-
51流水灯例程
51单片机控制流水灯,单片机学习入门级实验,将会给你打开整个单片机世界大门。
- 2022-05-06 14:57:33下载
- 积分:1
-
csdigit
二进制转成CSD编码的Matlab程序,只要运行就可以实现(CSD code convert binary Matlab program can be achieved as long as the running)
- 2011-06-02 13:31:16下载
- 积分:1
-
Play_Video
基于OpenCV的图片缩放 基于OpenCV的图片缩放(A program based on OpenCV for picture handling)
- 2012-12-31 17:13:57下载
- 积分:1
-
C#
说明: 雷赛控制器Resai controllerSMC6490控制器用于C#编程,及动态链接库(The Resai controllerSMC6490 controller is used for C# programming and dynamic link library.)
- 2018-04-28 09:04:32下载
- 积分:1