搜索资源列表
经典汉诺塔问题c语言版
- 汉诺塔是初学数据结构的同学最头疼的问题,这里是一个用递归函数解决汉诺塔问题的经典c语言程序,里面有代码和执行文件。-HANOR data structure is that when the students most headaches, here is a solution using a recursive function HANOR a classic c language program, which has code and the implementation document.
李森数据结构作业
- 文件夹中包括常用的数据结构的算法,包括二叉树的三种递归和非递归算法,染色问题,八皇后问题,深度广度遍历,约瑟夫环,数值转换,树的高度和叶子节点数,最小生成树 ,两点之间的所有路径-folder include common data structure of the algorithm, including the three binary tree recursive and non - recursive algorithm, Dyeing, 8 Queen, depth and bread
algorithmDesignPPT
- 算法设计与文件的整套电子教案,主要包括递归和分治方法、动态规划算法、贪心算法、回溯法、分支限界法等常用算法和NP问题
c++5
- 该文件里包括输入一个整数,用递归算法将整数倒序输出的程序和用指向二维数组基本元素的指针变量输出二维数组全部变量的程序。
FastQuery
- /*快速排序采用分治算法,将所需要排序的内容从文件读入放入数组a[p:r],按以下三个步骤进行排序 以a[p]为基准元素将数组分为三段,将大于基准元素的放到后面的单元,小的放到前面的单元, 再用递归对a[p:q-1],a[q+1:r]进行排序,最后合并 时间复杂度:最坏时间复杂度:O(n2) 平均时间复杂度:O(nlogn) */
VBdiguisuanfa
- 一个递归算法,并把递归出的文件隐藏,使用VB开发,希望大家支持
cw_bitree
- 与清华大学版的《数据结构》匹配二叉树的实现:BITREE1.CPP:为主程序,其中实现了递归算法以及非递归算法的前序遍历,中序遍历,后序遍历。TSTACK1.H: 为头文件,其中定义了一些常量的值,其中也包括了书中第三章的栈的实现,只需要将注解符去掉即可。运行环境为:VC++6 或 TC3-and Tsinghua University version of the "data structure" matching the achievement of a binary t
BiTree
- 数据结构中的二叉树的遍历(前序、中序、后序)算法,包括递归和非递归两种实现,另外还实现了层次遍历算法(header文件夹中包含了数据结构的头文件)。-Data structure of binary tree traversal (pre-order, in sequence, after the sequence) algorithm, including recursive and non-recursive two to achieve, in addition to achieving
qpl
- n个数的全排列的非递归算法,cpp文件可编译运行-n the number of full-order non-recursive algorithm, cpp files can be compiled to run
Filter1
- 对文件进行文本文件处理 并采用递归法把查到的信息插入到树中-a file processing program, process a file and insert the information from the file to a tree
c
- 程序包含实现排序的递归函数;把一个文件中的内容输出到另一个文件中;交换两个地址中的数据等。-Achieve the sorting process consists of recursive function to output the contents of a file to another file the exchange of two addresses in the data.
BrowseDir
- 一个递归遍历本地磁盘文件夹及文件的算法源码-A local disk folder recursive traversal algorithm and source code files
exam5
- 1、用随机函数生成10个待排序元素; 2、利用二叉查找树输出升序序列; 3、利用同一棵二叉查找树输出降序序列; 4、写出查找的递归函数;注意:递归出口的处理要求:二叉排序树的程序填空:修改 “BiSearchTree.h” 文件中的myorder()函数,得到二叉排序树的降序序列,要求达到BiSearchTree.exe的执行效果。 哈希查找: 1、 哈希表类的哈希函数采用除留余数法哈希函数; 2、 解决哈希冲突的函数采用开放定址法中的线性探察法。 3、 建立一个由1
syntax
- LL(1)文法的实现。具体设计要求如下: 1. 可以使用任何语言来完成,例如:Java、C、C++。 2. 文法采用常用的方式进行描述,例如:S→aA。 3. 以文件方式读取文法。 4. 分别求出每一个非终结符FIRST 集FOLLOW集和SELECT集。 5. 画出预测分析表。 6. 判定读入的文法是否是LL(1)文法。 7. 给定的任意符号串判定是否是文法中的句子,将分析过程用计算机打印出来。 8. 查出文法中是否含有左递归或左公因子。若有则消除左公因子和左递
Nonrecursive_merge
- 归并排序的非递归算法,且包括文件读取及算法计时-Nonrecursive merge algorithm
Josephus
- 约瑟夫环的c++源程序; 文件夹1中为老师编写的代码,多文件结构; 文件夹2中为我在数据结构课程中提交的报告及代码,用了链表和递归两种方案实现,代码简洁。-Joseph Ring c++ source Folder 1, code written for teachers, multi-file structure 2 folder structure for my courses in the data reports and code lists and recurs
binarytree
- 用二叉链表作为二叉树存储表示编写递归算法。设计思路及调试结果在上机报告内。程序文件在附件中,需包含头文件。-List as a binary tree with binary memory, said write recursive algorithms. Design ideas and results on the machine commissioning report. Program files in the attachment, the need to include the he
TestTree
- 数据结构实验。创建、保存、读取二叉树。且实现了二叉树的递归遍历,非递归遍历,递归求度为0、1、2节点数,非递归求度为0、1、2节点数,按层次遍历,求二叉树深度,判断是否完全二叉树,交换左右子树等功能……附带文件操作-Experimental data structure. Create, save, reading binary tree. And to achieve a binary tree of recursive traversal non-recursive traversal, r
BiTree
- 实现的功能包括创建二叉树,按层遍历、递归遍历,统计度为0、1、2的节点数,求深度,判断是否是完全二叉树,求节点的父节点,交换左右子树,文件读写-create BiTree,traverse bitree,node s ancestor, exchange left and right childtree
Search-Tree
- C语言编写,二叉查找树的非递归实现。包含一个描述二叉树的头文件和实现功能的cpp文件。-Non-recursive implementation of binary search tree, written in C++. Contains a header file of the binary tree of the header files and source file of functions.