-
ant colony algorithm for TSP problem
tsp问题的蚂蚁算法-ant colony algorithm for TSP problem
- 2023-06-22 06:50:03下载
- 积分:1
-
通过此程序可以把输入的年份判别是平年,还是闰年.
通过此程序可以把输入的年份判别是平年,还是闰年.-through this procedure can be imported in the year discriminant is non-leap year, or a leap year.
- 2022-10-19 14:30:03下载
- 积分:1
-
贝塞尔曲线示例
#include < iostream >
#include < 矢量 >
#include < math.h >
#include"BezierPoint.h"
使用命名空间 std ;
BezierPoint 贝塞尔 (方法 < BezierPoint > & pts,双 t) ;
双选择 (双 a,双 b) ;
双 factorial(double num) ;
int main(void) {
方法 < < BezierPoint >> 方法警校 ;
char endPointCount = 0;
双 inx ;
双 iny ;
int ptCount = 0;
int 终结点 ;
双 deltaT ;
cin >> ptCount >> deltaT ;
为 (int 我 = 0 ; 我 < ptCount; i + +) {
cin >> inx >> iny >> 终结点 ;
BezierPoint p iny inx) ;
如果 (endPointCount = = 0 & & 终结点 = = 1) {
pts.push_back (方法 < BezierPoint > ()) ;
pts[pts.size()-1].push_back(p) ;
endPointCount + +;
继续 ;
}
pts[pts.size()-1].push_back(p) ;
如果 (endPointCount! = 0 & & 终结点 = = 1 & & 我! = ptCount-1) {
pts.push_back (方法 < BezierPoint > ()) ;
pts[pts.size()-1].push_back(p) ;
endPointCount + +;
}
}
为 (std::s
- 2022-03-13 19:08:01下载
- 积分:1
-
汉字点阵数据读取(含汉字库)
读取中文点阵字库,形成点阵数组,可用于LED显示或喷印点阵字体,包括了12*12 16*16 24*24 48*48。也可以读取单色的BMP位图信息。资料在网上很难找的,特别是字库文件,都是在DOS系统里面找来的,希望对大家有帮助
- 2022-01-25 21:32:54下载
- 积分:1
-
C# ini文件操作
资源描述封装好的C#做的dll可以以直接使用,主要是引用的windows api(c++)。里面重新实现了一些ini的操作方法,注释说明比较清楚,自己可以写一个例子调试一下看看,有任何问题可以联系我
- 2022-02-14 07:19:16下载
- 积分:1
-
二叉树的基本操作及哈夫曼编码译码系统的实现
(1)在二叉链表上设计和实现下列二叉树运算的算法
① 设计递归算法,实现:删除二叉树,求二叉树的高度,求二叉树中叶子结点数,复制二叉树,交换二叉树的左右子树。
② 设计算法,按自上到下,自左向右的次序,即按层次遍历一棵二叉树。
③ 设计main函数,测
- 2022-05-08 19:50:14下载
- 积分:1
-
全梯度算法程序代码。数学,总梯度法…
共梯度算法程序代码.数学上,共梯度法实求解特定线性系统的数值解的方法,其中那些矩阵为对称和正定。共轭梯度法是一个迭代方法,所以它适用于稀疏矩阵系统,因为这些系统对于象乔莱斯基分解这样的直接方法太大了。这种系统在数值求解偏微分方程时相当常见。
共梯度法也可以用于求解无约束优化问题。
-Total gradient algorithm program code. Mathematics, the total gradient method for solving a particular linear system is the numerical solution methods, including those for the symmetric and positive definite matrix. Conjugate gradient method is an iterative method, it applies to sparse matrix systems, because these systems such as the Cholesky decomposition of the direct method is too high. Such systems in the numerical solution of partial differential equations are quite common when. Total gradient method can also be used for solving unconstrained optimization problems.
- 2022-08-06 23:27:29下载
- 积分:1
-
这个傅立叶实例算法使用了基2、基3、基4、基5、基8、基10……混合算法,几乎可以计算任意长度的FFT。说明白点也就是当序列长度n为2、3、5、7、11等这些比...
这个傅立叶实例算法使用了基2、基3、基4、基5、基8、基10……混合算法,几乎可以计算任意长度的FFT。说明白点也就是当序列长度n为2、3、5、7、11等这些比较小的素数时,或者n的最大素因数
- 2022-11-15 09:35:04下载
- 积分:1
-
用动态规划法求解0-1背包问题
应用背景
1、问题描述: 3
2、最优性原理: 3
3、递推关系: 3
4、 改进前的算法 4
4.1 源代码 4
4.2 算法的时间复杂度 6
5、算法的改进: 6
5.1源代码 8
5.2 算法的时间复杂度 11
6、运行结果 11
7、 结论 12
关键技术
1、问题描述:
给定n种物品和一背包。物品i(1
- 2022-04-16 21:36:35下载
- 积分:1
-
CACHE文件管理功能的设计
资源描述
该系统通过散列表来保存CACHE文件,以完成CACHE文件的管理功能。它能够实现CACHE文件管理表的创建、释放,向CACHE中添加文件,从CACHE中删除文件,从CACHE
- 2022-02-07 13:35:14下载
- 积分:1