-
蚁群算法解决TSP旅行商问题
蚁群算法解决TSP旅行商问题
蚁群算法是一种在图中寻找优化路径的机率型算法。他的灵感就是来自于蚂蚁发现食物的行为。蚁群算法是一种新的模拟进化优化的算法,与遗传算法有很多相似的地方。蚁群算法在比较早的时候成功解决了TSP旅行商的问题
- 2022-03-31 12:54:45下载
- 积分:1
-
This is the document on the operation of a title, and that Italy, we can see tha...
这是关于文件操作的一个题,由题意可知,该题解决起来应该分为三个部分。第一部分即从in.dat中读入数据,第二部分即实现排序的算法,最后应该实现将排序的结果输出到out.dat中。-This is the document on the operation of a title, and that Italy, we can see that the solutions to the problem should be divided into three parts. The first part from in.dat read into the data, the second part of that is to achieve the ranking algorithm, the final order will be to achieve the results were exported to out.dat.
- 2022-05-24 19:47:39下载
- 积分:1
-
学习C++的小程序
这是我去年开始学习C++时用到的代码,觉得挺不错的,适合初学者看一看,很基础,不光要看懂,还要自己敲一敲,争取全部自己敲出来
- 2023-08-03 06:50:04下载
- 积分:1
-
基于BPSK的直接序列扩频编码,效果不错
基于BPSK的直接序列扩频编码,效果不错-BPSK-DSSS-CDMA-FFT-Source-Code
- 2022-03-25 00:23:58下载
- 积分:1
-
vc++实现编译原理中的LL(1)文法的编译过程,非常好用.
vc++实现编译原理中的LL(1)文法的编译过程,非常好用.-vc realization of the principle of compiler LL (1) grammar compiler course, very handy.
- 2022-06-30 08:02:44下载
- 积分:1
-
不能移动的石子合并
资源描述做如下两个模型的石子合并,如下模型石子都不能移动出列,且合并都仅发生在相邻两堆石子中:
(1)第一个模型:一行排列且相邻合并
有n堆石子A1,A2,...,An形成一行,每堆石头个数记为ai(1
- 2022-03-06 16:38:01下载
- 积分:1
-
电影票
图书馆管理系统 C+ + * 递归程序为线性搜索 * /#includeint 线性 (int [],int,int) ;无效的主要 (){int a [20],pos = 1,n,k,我 ;clrscr() ;printf ("nEnter n 值:") ;scanf ("%d",& n) ;printf ("nEnter 元素的数组:") ;为 (我 = 0 ; 我 < n; i + +)scanf ("%d"& a[i]) ;printf ("n 输入要搜索的元素:") ;scanf ("%d"& k) ;pos=linear(a,n,k) ;if(pos!=-1)printf ("n 搜索成功,发现位置 %d 处的元素",pos) ;其他printf ("搜索失败,找不到元素") ;残培 () ;}int 线性 int k int n int []){int ;为 (我 = n-1 ; 我 > = 0; 我 — —){if(a[i]==k)return(i) ;其他{n = n-1 ;return(linear(a,n,k)) ;}}返回-1 ;}
- 2022-02-02 00:00:53下载
- 积分:1
-
计算岩体结构面发相密度
用于计算岩体结构面的法向密度,前提条件是知道优势结构面的产状,知道测线产状和长度,结构面与测线的交点数。程序用于简单的判断岩体的结构特征,并用于RQD值估算。
- 2022-07-23 02:47:25下载
- 积分:1
-
des algorithm implementation using c
简单的实现实现了des加密算法,代码简洁易懂。
密码学是一门古老的学科,在密码学发展的历史上,出现了多种加密方法,又很早的古典加密算法,后来又出现了更成熟的分组密码,公钥密码及流密码等,因为我只涉及了分组公钥密码,所以在这篇文章中就暂且先介绍分组密码,在说分组密码之前要说的就是密码学中常见的两种体制,一种是对称密码体制,一种是非对称密码体制,也叫公钥密码体制。
对称密码体制是指如果一个加密系统的加密密钥和解密密钥相同,或者虽然不同,但是由其中的任意一个可以很容易地推导出另一个,即密钥是双方
- 2023-07-28 12:00:02下载
- 积分:1
-
will enhance wavelet for target tracking. Lifting the core algorithm and is upda...
将提升小波用于目标跟踪。
小波提升的核心就是更新算法和预测算法,通过预测算法可以得到高频信息,而通过更新算子可以得到正确的低频信息.提升样式可以实现原位计算和整数提升,并且变换的中间结果是交织排列的.其中原位计算和整数提升在硬件实现中很有价值.-will enhance wavelet for target tracking. Lifting the core algorithm and is updated prediction algorithm, algorithm can be predicted high-frequency information, and by updating operator can correct the low-frequency information. upgrade format can achieve in-situ upgrade and Integer calculations, and transform the intermediate results are intertwined with a. which integer calculation and in-situ upgrading the hardware realization of great value.
- 2022-05-14 04:46:44下载
- 积分:1