-
回溯法解N后的C++源码(Visual Stdio2010环境测试通过)
#include #include #include #include using namespace std;class Queen{ friend int nQueen(int);private: bool Place(int k); void Backtrack(int t); void Output(); int n,//皇后个数 *x;//当前解 long sum;//当前已找到的可行性方案数};bool Queen::Place(int k){ for (int j=1;jn) { sum++; Output(); } else { for (int i=1;i
- 2022-02-06 19:11:54下载
- 积分:1
-
Apriori及FP-growth源程序及输出
不但要输出频繁模式,还要输出频繁模式的支持度(绝对值,即支持度计数)输出文件中每行格式如下:abc: 1000表示输出模式为abc,其支持度为1000
- 2023-04-05 04:55:03下载
- 积分:1
-
k-means算法实现
数据挖掘 聚类算法 k-means的实现,改进了一些初始中心选取的方法。聚类算法是最大化类间差异,而最小化类内部差异的算法,k-means比较经典,但是缺点是需要指定k值,并且聚类结果与初始中心有很大的关系,通过改善聚类初始中心选取的方法,能够得到更加稳定的聚类结果
- 2022-01-26 07:33:13下载
- 积分:1
-
哈夫曼算法
数据结构与算法设计作业,有助于理解,哈弗曼算法简单实现,哈夫曼树,可用于写小型压缩解压缩软件作为核心算法,对数据结构有兴趣,或对压缩软件工作机理有兴趣者可以看看。
- 2022-11-28 09:25:03下载
- 积分:1
-
利用快速傅立叶变换间接计算的Hilbert变换。程序已测试,效果很好...
利用快速傅立叶变换间接计算的Hilbert变换。程序已测试,效果很好-The use of Fast Fourier Transform Hilbert transform calculated indirectly. Procedures have been tested, the effect of good
- 2022-03-15 17:45:20下载
- 积分:1
-
vc编的线性规划源码,单纯形方法求解线性规划问题
vc编的线性规划源码,单纯形方法求解线性规划问题-vc-compile-source linear programming, simplex method for solving linear programming problems
- 2022-06-30 20:40:35下载
- 积分:1
-
列主元Gauss消去法
列主元Gauss消去法-out PCA Gaussian Elimination
- 2022-07-02 19:44:47下载
- 积分:1
-
数十个程序,结构分析,偏重岩土方面
数十个程序,结构分析,偏重岩土方面-dozens of procedures, structural analysis, emphasizing geotechnical aspects
- 2023-08-05 02:35:03下载
- 积分:1
-
two polynomial is the Euclid algorithm, namely polynomial for the two majors.
就是两个多项式的欧几里得算法,即求两个多项式的最大公约数。-two polynomial is the Euclid algorithm, namely polynomial for the two majors.
- 2022-12-24 12:30:04下载
- 积分:1
-
This is a gray code forecast, Gray forecast general parameters applied to the ne...
这是灰色预测代码,一般灰色预测的参数需要应用到矩阵的运算,本代码通过对其变形,使其运算简单化.-This is a gray code forecast, Gray forecast general parameters applied to the needs of the matrix computation, the code through its deformation, it Operational simplistic.
- 2022-03-09 13:55:45下载
- 积分:1