-
JavaScript重写C语言为mt19937
MT19937的javascript:Real number version genrand()为每个调用生成一个伪随机实数(double),它均匀分布在[0,1]间隔上。sgenrand(seed)将初始值设置为624个字的工作区。在genrand()之前,sgenrand(seed)必须是
- 2022-01-25 22:46:57下载
- 积分:1
-
0 / 1背包问题是一个N P
0 / 1背包问题是一个N P-复杂问题,为了解决该问题,,将用回溯算法解决该问题。既然想选择一个对象的子集,将它们装入背包,以便获得的收益最大,则解空间应组织成子集树的形状(如图1 6 - 2所示)。该回溯算法与4 . 2节的装载问题很类似。首先形成一个递归算法,去找到可获得的最大收益。然后,对该算法加以改进,形成代码。改进后的代码可找到获得最大收益时包含在背包中的对象的集合。-0/1 knapsack problem is a P-complex issues, in order to solve the problem, and will be used backtracking algorithm to solve the problem. As to the choice of a subset of object, they will load a backpack, in order to obtain the greatest profits, the solution should be organized into space subset of the shape of the tree (Figure 1 6-2 below). The backtracking algorithms and 4. Two loading problem is very similar. Forming a recursive algorithm to get the maximum benefit available. Then, this algorithm is modified to form code. Improved code can be found at the maximum benefits included in the backpack of a collection of objects.
- 2022-02-26 09:06:08下载
- 积分:1
-
RM编码DSP代码
应用背景里德-穆勒码(Reed-Muller,RM)是一类纠正多个差错的编码。这类码构造简单,结构特性丰富,可以简单地通过采用软判决或硬判决算法的好几种方式来进行译码。本论文采用的RM编译码算法是:长度为(n, k)的Reed-Muller 码的编码方法是将生成矩阵×knM与输入数据向量×1kx按矩阵相乘,对每个元素对2 取模,即可以得到编码数据向量。而译码算法则是采用大数逻辑译码。关键技术本程序用C语言实现RM的编码和译码
- 2023-04-30 00:50:02下载
- 积分:1
-
迭代加深八数码
#include
#include
using namespace std;//变量声明
class EiNum;
#define MAX 20//MAX为最大的迭代深度
int depth;//当前树的最大深度
EiNum * root[MAX + 1];//重复当前的路径
//交换两个数
void Swap(int &a,int &b) {
int temp;
temp = a;
a = b;
b
- 2022-08-10 21:09:51下载
- 积分:1
-
hmax模型C++/matlab混合编程
这是一个已经在我们的论文中所使用的标准代码。关于如何使用C / MATLAB HMAX源代码指令:下载的压缩包HMAX解压它:焦油-xvf hmax.tar这样做:MEX myRespC2new.c(这是MEX函数来计算C2激活)到MEX.c文件编译成.mex*或.dll的平台启动MATLAB键入主运行演示程序,它加载的图像(testImage.gray),并计算出它的C2反应(这是存储在c2Resp之后)。
- 2023-03-18 20:00:03下载
- 积分:1
-
二维平面delaunay三角剖分
二维平面delaunay三角剖分,可以较好的实现二维平面上点集的三角网格化,使用随机增量算法实现!
- 2023-02-25 22:45:04下载
- 积分:1
-
Cantor Table : Problem description : put both the numerator and the denominator...
Cantor 表问题: 问题描述: 把分子和分母均小于108 的分数按下面的办法排成一个数表。 1/1 1/2 1/3 1/4 1/5 ... 2/1 2/2 2/3 2/4 2/5 ... 3/1 3/2 3/3 3/4 3/5 ... 4/1 4/2 4/3 4/4 4/5 ... 5/1 5/2 5/3 5/4 5/5 ... ... ... 我们以Z 方形方法给上表的每项编号。第一项是1/1,第二项是1/2, 然后是2/1,3/1,2/2,1/3,1/4,2/3,3/2,4/1,5/1,4/2,...... 要求:对于给定的输入的编号N(0
- 2022-03-21 20:56:33下载
- 积分:1
-
这个函数曲线的三维高斯轮廓为椭圆体。很有用的。
This function plots the contours of 3d gaussians as ellipsoids. Quite useful.
- 2022-09-24 10:35:03下载
- 积分:1
-
遗传算法工具箱
遗传算法工具箱 超全的代码,包含很多个小程序,要是下载这个,就不用担心再去其他地方找了
- 2022-09-24 12:00:02下载
- 积分:1
-
VC++实现的二分法求单调函数是否有解。
VC++实现的二分法求单调函数是否有解。-VC++ dichotomy in order to achieve the monotonic function is broken.
- 2022-01-22 05:54:23下载
- 积分:1