-
素数环: 把从1到10这10个数摆成一个环,要求相邻的两个数的和是一个素数。 〖问题分析〗 这是一道回溯的题目。从1开始,每个空位有9种可能,每种可能加入约束...
素数环: 把从1到10这10个数摆成一个环,要求相邻的两个数的和是一个素数。 〖问题分析〗 这是一道回溯的题目。从1开始,每个空位有9种可能,每种可能加入约束条件即可
1.与前面所有的数不重复
2.与前一个数和为素数(最后一个和第一个也要满足)。 〖算法流程〗 1、数据初始化; 2、递归填数: 判断第J种可能是否合法; A、如果合法:填数;判断是否到达目标(10个已填完): 是,打印结果;不是,递归填下一个; B、如果不合法:选择下一种可能;-Prime Central: 1-10 from 10 the number of put this into a ring, asked the two adjacent numbers and is a prime number. 〗 〖Analysis is a retrospective this topic. From 1 year, 9 out of every space possible, each may be bound by the conditions of accession to 1. And in front of all the number of non-repetition, 2. With a few and for a prime number (the last and the first to meet). 1〗 〖algorithm processes the data to initialize 2, fill in the number of recursion: first to determine the legality of J possible A, if the legitimate: the number of Reclamation to determine whether the target (10 have been completed): Yes, print the results of not, fill in the next recursive B, if not legitimate: a possible alternative
- 2022-03-13 12:39:07下载
- 积分:1
-
遗传算法的代码
附加的文件是由 Java 语言实现的遗传代码。这是个不错的做法,为遗传算法。请参阅原始网页链接的进一步信息或疑问。
- 2022-02-11 21:45:12下载
- 积分:1
-
一个显示水波型曲面的工程,需要glut
一个显示水波型曲面的工程,需要glut
-show a wave-surface project requires glut
- 2023-06-04 10:55:02下载
- 积分:1
-
奇异值分解
奇异值分解的C++程序。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
- 2022-07-04 09:41:55下载
- 积分:1
-
近似方法
有一个函数,你只需要按照源代码中的说明和近似你想要的
- 2022-02-13 14:31:45下载
- 积分:1
-
基于粒子群算法的PID控制器优化设计
基于粒子群算法的PID控制器优化设计,本程序主要研究基于粒子群算法控制系统PID参数优化设计方法以及对PID控制的改进。选择控制系统的目标函数,本控制系统选用时间乘以误差的绝对值,通过对控制系统的逐步仿真,对结果进行分析
- 2023-02-09 12:10:03下载
- 积分:1
-
BP神经网络的逼近函数源代码 数学建模
BP神经网络的逼近函数源代码 数学建模-BP neural network approximation function of the source code for mathematical modeling
- 2023-01-09 08:40:04下载
- 积分:1
-
米缸问题用队列求解
米缸问题用队列求解-guaranteed to solve the problem with Queue
- 2023-08-02 07:15:03下载
- 积分:1
-
最小二乘反褶积程序,原代码已编译,可以…
最小平方反褶积程序,原代码,已经编译过了,直接可以应用-least squares deconvolution procedure, the original code has been compiled, can be applied directly
- 2023-06-13 18:10:03下载
- 积分:1
-
功能:返回参数x 的平方根值
功能:返回参数x 的平方根值-function : to return to the square root of x parameter values
- 2022-03-07 17:13:07下载
- 积分:1