-
素数环: 把从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
-
Matlab calculations prepared by the fluid and heat transfer procedures
matlab编写的流体计算和传热程序-Matlab calculations prepared by the fluid and heat transfer procedures
- 2022-03-04 01:58:33下载
- 积分:1
-
邻结表存储的无向图的建立及遍历输出(包括深度优先与广度优先搜索)...
邻结表存储的无向图的建立及遍历输出(包括深度优先与广度优先搜索)- The neighbour ties the table to save non- (first first searches
to the chart establishment and the calendar output including depth
with breadth)
- 2022-04-27 05:15:49下载
- 积分:1
-
一个简单的计算器,用MATLAB开发
一个简单的计算器,用MATLAB开发-a simple calculator, developed using MATLAB
- 2022-11-30 20:30:08下载
- 积分:1
-
行列式计算,基本的行列式的运算都实现了而且可以任意阶运算,不过阶数太高会影响速度...
行列式计算,基本的行列式的运算都实现了而且可以任意阶运算,不过阶数太高会影响速度-determinant calculation, the basic determinant of the computing is achieved can be arbitrary order operation, but the order will affect the speed is too high
- 2022-10-28 05:05:04下载
- 积分:1
-
平方米面积的计算
这个程序允许您在 c + + 控制台模式中正方形的面积计算。
- 2023-08-31 03:40:03下载
- 积分:1
-
GenTrigonometrixFuncSet:产生三角函数转换表的代码.
GenTrigonometrixFuncSet:产生三角函数转换表的代码.
- 2022-03-14 06:32:02下载
- 积分:1
-
平面导线网、水准网平差系统
应用背景平面导线网,高程网数据平差系统,包含完整的数据录入,平差过程,以及成果输出。非常适合测绘专业技术人员借鉴使用。关键技术vb 自由网平差 约束平差 等多种平差算法,对高程网观测数据以及平面导线网观测数据进行平差处理。
- 2023-07-20 23:50:04下载
- 积分:1
-
基于VS2010心电信号处理
资源描述本实例用VS2010编写一个界面,用于读取心电信号,读取心电信号之后,对信号进行相关的处理,处理之后在界面上实时动态显示心电波形。同时还有登录信息设置。
- 2022-03-05 02:26:40下载
- 积分:1
-
我们的计算方法作业 线性方程组的Gauss消元法(不选主元法)算法实现...
我们的计算方法作业 线性方程组的Gauss消元法(不选主元法)算法实现-our method of calculating operating linear equations Gauss elimination method (Pivot) Algorithm
- 2023-01-29 18:45:03下载
- 积分:1