-
At 0 and 1 backpack case for problem
在0和1情况下进行背包问题解决,涉及多个物体的重量和价值,求得最大价值量以及分配方案。-At 0 and 1 backpack case for problem-solving, involving more than the weight of objects and values, as well as to achieve maximum value distribution program.
- 2022-02-01 11:38:47下载
- 积分:1
-
实现拓扑排序,用到了堆栈,存储结构采用邻接表。
实现拓扑排序,用到了堆栈,存储结构采用邻接表。-To achieve topological sorting, use the stack, storage structure using adjacency list.
- 2023-06-24 09:35:03下载
- 积分:1
-
eVB 数据浏览器
eVB 数据浏览器-eVB data browser
- 2022-03-13 06:20:42下载
- 积分:1
-
used to achieve stack operation. The program is the stack into the stack and sta...
用链表实现栈的操作.该程序有栈的进栈和出栈操作.很简单.这是本人第一次上传程序源代码,如有什么不足之处还望各位多多海涵.-used to achieve stack operation. The program is the stack into the stack and stack up operation. Very simple. This is the first time I uploaded the source code, if there are any deficiencies Agency also look to a lot Haihan.
- 2022-05-08 05:26:50下载
- 积分:1
-
网吧的所有经营活动都能操作(包括时间管理、客户机管理、食品出售等),方便易用
网吧的所有经营活动都能操作(包括时间管理、客户机管理、食品出售等),方便易用-Internet cafes can operate all the business activities (including time management, client management, food for sale, etc.), user-friendly
- 2022-06-26 05:24:37下载
- 积分:1
-
1.[问题描述]
编写递归算法,计算二叉树中叶子结点的数目
[输入]
按照先序序列的顺序输入该结点的内容。其输入abd eh cf i g ....
1.[问题描述]
编写递归算法,计算二叉树中叶子结点的数目
[输入]
按照先序序列的顺序输入该结点的内容。其输入abd eh cf i g .
[输出]
按中序序列输出,输出的结果为;dbheaficg并计算出二叉树中叶子结点的数目为4
[存储结构]
采用二叉表存储
[算法的基本思想]
采用递归方法建立和遍历二叉树。首先建立二叉树的根结点,然后建立其左右子树,直到空子树为止,中序遍历二叉树时,先遍厉左子树,后遍厉右子树,最后访问根结点。根据左右子树的最后一个结点计算出二叉树中叶子结点的数目。
程序如下:
#include
#include
#include"stdlib.h" -1. [Description of the issue] to prepare recursive algorithm, Binary calculation leaves the number of nodes [imported] in accordance with the first order input sequence in the order of the node contents. Input abd eh i g cf. [Output] by the order sequence output, the results of the output; dbheaficg calculated Binary leaf node to the number four [storage structure] Table 2 forks storage [ The basic idea algorithm] recursive method and traverse binary tree. First established binary tree root node, and then to build their son around the tree, the tree until the loopholes, which preorder binary tree, Li first times the left sub-tree, right af
- 2023-08-31 16:00:04下载
- 积分:1
-
N-皇后问题线性时间算法
O(n)复杂度,非O(n^2)的,使用的是构造法。-N-Queen problem of linear time algorithm
- 2023-05-09 15:10:02下载
- 积分:1
-
本人自编的解八皇后问题的程序,用了大量的指针实现。
本人自编的解八皇后问题的程序,用了大量的指针实现。-I own eight-Queen
- 2023-06-28 08:40:04下载
- 积分:1
-
税率倒算,把原来计算好数额倒算回来。帐号有两种,一种是只查看的,一种是只计算的。...
税率倒算,把原来计算好数额倒算回来。帐号有两种,一种是只查看的,一种是只计算的。-倒算rate, a good amount of the original calculation倒算back. Account there are two types of view only, and one is the only calculation.
- 2022-03-21 19:13:27下载
- 积分:1
-
一个数据结构演示程序,很强大的!!也很好看
一个数据结构演示程序,很强大的!!也很好看-a data structure demo program, a very strong! ! Also very good! !
- 2022-02-06 07:11:09下载
- 积分:1