-
算法的设计方法(C程序):一、迭代法 二、穷举搜索法三、递推法 四、递归五、回溯法 六、贪婪法...
算法的设计方法(C程序):一、迭代法 二、穷举搜索法三、递推法 四、递归五、回溯法 六、贪婪法 -algorithm design method (C program) : 1, 2 iteration, the exhaustive search method three, four recursive method, recursive 5, backtracking 6, greedy algorithm
- 2022-03-01 08:20:07下载
- 积分:1
-
北大ACM试题poj 第3068题源码,很好的代码,希望对搞ACM的同学有帮助...
北大ACM试题poj 第3068题源码,很好的代码,希望对搞ACM的同学有帮助
-Peking University ACM Chapter 3068 question Question poj source code, good code, and want to help students engage in ACM
- 2022-01-28 18:40:13下载
- 积分:1
-
n阶方阵的克劳特(crout)分解matlab实现
应用背景n阶方阵的克劳特(crout)分解matlab实现关键技术在矩阵分析课上学习了n阶方阵的三角分解或叫克劳特(crout)分解,便尝试着用MATLAB编程实现。给一个例子如下:
原矩阵a=[2 1 -5 1;1 -3 0 -6;0 2 -1 2;1 4 -7 6]
执行 [l,u]=crout(a);
分解后得:
l=[2 0 0 0;1 -3.5 0 0;0 2 0.4286 0;1 3.5 -2 -9]
u=[1 0.2 2.5 0.5;0 1 -0.7143 1.8571;0 0 1 -4;0 0 0 1]
- 2022-03-20 07:06:32下载
- 积分:1
-
a description of the problem is : No. 1, 2, ..., n n clockwise direction by indi...
约瑟夫问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,没人持有一个密码。一开始人选一个正整数作为报数上限值m,从第一个人开始按顺时针自1开始报数,报到m是停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。-a description of the problem is : No. 1, 2, ..., n n clockwise direction by individuals sitting around a circle, no one holding a password. One person started as a positive integer limits on the number of reported m, from the first individuals to embark on the clockwise from a few reportedly started, the report m is reportedly stopped a few. M reported out of the list of his password as a new value m, from a clockwise direction in the next re-started from a newspaper a few, like that, until the total of all listed so far.
- 2022-02-03 16:31:48下载
- 积分:1
-
一个模拟树木生长的程序
一个模拟树木生长的程序-a simulated tree growth procedures
- 2022-03-04 19:01:44下载
- 积分:1
-
[数据挖掘]数据挖掘部分算法的matlab实现 C4_5
比较经典的代码...
[数据挖掘]数据挖掘部分算法的matlab实现 C4_5
比较经典的代码-[Data Mining] part of data mining algorithms compare classic C4_5 realize matlab code
- 2023-01-22 01:15:03下载
- 积分:1
-
本程序是根据分而治之的思想来解决比赛的时间表的问题
本程序是根据分而治之的思想来解决比赛的时间表的问题-this program is based on divide and rule of the game thinking to solve the problem of the timetable
- 2022-04-23 14:39:43下载
- 积分:1
-
particle filter
unlike kalman filter this filter is more suitable to deal with nonlinear data types. the source code is of omnet++ simulators. which contains a c++ file and other two files is used for network description and the general initialization files.
- 2022-01-28 02:07:30下载
- 积分:1
-
c + + 代码计算大型数的因子的总和
这是一个真正棘手的问题为正整数 x 让定义函数 f (x) = 1 * (1! + x) + 2 * (2! + x) +。+ x * (x! + x)."k!"意味着阶乘: k != 1 * 2 * ..* k 厨师想要计算 F(p1) + F(p2) +......+ F(pn)。答案可能是大的帮助他,计算模 m.InputFirst 线的值包含两个整数 n 和 m.Next 行包含 n 以空格分隔的整数 pi。
- 2022-03-05 15:13:21下载
- 积分:1
-
遗传算法实现最短路径优化
%初始化参数 %注:popsize=200,MaxGeneration=100,约跑2分钟。若不要求太精确,可减少循环次数。pointnumber=11; %节点个数Popsize=200; %种群规模,只能取偶数(因67行的循环)MaxGeneration=100; %最大代数Pc=0.8;Pm=0.3; %交叉概率和变异概率A=[0 2 8 1 50 50 50 50 50 50 50 2 0 6 50 1 50 50 50 50 50 50 8 6 0 7 50 1 50 50 50 50 50 1 50 7 0 50 50 9 50 50 50 50 50 1 50 50 0 3 50 2 50 50 50 50 50 1 50 3 0 4 50 6 50 50 50 50 50 9 50 4 0 50 50 1 50 50 50 50 50 2 50 50 0 7 50 9 50 50 50 50 50 6 50 7 0 1
- 2022-02-24 16:29:41下载
- 积分:1