-
项目实施的堆
函数和过程:
1.Heapify
2.建堆
3.插入
4.提取最大
5.增加的关键
6.初始化
7.打印堆
从文件堆成 8.读取文本)
- 2023-02-08 06:50:03下载
- 积分:1
-
蚂蚁算法实验室,可以仿真模拟一
蚂蚁算法实验室,可以仿真模拟一-laboratory ant algorithm can be simulated under what
- 2023-07-11 16:00:03下载
- 积分:1
-
素数分解的MillerRabin+pho算法
使用c++的素数分解模板,可以分解2^64范围的数字。一般用于ACM竞赛模板,具体使用情况比较简单易用。程序主体使用pho以及squefof分解算法,中间不断使用米勒罗宾监测素数。分解过程主要在于猜测素数的位置逐个测试,也算是分解效率比较高的算法之一。用于ACM竞赛中还是比较好用比较能A题的一个版了。
- 2022-07-20 21:16:56下载
- 积分:1
-
C#编写的随机数发生器
该代码用了三种不同的算法生成你想要的随机数序列个数,包括乘同余方法、乘同余组合发生器;其中的参数是在蒙特卡罗方法在实验核物理这本书中以及“蒙特卡洛方法中随机数发生器和随机抽样方法的研究.金畅"这篇文献中找到的。本人实验多次,经检测两种方法生成的随机数的均匀性符合要求,且用此随机数进行已知分布的抽样也能达到要求。
- 2023-03-26 16:00:02下载
- 积分:1
-
Discrete-Continuous Optimization for Multi-Target Tracking
A matlab program for multi-target tracking,The problem of multi-target tracking is comprised of two distinct, but tightly coupled challenges: (i) the naturally discrete
problem of data association, i.e. assigning image observations to the appropriate target; (ii) the naturally continuous
problem of trajectory estimation, i.e. recovering the trajectories of all targets. To go beyond simple greedy solutions for data association, recent approaches often
- 2023-01-02 11:40:18下载
- 积分:1
-
use GA to deal with 随机机会约束规划
use GA to deal with 随机机会约束规划-use GA to deal with random chance Constraint Programming
- 2022-11-12 11:50:03下载
- 积分:1
-
#define 中使用运算符 c
#include < stdio.h >
#include < string.h >
#define TFTP_TYPE_GET 0
#define TFTP_TYPE_PUT 1
int (主)
{
printf %("d",TFTP_TYPE_GET) ;
}
- 2023-06-15 02:11:15下载
- 积分:1
-
GA-PSO 混合算法解决TSP问题
资源描述TSP问题是一个NP难题,因PSO算法具有算法相对简单等特性借用BPSO来解决TSP问题,因此借鉴遗传算法的交叉运算,用基本粒子群算法中的学习因子来限制速度,依据选取当前速度值的概率(在算法中借用惯性系数w来实现)与rand(0,1)进行比较得到离散速度变量
- 2023-03-31 07:45:04下载
- 积分:1
-
牛顿
牛顿-拉格朗日插值法C++源代码,最新修改的通码,网友可以-Newton-Lagrange interpolation C source code, the latest revision of immigration code, net surfers can s
- 2022-03-02 14:15:10下载
- 积分:1
-
利用横向递归算法解决数据组合的问题, 比如数组为a, 长度为len, 横向递归 B display(a,len) b是二维数组,a是一维数组...
利用横向递归算法解决数据组合的问题, 比如数组为a, 长度为len, 横向递归 B display(a,len) b是二维数组,a是一维数组-the use of horizontal recursive algorithm to solve the problem of data sets, such as the array is a length of len, horizontal display recursive B (a, len) b is the two-dimensional array, is a one-dimensional arrays
- 2022-03-23 12:54:55下载
- 积分:1