资源列表
zhengchu15
- 算法设计与分析的一道题目:整除15问题(适用于上课实验)-Algorithm design and analysis of a topic: divisible by 15 questions (for class experiment)
searchthemaxandmininarray
- 分治思想是算法中很常用的一种技巧。在N个数中求最小值Min和最大值Max,我们只需分别求出前后N/2个数的N/2个数的Min和Max,然后取较小的Min,较大的Max即可(只需较大的数和较大的数比较,较小的数和较小的数比较,两次就可以了)。-You can use the procedure to find the Minnumber and the Maxnumber in the array.
wannianli
- 一个万年历程序,用于查找年份等,可以输出输入的年份是否为闰年,输入的日期在那年哪月-A calendar program used to find the year so you can output and input the year is a leap year, enter the date on which that year
Thread-Double-Time
- 双序遍历,可以对是链式存储的二叉树进行双序遍历-Thread twice
二叉树的先、中、后序遍历序列
- 从键盘接收扩展先序序列,以二叉链表作为存储结构,建立二叉树。输出这棵二叉树的先序、中序和后序遍历序列。 输入 输入扩展先序序列。二叉树结点的data是字符类型数据, 其中#表示空格字符。 输出 三行依次输出先序、中序、后序遍历序列。 样例输入 ABC##DE#G##F### 样例输出 ABCDEGF CBEGDFA CGEFDBA
zuixiaoercheng1
- 简单最小二乘法c实现代码,提高了收敛速度,比较容易看懂
约瑟夫环循环报数链表
- M个人围成一圈,从第一个人开始依次从1到N循环报数,当报到N的时候此人出圈,直到圈中只剩一人为止.要求按退出顺序给出原始编号-M personal circle, starting from the first person in turn reported from 1 to N number of cycles, N, when the report when the person out circle, circle until only one person so far. Requir
golden_cut_method
- 2. 黄金分割法的的核心思想是逼近,而最终结果的精确程度取决于相对精度e的大小,e越小,结果越精确,迭代次数越多,这一点从图一的程序运行结果中可以很明显的看出。 3. 程序运行过程中首先输入初始区间[0,1],然后输入迭代后最后区间的长度0.2,最后得出极小值和极小值点。 -2. Golden section method is the core idea of approximation, while the final result depends on the precise re
AVL
- AVL树操作代码,借鉴了《算法导论》,具有不错的借鉴价值-AVLtree operation code
finding
- 折半查找的算法思想是将数列按有序化(递增或递减)排列,查找过程中采用跳跃式方式查找,即先以有序数列的中点位置为比较对象,如果要找的元素值小于该中点元素,则将待查序列缩小为左半部分,否则为右半部分。通过一次比较,将查找区间缩小一半。 折半查找是一种高效的查找方法。它可以明显减少比较次数,提高查找效率。但是,折半查找的先决条件是查找表中的数据元素必须有序。 -Binary search algorithm idea is to sequence by ordering (ascending or
duipaixu
- 堆排序的C++实现代码,数据结构中十分重要的一种排序方法-Heap Sort C++ implementation code, the data structure is very important in a sorting method
ev
- Operators matrices c#- operator matrix c#