-
数据结构和算法:包含各种算法,还有一个演示系统
数据结构和算法:包含各种算法,还有一个演示系统-data structures and algorithms : algorithms contained, a demonstration system
- 2023-06-03 05:10:04下载
- 积分:1
-
数据结构中线性表的应用,约瑟夫环算法。便于数据结构的学习。...
数据结构中线性表的应用,约瑟夫环算法。便于数据结构的学习。-Linear data structure in the application form, Joseph Ring algorithm. Data structure to facilitate learning
- 2022-12-02 00:45:03下载
- 积分:1
-
任意阶一次幻方生成器 < 常用算法与数据结构 >
任意阶一次幻方生成器 < 常用算法与数据结构 >-arbitrary order a magic square generator lt; Common algorithms and data structures gt;
- 2022-03-20 02:28:14下载
- 积分:1
-
一个算法问题包括,一些数据结构的算法,全部是已经编译通过的源码,且是我自己写的!...
一个算法问题包括,一些数据结构的算法,全部是已经编译通过的源码,且是我自己写的!- An algorithm question includes, some constructions of data
algorithms, completely were already translated through the source
codes, was precisely I writes!
- 2022-08-22 04:53:11下载
- 积分:1
-
经典c程序100
每个都可以运行
内有目录
经典c程序100
每个都可以运行
内有目录-Classic c program 100 can run each of directories within the
- 2023-04-08 22:10:04下载
- 积分:1
-
Realizes the compartment dispatch with the stack form,The train entrance compart...
用栈的形式实现车厢调度,火车入口处的车厢序列编号为1到n-Realizes the compartment dispatch with the stack form,The train entrance compartment sequence serial number is 1 to n
- 2022-05-15 19:35:41下载
- 积分:1
-
2.[问题描述]
编写递归算法,在二叉树中求位于先序序列中第K个位置的结点
[输入]
按照先序序列的顺序输入该结点的内容。其输入abd eh...
2.[问题描述]
编写递归算法,在二叉树中求位于先序序列中第K个位置的结点
[输入]
按照先序序列的顺序输入该结点的内容。其输入abd eh cf i g 。输入要求的位置
[输出]
若二叉树不空,按先序序列输出,求出所求位置的结点
[存储结构]
采用二叉表存储
[算法的基本思想]
采用递归方法建立和遍历二叉树。首先建立二叉树的根结点,然后建立其左右子树,直到空子树为止,先序遍历二叉树时,先遍厉左子树,后遍厉右子树,最后访问根结点并计算出二叉树中叶子结点的数目和第K个位置的结点
#include
#include
struct node{
char info
struct node*llink,*rlink
}
typedef struct node NODE
-2. [Description of the issue] to prepare recursive algorithm, Binary for the first sequence sequence in the first position of the K-node [imported] in accordance with the first order input sequence in the order of the nodes content. Input abd eh i g cf. Import requirements of the position [output] if the binary tree is not empty, the first sequence by sequence output obtained by seeking the location of nodes [storage structure] Table 2 forks storage [algorithm for the basic idea] recursive method and Traversing binary tree. First established binary tree root node, and then to build t
- 2022-06-02 16:30:44下载
- 积分:1
-
电位器控制电机转速
电位器控制电机转速。此代码由 proteus 8 仿真原理和 PIC C 组成pic16f877a 的编译器代码。
- 2023-08-09 06:25:03下载
- 积分:1
-
这个项目简洁、通俗地解释了有关平衡二叉树的问题。也提供了源代码和一个供演示的通用类。描述/提供了如何平衡二叉树的功能。...
这个项目简洁、通俗地解释了有关平衡二叉树的问题。也提供了源代码和一个供演示的通用类。描述/提供了如何平衡二叉树的功能。-the project concise and simple explanation of the balanced binary tree problem. Also provided source code and a demonstration for the general category. Description/how to provide balanced binary tree functions.
- 2023-08-10 15:30:03下载
- 积分:1
-
双向连表的演示程序
1、创建连表
2、在头部增加节点
3、在尾部增加节点
4、插入节点
5、删除节点
6、遍历连表...
双向连表的演示程序
1、创建连表
2、在头部增加节点
3、在尾部增加节点
4、插入节点
5、删除节点
6、遍历连表-Even two-way table 1 demo program to create even the Table 2, the increase in the head node 3, an increase in the tail of the node 4, insert the node 5, node 6 delete, traverse even the Table
- 2022-03-23 21:23:29下载
- 积分:1