-
素数环: 把从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
-
卡尔曼滤波算法,卡尔曼滤波算法及其实现。C语言…
Kalman滤波器,卡尔曼滤波器算法说明及其实现。C语言编写的函数,可以直接调用。-Kalman filter, the Kalman filter algorithm note and its realization. C language function can be called directly.
- 2022-03-02 16:16:48下载
- 积分:1
-
HuffmanTree
定义HuffmanTree的数据结构(二叉树),实现输入一组数据后自动生成HuffmanTree。提供HuffmanTree的层次遍历算法。
- 2022-02-20 04:35:14下载
- 积分:1
-
sift算法源码实现
sift算法的C++实现。需要配置opencv库。配置完后就能直接运行了。里面包含了特征点检测,特征点滤除,图像拼接融合。opencv版本需要2.3.0以上。程序调成已经成功。
- 2023-06-22 09:55:05下载
- 积分:1
-
2007年全国大学生数学建模竞赛A题全国二等奖优秀论文
2007年全国大学生数学建模竞赛A题全国二等奖优秀论文-2007 National Undergraduate Mathematical Contest in Modeling A title of the National Award for best second-class papers
- 2022-04-07 18:10:56下载
- 积分:1
-
轻松学c++
里面包括了c++的各章的教程和网址内容,可以从很基础的讲起,包括了安装,感受,经典篇,还有就是各种函数,安装库,比如:SDL,xsd,gSOAP,codeblocks的配置等。。。
- 2022-02-26 16:51:08下载
- 积分:1
-
labVIEW实现e的计算
资源描述本程序是基于LabView编程算法中的G语言(图形化编程)来实现e的计算。This program calculate e based on LabView.
- 2023-04-23 18:45:03下载
- 积分:1
-
A*算法 最优寻路算法
///////////////////////////////////////////////////////////
// A*算法 最优寻路算法
// 算法是一种静态路网中求解最短路最有效的算法
// 1)公式表示为: f(n)=g(n)+h(n),
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-04-18 00:37:18下载
- 积分:1
-
C#下的矩阵计算方法,从Japack该过来的,已经试用过,很好用.
C#下的矩阵计算方法,从Japack该过来的,已经试用过,很好用.-under the matrix method, up from the Japack, has been tested and is useful.
- 2022-01-26 01:31:37下载
- 积分:1
-
Linear least square method. X with a general power series to fit.
线形最小二乘法拟合。用一个一般的X的幂级数来拟合。-Linear least square method. X with a general power series to fit.
- 2022-01-28 21:21:18下载
- 积分:1