搜索资源列表
shu
- 1.[问题描述] 编写递归算法,计算二叉树中叶子结点的数目 [输入] 按照先序序列的顺序输入该结点的内容。其输入abd eh cf i g . [输出] 按中序序列输出,输出的结果为;dbheaficg并计算出二叉树中叶子结点的数目为4 [存储结构] 采用二叉表存储 [算法的基本思想] 采用递归方法建立和遍历二叉树。首先建立二叉树的根结点,然后建立其左右子树,直到空子树为止,中序遍历二叉树时,先遍厉左子树,后遍厉右子树,最后访问根结点。根据左右子树的最后一个
shu2
- 2.[问题描述] 编写递归算法,在二叉树中求位于先序序列中第K个位置的结点 [输入] 按照先序序列的顺序输入该结点的内容。其输入abd eh cf i g 。输入要求的位置 [输出] 若二叉树不空,按先序序列输出,求出所求位置的结点 [存储结构] 采用二叉表存储 [算法的基本思想] 采用递归方法建立和遍历二叉树。首先建立二叉树的根结点,然后建立其左右子树,直到空子树为止,先序遍历二叉树时,先遍厉左子树,后遍厉右子树,最后访问根结点并计算出二叉树中叶子结点
程序存储问题
- 程序存储问题:设有n 个程序{1,2,…, n }要存放在长度为L的磁带上。程序i存放在磁带上的长度是Li ,1≤i≤n 程序存储问题要求确定这n 个程序在磁带上的一个存储方案,使得能够在磁带上存储尽可能多的程序。 编程任务: 对于给定的n个程序存放在磁带上的长度,编程计算磁带上最多可以存储的程序数。 数据输入:由文件input.txt给出输入数据。第一行是正整数n,表示文件个数。接下来的1 行中,有n 个正整数,表示程序存放在磁带上的长度。 结果输出: input.txt output.txt
背包-RPG游戏
- *第Li种怪物需要消耗HP为Wi,需要消耗MP为Ki同时小D可以获得Vi的游戏积分。 怪物的数量分为2类,有些种类的怪物是有限个的,而有些种类的怪物死后可以马上复活。
datastructure.rar
- 立春葆的数据结构李春葆:数据结构习题与解析(C语言版).pdf,Li-Chun Li Chun-bao-bao of the data structure: Data structure and analysis of exercise (C language version). Pdf
kernel_list
- 使用Linux kernel 的链表头文件来操作双向链表,只需要一个*.h即实现链表,非常简洁有用,与一般数据结构实现风格不太一样-Using the Linux kernel header files to manipulate the linked list doubly linked list, just a list*. h of achieving very simple and useful, and the general data structure is not the sam
1073
- 设有n 个程序{1,2,…, n }要存放在长度为L的磁带上。程序i存放在磁带上的长度是 Li,程序存储问题要求确定这n 个程序在磁带上的一个存储方案,使得能够在磁带上存储尽可能多的程序。对于给定的n个程序存放在磁带上的长度,编程计算磁带上最多可以存储的程序数。-N a procedure with (1,2, ..., n) should be kept in the length L of the tape. Procedures i stored in the tape length is
Huffmatreeofdatastructure
- 哈夫曼树又称最优二叉树,是一种带权路径长度最短的二叉树。所谓树的带权路径长度,就是树中所有的叶结点的权值乘上其到根结点的路径长度(若根结点为0层,叶结点到根结点的路径长度为叶结点的层数)。树的带权路径长度记为WPL=(W1*L1+W2*L2+W3*L3+...+Wn*Ln),N个权值Wi(i=1,2,...n)构成一棵有N个叶结点的二叉树,相应的叶结点的路径长度为Li(i=1,2,...n)。可以证明哈夫曼树的WPL是最小的。-Huffman tree is also called the op
data_stucture
- 本程序是李春葆编写的数据结构的c语言版本,里边是该书所有算法的源程序.希望能对大家有所帮助!-This procedure is the preparation of Li-bao of the data structure c language version of the book that is inside the source algorithm. Hope you can help!
li
- c语言实现的数据结构中线形表的应用,包括二叉树结点的插入,删除,查询等-c language data structure in binary tree of applications, including binary tree node insert, delete, query, etc. -XIANXINGBIAOYINGYONG
2008QueueStructOpen
- 广州力麒排队机系统的数据结构描述,这份文档是2008年的排队机数据表结构。如果做第三方开发这个是很有用的。-Guangzhou Li Yee Queue data structure described in the system, this document is the 2008 data table structure Queue. If third-party developers to do this would be very useful.
Application_of_binary_tree_traversal_algorithm
- 二叉树遍历算法的应用 作者:李锐歆 建立二叉树 统计叶子结点个数 求二叉树的树深-Application of binary tree traversal algorithm: Li Ruixin Statistics leaf nodes to establish the number of binary tree binary tree seeking deep
HUFMM
- 哈夫曼树又称最优二叉树,是一种带权路径长度最短的二叉树。所谓树的带权路径长度,就是树中所有的叶结点的权值乘上其到根结点的径长度(若根结点为0层,叶结点到根结点的路径长度为叶结点的层数)。树的带权路长度记为WPL=(W1*L1+W2*L2+W3*L3+…+Wn*Ln),N个权值Wi(i=1,2,…n)构成一棵N个叶结点的二叉树,相应的叶结点的路径长度为Li(i=1,2,…n)。可以证明哈夫曼树WPL是最小的。-Huffman tree is also called the optimal bina
struct
- 这些程序是李春葆的《数据结构》后面的习题的详细源码,希望多各位计算机入门的同学带来帮助-These procedures are Li Bao " data structure" behind the exercises detailed source code, I hope more students started to bring you computer help
datastructure
- 赵坚版华理数据结构的PPT,适合初学者,内容详尽。-Zhao Jian Hua Li data structure version of PPT, suitable for beginners, detailed.
data-struct-c
- 李春葆:数据结构习题与解析(C语言版),专升本、考研必备资料。-Li Bao: Problem with the analytical data structure (C language version), Upgraded, PubMed necessary information.
shujujiegou
- 数据结构,顺序算法实现代码!编写一个程序sqsearch,输出在表中{{黎明,男,16,计算机系},{欧阳,男,16,计算机系},{李莉,女,18,计算机系},{马金霞,女,19,计算机系},{马平,男,18,计算机系},{刘博,男,17,计算机系}}顺序查找姓名为“刘博”的过程。-Data structure, sequence algorithm code! Write a program sqsearch, output in the table {{dawn, male, 16, Dep
cloud-model
- 李德毅教授的文章《数值型数据的泛概念树的自动生成方法》很有研究价值-Professor Li Deyi article, " the concept of numerical data of the pan-tree method of automatically generated" great research value
erchashu
- 二叉树的建立及查找,遍历二叉树数。有源程序,及遍历程序-er cha shu de cha zhao ji pian li
li
- 这个是李春葆数据结构教程(第三版)031985-01,需要的朋友可以下下来看下,很好的东西-This data structure is Li Bao tutorial (third edition) 031985-01, need friends can look down under, good stuff