-
数独程序源码
新加坡总理李显龙两周前在一个创业者论坛上透露,他最后编写的一个程序是解决数独问题的程序(Sudoku solver),还是多年前用 C++ 实现的。此程序就是李显龙所编。 李显龙说:这个程序非常基础,在 DOS 窗口下运行。按行输入数据(比如:1-3-8—6),程序会打印出解决方案(如果有多种方案,则输出所有的)、程序所用的步数,还有一些搜索数据。该程序做了回溯搜索,选择下一个扇出(fanout)最小的单元格。
- 2022-10-23 20:50:03下载
- 积分:1
-
鼹鼠闯迷宫
资源描述void creatWay(int (*mg)[N],int x, int y)//在迷宫中产生一条路,使用图的深度遍历思想来实现,
{
static int dir[4][2] = {0, 1, 1, 0, 0, -1, -1, 0};////将要走的4个方向保存在二维数组中
int zx = x*2;
int zy = y*2;
int next, turn, i;
mg[zx][zy] = 0;
if(rand()%2)
turn = 1;
else
turn = 3;
for(i=0,next=rand()%4;i
- 2022-01-26 05:46:58下载
- 积分:1
-
高速公路客运仿真
高速公路客运仿真- Highway passenger transportation simulation
- 2023-08-30 15:35:03下载
- 积分:1
-
interpolation category, Packaging of the interpolation methods
插值类,封装了有关插值的一些方法-interpolation category, Packaging of the interpolation methods
- 2022-01-26 05:51:58下载
- 积分:1
-
雅可比迭代法解方程
本程序是用Jacobi迭代法解方程组 ,原方程 AX=b 迭代方程 X(k+1)=BoX(k)+f , Bo=I-(D-1)A ;f=(D-1)b. (其中(D-1)表示D的逆)
- 2022-03-13 10:28:03下载
- 积分:1
-
实现多元线性回归方程自变量的选择及系数的求解,获得显著性拟合方程...
实现多元线性回归方程自变量的选择及系数的求解,获得显著性拟合方程-The realization of multiple linear regression equations to solve significant
- 2023-06-20 12:40:02下载
- 积分:1
-
It is about a named set partition of the source code is a set partition problem...
它是关于一个命名集分区的源代码,是集分区问题中的一个acm
- 2023-06-01 19:40:03下载
- 积分:1
-
The GNU MP Bignum Library,非常好用的大数运算库,GMP is a free library for arbitrary precisi...
The GNU MP Bignum Library,非常好用的大数运算库,GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers.
-The GNU MP Bignum Library, very easy to use large numbers of computing library, GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers.
- 2022-03-22 20:47:19下载
- 积分:1
-
BST算法
自己当年写的一个BST算法的C程序,现在看看可以帮新人更好理解这个算法吧
- 2023-02-26 23:40:03下载
- 积分:1
-
还可以,能够加快迭代的计算速度,大家用一下
还可以,能够加快迭代的计算速度,大家用一下-can to accelerate the iterative calculation speed, we spent about
- 2022-06-15 16:37:27下载
- 积分:1