-
素数环: 把从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++BUILDER时,类别不能选择,故我都选为VC&C++,实际都是C++BUILDER...
非常快的字符搜索算法。注:上传时,不知为何当开发语言选为C++BUILDER时,类别不能选择,故我都选为VC&C++,实际都是C++BUILDER -characters very fast search algorithm. Note : uploads, I wonder why, when the C programming language elected BUILDER, the category is not an option, so I have elected to VCC, is the actual C BUILDER
- 2022-03-25 14:59:46下载
- 积分:1
-
是和“常用的计算机数值算法和程序的C++版本,和Q ..
是《计算机常用数值计算算法与程序 C++版》一书的配套C++程序源代码文件,每个源程序文件的文件扩展名都使用.cpp形式。这些C++程序已经在微软公司Windows 平台下的Virsual C++ 6.0环境下通过-is "commonly used computer numerical algorithms and procedures C version," a book supporting the C source code file, the source files extensions are used. Cpp form. These procedures have been in C Microsoft Windows platform under the Virsual C 6.0 environment through
- 2022-05-29 11:24:03下载
- 积分:1
-
VC7 MFC正则D
vc7 MFC regular d
- 2023-06-10 23:50:03下载
- 积分:1
-
fft111算法实现通过对相应参数的人机界面对话输入绘制出相应的采样图及频谱图
fft111算法实现通过对相应参数的人机界面对话输入绘制出相应的采样图及频谱图-fft111 algorithm corresponding parameters of the man-machine interface dialogue draw the corresponding input sampling plan and the spectrum
- 2022-02-05 00:18:30下载
- 积分:1
-
九维的卡尔曼滤波跟踪算法,包括xyz三方向和各方向的位置,速度,加速度。...
九维的卡尔曼滤波跟踪算法,包括xyz三方向和各方向的位置,速度,加速度。-Nine-dimensional Kalman filter tracking algorithm, including the three xyz direction and the location of the direction, velocity, acceleration.
- 2022-04-18 23:39:23下载
- 积分:1
-
简要的Gauss列主元消去法,很实用,用matlab实现,还有一个图例,程序说明很详细...
简要的Gauss列主元消去法,很实用,用matlab实现,还有一个图例,程序说明很详细-brief Gauss main-element elimination, very practical, using Matlab to achieve, there is a legend, a very detailed description of the procedures
- 2023-03-17 03:50:03下载
- 积分:1
-
一个方便的求积分的类
一个方便的求积分的类-a convenient points for the category
- 2022-04-08 11:00:35下载
- 积分:1
-
一种具有加、减、乘、除的能力。
A Fraction class that has the ability to add, subtract,multiply and divide .
- 2022-06-15 09:12:17下载
- 积分:1
-
Dialog自适应屏幕分辨率
子控件自适应窗口大小的改变 对所有需要改变窗口大小的Dialog提供调用接口 * @方法功能: 子控件自适应窗口大小的改变 * @参数介绍: -hWnd:要缩放的Dialog的窗口句柄,可在Dialog中通过GetSafeHwnd()方法获得; -typeFlag: 缩放标志,其可能取值如下:0表示原始大小(缺省),1最大化,2按照times的值放大或缩小一定倍数后居中。 -times : Dialog的放大倍数,缺省值为1.0,只有当typeFlag值为2时才有效 * @返回值:FALSE表示传入的第一个参数hWnd=NULL,否则返回TRUE; * @注意事项: -1、所有子控件的大小是按照原来的Dialog同比例进行放大,以免放大后失真 -2、放大后如果窗口大小超过显示器可用区域(除去任务栏),会自动调整使得窗口最大化但是长和宽的比例扔保持不变,以免失真 -3、放大后所有的子控件的字体采用的是系统默认字体,所有字体大小是放大后的统一大小 -4、当typeFlag=2&×
- 2022-03-11 14:18:59下载
- 积分:1