-
odd N bands Demon Lineup : N
奇数N 阶魔方阵问题: 奇数N 阶魔方阵的构造规则如下: 1、在第一行的正中间填入1; 2、如果左上角能够移动,则往左上角填入后继的数;如果左上角不 能移动,则顺移到该列最下方左边的一列中最靠近该列的位置; 3、如果左上角不能移动,同时在该列位置的最下方左边最靠近的位 置处也不能填入数,则往该位置的上一行的最右边的位置处填入 后继数; 4、每次尽可能地往左上角填数,如果发现左上角已经填满了数,则 从当前填的数的位置下方填上后继数。 要求: 无。 输入: 用户从键盘任意输入一个正奇数。 输出: 打印出该魔方阵。-odd N bands Demon Lineup : N-odd magic Lineup Construction Rules are as follows : 1, the first line is the middle of a preference; Two, if the upper left corner to Mobile, the successor to fill in the upper left; If the upper left corner, unable to move, with the move out of the bottom of the left one of the closest out of position; three, if the upper left corner, unable to move, while in the position shown in the bottom left nearest location Department has not entered a few, to the position of the party on the right side of the positions filled successor; 4, each possible to fill the upper left corner, if fill the upper left corner, has found a few, from the current fill several positions to fill in the bottom subsequent few. Requ
- 2022-01-21 19:39:47下载
- 积分:1
-
龙贝格数值积分法
龙贝格数值积分法- Dragon Begg numerical integration
- 2022-04-19 18:04:33下载
- 积分:1
-
matlab的演示程序,很有意思,大家可以试一试,欢迎下载
matlab的演示程序,很有意思,大家可以试一试,欢迎下载-Matlab demo program, very interesting, you can try downloading welcome
- 2023-03-18 15:25:03下载
- 积分:1
-
压缩感知SL0算法
SLl0算法是一种压缩感知稀疏重构的新算法,通过利用高斯函数等光滑函数来逼近压缩感知中的0范数优化问题,将NP问题转化为光滑凸优化问题。根据本人测试,SL0算法计算效率显著高于传统的OMP、BP等算法,同时具有较好的计算精度,不过对噪声的容忍度略差。
- 2022-02-02 17:50:44下载
- 积分:1
-
快速排序算法的C++
该代码读取输入文本文件并将其排序,然后将这些数字排序为输出文本文件。代码使用快速排序算法进行排序。
- 2022-03-21 09:48:35下载
- 积分:1
-
bit operation for 64.
bit operation for 64.
- 2022-12-15 05:30:03下载
- 积分:1
-
烟花优化算法
应用背景& nbsp; ;烟花算法 ;(FWA)是一种群体智能 ;算法发表由Tan和朱 ;2010年(谭,& amp;朱,2010年)。该算法是nbsp;晚上烟花爆炸的启发和nbsp;很有效的找到全局最优值。 ;作为一个烟花爆炸,淋浴火花是nbsp;邻近区域所示。这些火花将与爆炸,并产生另一个显示,在一个较小的区域的火花。渐渐地,火星会在一个精细的空间里搜索整个解空间,并集中在一个小的地方去寻找最佳的解决方案;关键技术作为一种实用的优化算法,烟花算法可以满足三个用户的要求(强硬,&;价格,1997)。首先,荧光增白剂能 ;过程的线性,非线性和多模型试验功能。其次,荧光增白剂可以并行 ;为应对复杂的实际问题。第三,荧光增白剂具有良好的收敛性能 ;总能找到全局最小。
- 2022-03-20 02:10:57下载
- 积分:1
-
mps create
mps create
- 2022-12-22 10:50:03下载
- 积分:1
-
常用的C++语言计算的法源代码
C语言常用算法源代码-C language commonly used calculates the law origin code
- 2023-01-08 13:35:03下载
- 积分:1
-
清华大学2002年出版的《科学与工程数值计算算法VC++》配套源码,包括复数计算、矩阵运算、插值计算、线性非线性方程组求解、数值积分、数值拟和与逼近等算法和类,...
清华大学2002年出版的《科学与工程数值计算算法VC++》配套源码,包括复数计算、矩阵运算、插值计算、线性非线性方程组求解、数值积分、数值拟和与逼近等算法和类,对于科学和工程数值计算很有参考价值!-Qinghua University, in 2002 published "Science and engineering numerical algorithm VC++" complementary source, includes the plural, matrix computation, interpolation, linear solve nonlinear equations, numerical integration, and the proposed numerical approximation algorithms and other categories, science and engineering numerical computation of great reference value!
- 2022-01-25 16:31:39下载
- 积分:1