-
素数环: 把从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
-
排序算法模板实现
#include
#include
using namespace std;
#define SELECTSORT 1
#define INSERTSORT 1
#define BUBBLESORT 1
#define SHELLSORT 1
#define QUICKSORT 1
#define MERGESORT 1
template
- 2022-04-24 16:36:42下载
- 积分:1
-
FFT
详细讲解了FFT的原理,使一些基础知识,不过还是非常实用的-FFT
- 2022-06-27 21:19:02下载
- 积分:1
-
Fano decoder
该软件包包括编码器和软判决序贯K = 32,率 1/2 卷积码的译码器。解码器使用Fano 算法。
- 2022-06-30 07:13:18下载
- 积分:1
-
EOCSO
- 2022-03-31 15:48:24下载
- 积分:1
-
含有7种排序算法
含有7种排序算法-Includes 7 sorts of sorting algorithm
- 2023-05-05 13:45:03下载
- 积分:1
-
svpwm code
资源描述 svpwm的核心算法部分,可以借此扩展出自己的FOC算法
- 2022-12-16 08:10:03下载
- 积分:1
-
本程序为7HC595的驱动程序,为初学者掌握SPI时序给予很大帮助。...
本程序为7HC595的驱动程序,为初学者掌握SPI时序给予很大帮助。-This procedure for 7HC595 driver, SPI master timing for beginners to give great help to me.
- 2022-06-16 19:20:53下载
- 积分:1
-
八路抢答器
library IEEE; --库说明
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_ARITH.ALL;
USE IEEE.STD_LOGIC_UNSIGNED.ALL;
entity bldzqdqwcb is
Port ( clr: in STD_LOGIC; ----qing 0
clk,button0: in STD_LOGIC; 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-03-25 18:55:58下载
- 积分:1
-
调度遗传算法
该程序解决使用遗传算法技术的调度问题
- 2022-06-21 01:48:53下载
- 积分:1