-
方括号做的程序,用户可以输入括号,以及是否可以使用。
用C做的括号匹配程序,可以检测用户输入的括号是否匹配并给出提示-C matching brackets do procedures, the user can input the brackets and whether the match is suggested
- 2023-01-21 12:30:03下载
- 积分:1
-
数据库小型图书馆管理系统。 使用方便
数据库小型图书馆管理系统。 使用方便-small library database management system. Easy to use!
- 2022-04-21 17:27:31下载
- 积分:1
-
Dijkstra algorithm, can solve the graph theory in the shortest path between two
Dijkstra算法,可以求解图论中两点之间的最短路径
- 2022-01-21 05:12:31下载
- 积分: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
-
魔王的语言,运用了数据结构栈、队列的结构
魔王的语言,运用了数据结构栈、队列的结构-Devil" s language, the use of the data structure stack, queue structure
- 2022-03-04 14:02:16下载
- 积分:1
-
红黑树――一种数据结构的可视化画法
红黑树――一种数据结构的可视化画法-RED-BLACK TREE-- A data structure visualization method of painting
- 2023-02-24 18:20:03下载
- 积分:1
-
用C语言编写的贪吃蛇游戏,运行是按任意键开始,不过呢,反向也算输哟!...
用C语言编写的贪吃蛇游戏,运行是按任意键开始,不过呢,反向也算输哟!-Using C language game of Snake, run is started by pressing any key, however, the reverse also count yo loser!
- 2022-02-13 15:11:40下载
- 积分:1
-
四则运算实现,这个算法是用C语言实现的,算法程序代码明确易懂。...
四则运算实现,这个算法是用C语言实现的,算法程序代码明确易懂。-four Operators realize that this algorithm is used to achieve the C language, the algorithm code clear and understandable.
- 2022-06-15 16:25:28下载
- 积分:1
-
matlab排队仿真代码
假设某银行有4个窗口对外接待客户,从早晨银行开门起不断有客户进入银行。由于每个窗口在某个时刻只能接待一个客户,因此在客户人数众多时需要在每个窗口前顺次排队,对于刚进入银行的客户,如果某个窗口的业务员正空闲,则可上前输业务;反之,若4个窗口均有客户所占,他便会排在人数最少的队伍后面。
- 2022-05-05 06:36:58下载
- 积分:1
-
网络最短路径Dijkstra算法
网络最短路径Dijkstra算法-network Dijkstra shortest path algorithm
- 2022-09-22 06:40:03下载
- 积分:1