-
素数环: 把从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
-
IF97水和水蒸气性质计算C源码
水和水蒸汽作为一种重要工质,在电站热能动力工程上有着广泛的应用。德、俄、英、加等7国12位科学家组成的联合研究小组提出了一个全新水和水蒸汽计算公式,在1997年德国Erlanger召开的水和水蒸汽性质国际联合会(IAP WS)上通过并发表,称为IAPWS-IF97公式。根据IF97的文档,自己编写的C代码
- 2022-01-31 11:22:35下载
- 积分:1
-
区域三角网格生成工具
应用背景关键技术
- 2023-07-05 21:00:02下载
- 积分:1
-
QAM 星座
General constellation QAM algorithm is implemented.This function was tested with both MATLAB & Octave.
- 2022-04-06 13:06:53下载
- 积分:1
-
zoj 1015简单解法及证明!另附几道zoj题解法
1015虽然是到很简单的题,但这个算法巧妙的运用了数论中的一个小知识点,使得算法变得更快且更简单。简直让人拍手称快!
还有几道其他的zoj题。适合初学者的题。大牛们可以绕道。
- 2022-03-07 15:02:55下载
- 积分:1
-
GA-rbf神经网络
基于遗传算法的径向基神经网络matlab代码实现
- 2022-06-03 11:57:40下载
- 积分:1
-
全波形反演程序
本程序使用forten编写的,内容详细,可运行得到反演结果,解压后,主要程序在名为src的文件夹中,正演部分采用交错网格有限差分法,反演基于共轭梯度实现
- 2022-09-09 17:45:03下载
- 积分:1
-
VC迷宫代码
这是VC迷宫的代码,写的很整洁,非常的好,下载了即使可以用,声音什么的没有设置
- 2022-04-24 08:51:30下载
- 积分:1
-
通用GPU计算已经成为越来越受欢迎,因为GPU的多…
通用GPU计算越来越受欢迎了,原因在于GPU具有多个并行计算单元,这是在GPU上进行通用计算的CPP代码-General GPU computing has become increasingly popular because GPU with multiple parallel computing units, which are common in GPU computing on the CPP code
- 2023-03-15 04:30:04下载
- 积分:1
-
贝叶思网络分类规则例程
贝叶思网络分类规则例程-Bayesian Network Classification Rule tutorial
- 2022-04-10 19:55:02下载
- 积分:1