-
素数环: 把从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 代码,里面有详细讲解的pdf文件,并且程序有具体实例的运行结果,很好理解哦
- 2022-02-04 14:34:58下载
- 积分:1
-
C++登录注册系统
C++开发 实现登录 注册功能
USER user[Max];
char Admin[20]="administrator";
int count;
int chance;
void menu();
void User_admin(char name[],char pw[]);
void User_common(char name[],char pw[]);
void Saved();
int flag;
void Inithtable()
{
for(int i
- 2022-02-26 15:34:43下载
- 积分:1
-
VC++ ECC
本文档提供了基于openssl的ECDSA算法实现 提供了密钥对生成,签名,验签,获得椭圆曲线的值,设置椭圆曲线的值等接口。
- 2022-04-19 03:42:43下载
- 积分:1
-
用动态规划解矩阵连乘问题
用动态规划解矩阵连乘问题-use dynamic programming solution matrix continually multiply problems
- 2022-07-01 22:07:17下载
- 积分:1
-
ben wenjian shi tongguo yong cbainxie chengxuo
ben wenjian shi tongguo yong cbainxie chengxuo-ben wenjian shi tongguo yong cbainxie Rezeption gxuo
- 2022-01-26 08:32:48下载
- 积分:1
-
Apriori 数据挖掘算法 源码
Apriori算法是一种最有影响的挖掘布尔关联规则频繁项集的算法。其核心是基于两阶段频集思想的递推算法。该关联规则在分类上属于单维、单层、布尔关联规则。在这里,所有支持度大于最小支持度的项集称为频繁项集,简称频集。
是:首先找出所有的频集,这些项集出现的频繁性至少和预定义的最小支持度一样。然后由频集产生强关联规则,这些规则必须满足最小支持度和最小可信度。然后使用第1步找到的频集产生期望的规则,产生只包含集合的项的所有规则,其中每一条规则的右部只有一项,这里采用的是中规则的定义。一旦这些规则被生成,那么只有那些大于用户给定的最小可信度的规则才被留下来。为了生成所有频集,使用了递归的方法。
- 2022-02-06 22:22:07下载
- 积分:1
-
It is the DOS environment to develop a mathematical calculation software, the ma...
它是在DOS环境下开发的数学计算软件,菜单中主要的一种是“有限元法”,使用的编程语言是C语言,解压无需密码。-It is the DOS environment to develop a mathematical calculation software, the main menu is a "finite element method", the use of the C programming language is the language, extract no password is required.
- 2023-01-04 08:40:03下载
- 积分:1
-
浮点转换器,可以对十进制定点数、浮点BCD码和二进制浮点操作数之间进行相互转换。...
浮点转换器,可以对十进制定点数、浮点BCD码和二进制浮点操作数之间进行相互转换。-float converters, and can set the decimal points. BCD floating-point and binary floating-point operation between several mutual conversion.
- 2023-06-13 08:20:04下载
- 积分:1
-
感知器的demo,批处理模式识别作业type.typically有用
感知机算法演示程序,批处理。用于模式识别课程作业-perceptron demo,batch type.typically useful to Pattern Recognition homework
- 2023-04-16 14:05:04下载
- 积分:1