-
CACHE文件管理功能的设计
资源描述
该系统通过散列表来保存CACHE文件,以完成CACHE文件的管理功能。它能够实现CACHE文件管理表的创建、释放,向CACHE中添加文件,从CACHE中删除文件,从CACHE
- 2022-02-07 13:35:14下载
- 积分:1
-
线段覆盖程序
基于c++的线段覆盖程序 本段程序采用的是贪心算法,初始化之后对线段进行预处理,如果读入的左端点比右端点大,那么调换一下位置。先用快速排序对线段的左端点排序, 排序结束之后,从左到右进行扫描,对线段的右端点的几种情况分别讨论保留还是舍去,最终输出结果即可。
- 2022-04-16 03:58:19下载
- 积分:1
-
扫雷(图遍历)
背景
你玩儿过扫雷游戏吧?有个操作系统中带了这个小游戏,那个系统叫什么来着?;-)在游戏中要想过关,就必须要在一个 NxM 的区域上找出所有的地雷。游戏过程中,计算机会在地图上显示一些数字从而帮助你确定哪里有地雷。例如,在下面这个有两颗地雷的 4x4 的地图(*表示地雷):
*...
....
.*..
....
根据上面的地图,可以计算出应该提供给游戏者的数字如下所示:
*100
2210
1*10
1110
每个数字表示了该方格周围到底有几个地雷,当然,一个方格周围最多的时候只会有八个。
输入
输入中将包括一系列的地图,每个地图的第一行有两个整数 n 和 m(0
- 2022-01-25 19:22:18下载
- 积分:1
-
Elimination algorithm with C language
研究生期间上《数值计算方法》课的作业,所有代码都是C语言实现并调试通过,现在上传为大家服务。这是消元法的算法-Elimination algorithm with C language
- 2022-06-27 06:53:47下载
- 积分:1
-
系统工程
系统工程-层次分析法VB版-system-level analysis VB Edition
- 2022-09-06 07:10:02下载
- 积分:1
-
粒子滤波重采样(13种方法)resampling methods for particle filtering
I have developed a serial of resampling methods for particle filtering in Matlab as attached below in separate .m files that you may have interest and that you may have better implementation than me, or if you have any question, your feedback will be appreciated.
These resampling methods together with their pseudo-codes
- 2022-06-12 23:28:12下载
- 积分:1
-
Linux C数据结构程序
数据结构基础学习,按照工程要求,实现数据结构的开发,包括头文件、源程序、测试例程及makefile,是初学数据结构的最好例子。对于C语言的提高有很大帮助。
线性表是数据结构的基础,这里才有顺序和链式两种方式实现线性表。具有代表意义。
- 2023-06-05 22:35:03下载
- 积分:1
-
遍历二叉树算法
代码实现了二叉树的生成和搜索。希望对正在学习算法的同学们提供便利。
- 2022-03-23 21:59:18下载
- 积分:1
-
新型GA算法
一种好的改进遗传算法function [opy,optimy]=GA(pt,gennum,psize)% 输入参数:% pt m*n的加工时间矩阵(n是工件数目,m是机器数目)由已知给的T矩阵,可得n=100,m=10% gennum 迭代的次数(代数)% psize 种群的规模大小%输出参数:% opy 最优的Makespan值pc=0.9;%交叉因子pm=0.1;%变异因子[m,n]=size(pt);current_gen=1;%current_gen means the current generationnewgen=zeros(psize,n+1); %mewgen is the new generation of the populationnewgen(1:psize,1:n)=rand(psize,n);%主种群初始化,0-1之间的随机数 %Generalize the initial groupfather=zeros(2,n); %father is used to store the two genes for crossover and mutation avgen=zeros(1,gennum); %avgen is the matrix of the average of all the generationsoptimx=zeros(1,n);optimy=ones(1,gennum);%Generalize the initial groupfor i=1:psize [Ya,pop(i,1:n)]=sort(newgen(i,1:n));%种群排序,实数编码转换为自然数编码 随机生成的0-1之间的小数进行排序然后取每个从小到大数对应的位置 newg
- 2022-03-18 14:25:18下载
- 积分:1
-
solving nonlinear equations in a way : by using a method of optimizing initial G...
解非线性方程组的一种方法:先用一种优化方法将给定初值(它有可能会使得后续的牛顿法发散)通过一条比较快的途径收敛到精确解附近,得到一个新的初始点,然后再通过牛顿法将新的初始点迭代到精确解(一定的误差范围内)。这种方法的优点在于:它可以将牛顿法快速收敛的优势发挥出来,同时又避免了该方法收敛域比较窄的缺点。-solving nonlinear equations in a way : by using a method of optimizing initial Givens (it might make follow-up to Newton"s law divergence) adopted a relatively fast convergence to the channel near the exact solution, to be a new starting point, and then Newton"s law of the new iteration of the initial point of the exact solution ( some of error). This method has the advantage : it can be rapid convergence of Newton"s method to exploit the advantages while avoiding convergence of the method is relatively narrow domain shortcomings.
- 2022-03-20 10:21:18下载
- 积分:1