-
Simulation Algorithm. By compiling and debugging a system dynamic allocation of...
模拟实现银行家算法。通过编写和调试一个系统动态分配资源的简单模拟程序,观察死锁产生的条件,并采用银行家算法,有效的避免死锁。-Simulation Algorithm. By compiling and debugging a system dynamic allocation of resources simple process simulation, the observation Deadlock conditions, and using bankers algorithm, effective avoid deadlock.
- 2022-04-22 19:46:44下载
- 积分:1
-
Hash算法大全
Hash算法大全,收集于互联网,包含:旋转hash,混合hash算法,输出64位的值,AP算法,DEK算法,DJB算法,Thomas Wang的算法,整数hash,ELF算法,SDBM算法,BKDR算法,等
- 2022-05-05 08:28:14下载
- 积分:1
-
ACM正整数分解;消防车问题,求素数
ACM,
1、POJ-1221题-编程大赛中常用的一个算法,这种题也常见,关于正整数分解的!如3=1+1+1,3=1+2,3=3;
2、消防车问题
3、求素数问题
- 2022-07-18 05:10:26下载
- 积分:1
-
K-mean算法,并通过了IRIS数据的测试。-K-mean algorithm, and through the IRIS data testing.
- 2022-09-07 14:40:02下载
- 积分:1
-
遗传算法分析TSP
资源描述
遗传算法(GA)是一种解优化问题的随机搜索方法,它借助于生物进化中的自然选择和遗传(即适者生存)的规律.
算法步骤(基本遗传算法)
Step 1.随机初始化pop_size个染色体.Step 2.用交叉算法更新染色体.Step 3.用变异算法更新染色体.Step
4.计算所有染色体的目标值.Step 5.根据目标值计算每个染色体的适应度.Step 6.通过轮盘赌的方法选择染色体.Step
7.重复第二至第六步直到终止条件满足.Step 8.输出最好的染色体作为最优解.
为利于遗传算法的计算,首先要对解进行编码,编码后的解称为染色体.对于约束优化问题,遗传算法是在染色体中进行操作,而把操作结果解码后去检验其可行性.
遗传算法的主要特征:
群体和种群的维数相等,为一个偶数维,且不随代数的变化而变化;适应函数直接选用目标函数;种群中的个体通过轮盘赌的方法选取;种群中的一对个体采用随机交配位的方式产生一对子代;每一个基因有相同的变异概率。
- 2022-02-01 22:31:24下载
- 积分:1
-
This is the basis of others I write the algorithm simulation of the car park c p...
这是我根据别人的算法写的模拟停车场问题的c程序,原有算法有一些指针调用的错误!,现已改正-This is the basis of others I write the algorithm simulation of the car park c procedures, some of the original algorithm called the wrong target! That has now been rectified.
- 2022-10-02 02:20:03下载
- 积分:1
-
基于MFC的c++基础矩阵的计算
该程序用来计算两台摄像机之间的基础矩阵,首先获取两台摄像机图像中的N组匹配点,采用8点法和ransac法,随机的选取8组匹配点对,计算基础矩阵,并且不断调整各个参数。最终结果与matlab的结果进行了比较,精度高。
- 2022-05-30 05:40:20下载
- 积分:1
-
!
2 ! HOMPACK90 is a suite of FORTRAN 90 subroutines for solving nonline...
!
2 ! HOMPACK90 is a suite of FORTRAN 90 subroutines for solving nonlinear
3 ! systems of equations by homotopy methods. There are subroutines for
4 ! fixed point, zero finding, and general homotopy curve tracking problems,
5 ! utilizing both dense and sparse Jacobian matrices, and implementing
6 ! three different algorithms: ODE-based, normal flow, and augmented
7 ! Jacobian. The (driver) subroutines called by the user are given in the
8 ! table below, and are well documented internally. The user need not
9 ! be concerned with any other subroutines in HOMPACK90.
-!
2 ! HOMPACK90 is a suite of FORTRAN 90 subroutines for solving nonlinear
3 ! systems of equations by homotopy methods. There are subroutines for
4 ! fixed point, zero finding, and general homotopy curve tracking problems,
5 ! utilizing both dense and sparse Jacobian matrices, and implementing
6 ! three different algorithms: ODE-based, normal flow, and augmented
7 ! Jac
- 2022-07-21 06:18:17下载
- 积分:1
-
泛型的粒子滤波算法
泛型粒子过滤器:
注: 重采样对这种演算法称为每个步骤执行时引导粒子滤波
- 2022-02-02 16:53:42下载
- 积分:1
-
一个简单的递归实现八皇后算法
一个简单的递归实现八皇后算法-a simple recursive algorithm to achieve eight Queen"s
- 2022-04-14 18:07:05下载
- 积分:1