-
素数环: 把从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
-
数值计算中Jacobi迭代法的Matlab程序
数值计算中Jacobi迭代法的Matlab程序 -numerical calculation Jacobi iteration of the Matlab program
- 2022-10-09 22:10:03下载
- 积分:1
-
FP增长频繁项集挖掘
资源描述FP-growth算法是一个程序来发现频繁项集(关闭和最大以及发电机)与FP-growth算法(频繁模式增长[韩等。2000),表示事务数据库的前缀树,这是加强与链接,组织节点到列表中指同一项目。搜索是通过突出的前缀进行的树,递归地工作结果,并修剪原始树。实施还支持封闭和过滤最大项目集有条件项集库在[ 2003 ]格兰恩和朱,虽然在程序中使用的方法不同于它采用自顶向下的前缀树而不是FP树。它不包括FP树的巧妙的实现两个整数数组作为[ 2004 ] rasz建议。自版本与6上面所用的程序也可以用来查找关联规则。
- 2023-04-11 15:50:04下载
- 积分:1
-
compiler principles of regular
编译原理中的正则式匹配算法-compiler principles of regular-matching algorithm
- 2022-02-24 20:36:43下载
- 积分:1
-
FCM matlab
遗传算法,可应用于图像处理等领域,英文名称为Genetic Algorithm,是一种非常经典的方法,该matlab程序为原创程序,简易清晰明了,标注得当,采用文件包,内含代码以及遗传算法的报告说明及几个论文,供学习交流。
- 2022-05-31 06:26:52下载
- 积分:1
-
花园的代码
定义一个图书类和一个书库类。图书类包括图书编号、书名、作者(只考虑第一作者)、定价等属性;书库类包括一个指向图书链表的头指针以及操作链表的相关函数。这两个类的定义如下:
class Book
{
int BookNumber; //图书编号
char BookName[50]; //书名
char AuthorName[30]; //第一作者姓名
double Price; //定价
Book *next; //
- 2022-06-30 21:50:34下载
- 积分:1
-
数值计算中的Doolittle分解法(含有紧凑方式的解法),是用VC++编写的...
数值计算中的Doolittle分解法(含有紧凑方式的解法),是用VC++编写的-numerical calculation of Doolittle decomposition (containing a compact form of solution), VC++ prepared
- 2022-02-16 09:39:00下载
- 积分:1
-
遗传算法程序均匀交叉,变异操作
采用二进制Gray编码,采用基于轮盘赌法的非线性排名选择, 均匀交叉,变异操作,而且还引入了倒位操作!
- 2022-06-01 12:10:32下载
- 积分:1
-
用C++生成C/A码
C/A码信号属于伪随机噪声(PRN,Pseudo-random
Noise)码系列。C/A码是长度为1023的G码(Gold
- 2022-03-25 10:34:49下载
- 积分:1
-
数值算法,二分搜索演示
数值算法,二分搜索演示-numerical algorithm, two hours search demonstration
- 2022-03-01 08:49:08下载
- 积分:1