-
素数环: 把从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
-
Gauss column principle eliminate for bankdialog systems
Gauss column principle eliminate for bankdialog systems
- 2022-04-30 16:38:20下载
- 积分:1
-
提取汉字首字母
c++实现的查找汉字拼音首字母的算法demo,开用于方便通过首字母检索汉字
- 2022-07-20 07:36:35下载
- 积分:1
-
飞思卡尔实现PID算法
应用背景飞思卡尔单片机,用于稳定参数,在很多程序上都可以使用。我们参加过飞思卡尔智能车大赛,使用的程序,这里的程序是对参加比赛的程序的升级版。稳定性十分的不错关键技术PID算法是一个传统工业上使用的普遍的用法,在稳定性上有十分好的应用,可以实现温度的控制和调节,在速度的控制上也没有任何问题
- 2022-01-22 14:33:58下载
- 积分:1
-
一款工程FFT的计算,包括非常详细的开发文档。
里面有经典的关于复数的算法。...
一款工程FFT的计算,包括非常详细的开发文档。
里面有经典的关于复数的算法。-FFT calculation of a project, including the development of very detailed documentation. There are classic on the complex algorithms.
- 2022-01-28 08:41:28下载
- 积分:1
-
用希尔算法实现的排序
用希尔算法实现的排序-Hill with the ranking algorithm
- 2023-08-15 22:05:03下载
- 积分:1
-
一个非常著名的数学建模(模拟)问题
一个很著名的数学建模(数学仿真)问题-小吃店服务问题的Matlab求解程序-a very famous mathematical modeling (Simulation) issue-service snack of Matlab procedures
- 2022-07-18 12:03:12下载
- 积分:1
-
径向基神经网络源代码
this is an example demonstrating the Radial Basis Function,if you select a RBF that supports it (Gausian, or 1st or 3rd order polyharmonic spline), this also calculates a line integral between twopoints.
- 2022-02-14 22:25:54下载
- 积分:1
-
Eular法解分数阶微分方程,分数阶导数定义系数通过fourier法计算,阶数a变化...
Eular法解分数阶微分方程,分数阶导数定义系数通过fourier法计算,阶数a变化-eular method of fractional differential equations, fractional derivative coefficient defined by fourier law, order a change
- 2022-01-22 04:00:39下载
- 积分:1
-
埃尔米特
埃尔米特-高斯求积法的c源程序-Hermite- Gaussian quadrature law c source
- 2023-01-24 04:20:04下载
- 积分:1