搜索资源列表
playMax
- 用回溯法和递归调用的思想实现了多边形游戏算法,用codeblocks开发。输入多边形的N个定点的数值和N条边的运算符,可计算任意断开一条边后计算所得的最大值。-Backtracking and recursive calls with the idea to achieve a polygon game algorithm, using codeblocks development. Input polygon fixed values of N and N edge
math
- 数据统计,可以计算最大值和最小值,还有平均值。可以删除最大值最小值。可以排序。-Statistics, maximum and minimum values can be calculated, as well as average. You can delete the maximum minimum. Can be sorted.
huofuman
- 霍夫曼编码的基本方法是先对图像数据扫描一遍,计算出各种像素出现的概率,按概率的大小指定不同长度的唯一码字,由此得到一张该图像的霍夫曼码表。编码后的图像数据记录的是每个像素的码字,而码字与实际像素值的对应关系记录在码表中。-Huffman coding method is first scanned image data again, to calculate the probability of a variety of pixel specify a different length uniq
greed
- 带有期限和效益的单位时间的作业排序贪心算法。作业已按效益值递减的顺序排好,依次输入各作业的期限值,要求按顺序输出最优解。-With the duration and effectiveness of the unit time Scheduling greedy algorithm. Operating efficiency values have been decreasing order, the order input period value of the o
99
- c语言编写的99乘法表 让初学者了解for的简单应用-c 99 languages for beginners to learn the multiplication table for a simple application
C-Library
- c语言库函数,包含函数的参数、返回值介绍-c language library functions, including function parameters, return values described
1
- 三角形的面积算法 三角形的面积算法-Area of the triangle algorithm
3.tar
- 高速缓存调度问题的C++实现代码,采用最优的opt方法。代码注释详实,可读性好。-Cache Scheduling C++ implementation code, the use of the best opt method. Code comments informative and readable.
9-1
- 1、利用尾插法创建两个类型为字符型的带头结点的有序单链表La和Lb。 2、将La和Lb合并到一新链表Lc中,使得Lc表中元素值也有序,统计Lc中元素个数并显示出来。 3、要求:屏幕上可以显示La和Lb元素列表,以及合并后单链表Lc元素列表。 -1, by the end of interpolation method to create two types of nodes as the lead character of the ordered single chain La an
Kruskal
- 采用Kruskal算法求最小生成树主要数据结构 edgeset GE 存放图中的所有边 int n,int e 存放图中的顶点数与边数 edgeset C 存放生成树中的边 vexlist gv 图中结点的顶点值 adjmatrix s 用来处理图中结点的查找与合并 int m1,m2 一条边上两顶点所属集合的序号 int k 最小生成树中的边数 int d //图中待扫描边元素的下标-For the Minimum Spanning Tree by Krusk
osBank
- 3、银行家算法 设request:是Pi进程的请求向量,当Pi发了资源请求后,系统按下述步骤检查: (1)如果Request[i]<= Need[i],则转向步骤(2); (2)若Request[i] <=Available,则转向步骤(3); (3)系统试探性地把要求的资源分配给进程Pi,并修改以下数据结构的值: Available=Available-Request[i]; Allocation[i]= Allocation[i]+ Request[i];
sequential
- 用C++面向对象语言实现合并两个顺序表的操作,其结果有序,并按照顺序排列显示。-In C++ object-oriented languages in order to achieve merging the two operating tables, the results of an orderly and follow the order shown.
0-1-knapsack-problem
- 01背包是在M件物品取出若干件放在空间为W的背包里,每件物品的体积为W1,W2……Wn,与之相对应的价值为P1,P2……Pn。求出获得最大价值的方案。在本例中所有数值均为整数-01 M items in the backpack is out of a number of pieces on the space W of the backpack, the size of each item as W1, W2 ... ... Wn, corresponding to the value of
fenzhixianjiefa
- 文章详细讲解分支限界的基本思想,单元最短路径问题,含有源代码和截图-Article explain in detail the basic idea of branch and bound, the shortest path problem unit, containing the source code and screenshots
Insert-delete-input-list
- 任意长度的链表的输入值、插入值和删除值的操作-Arbitrary length list of input values, insert and delete values of the operating value
quickSort
- 快排的实现。根据算法简单的实现了。可能还有些BUG,只是经过了简单的测试-Fast row implementation. According to a simple algorithm to achieve. May also be some BUG, but after a simple test
39
- 给定程序中,函数fun的功能是:将N×N矩阵中元素的值按列右移1个位置,右边被移出矩阵的元素绕回左边。例如,N=3,有下列矩阵 1 2 3 4 5 6 7 8 9 计算结果为 3 1 2 6 4 5 9 7 8 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的结果。 注意:源程序存放在考生文件夹下的BLANK1.C中。 不得增行或删行,也不得更改程序的结构! -A given program, function fun f
42
- 编写函数fun,它的功能是计算下列级数和 s=1 + x + x^2/2! + x^3/3! + … + x^n/n! 和值由函数值返回。 例如,当n=10,x=0.3时,函数值为1.349859。 注意:部分程序在文件PROG1.C文件中。 请勿改动主函数main和其它函数中的任何内容,仅在函数fun的花括号中填入你编写的若干语句。 -Write a function fun, its function is to calculate the following ser
1
- 中国剩余定理,本代码实现两个功能,一个功能是分解,将一个大数分解成n个小数值的数。一个功能是合成,实际就是分解的逆过程,将n个小数值的数还原成大数 -This code implements two functions, a function is broken down, large numbers will be decomposed into n a small number of values. A function of synthesis, is in fact the reve
5QQ
- 输入三个整数x,y,z,请把这三个数由小到大输出。1.程序分析:我们想办法把最小的数放到x上,先将x与y进行比较,如果x>y则将x与y的值进行交换, 然后再用x与z进行比较,如果x>z则将x与z的值进行交换,这样能使x最小-Enter three integers x, y, z, the number of small to large output of these three please. 1 program analysis: we find a way to p
