登录
首页 » 算法 » 回溯法解N后的C++源码(Visual Stdio2010环境测试通过)

回溯法解N后的C++源码(Visual Stdio2010环境测试通过)

于 2022-02-06 发布 文件大小:55.93 kB
0 138
下载积分: 2 下载次数: 1

代码说明:

#include #include #include #include using namespace std;class Queen{ friend int nQueen(int);private: bool Place(int k); void Backtrack(int t); void Output(); int n,//皇后个数  *x;//当前解 long sum;//当前已找到的可行性方案数};bool Queen::Place(int k){ for (int j=1;jn) {  sum++;  Output(); } else {  for (int i=1;i

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • ZOJ ACM题目解答
    这个是我在CSDN上下载的一个源码,这个比较有意义,很多东西可以自己一步步理解,有利于大家掌握ACM的一些技巧和解题思路,希望对大家有帮助
    2023-04-24 07:30:04下载
    积分:1
  • 统计方面的程序,c编译
    统计方面的程序,c编译-statistical procedures, c compiler
    2022-07-28 07:07:12下载
    积分:1
  • 对公司的主要宗旨的实现计组件和功能…
    运算器部件的实现和功能 主要为学习计算机组成原理的同学 提供-computing components and functions of the realization of the main tenets of computer components provide students
    2022-07-08 04:45:12下载
    积分:1
  • A5的实现(使用C语言)
    实现A5算法的加密与解密程序,是源代码程序希望对大家有帮助~亲测有效
    2022-03-31 07:25:57下载
    积分:1
  • CAD二次开发
    caD中相同图形去除,去除重复数据获取不重复数据
    2022-02-06 18:43:45下载
    积分:1
  • 本程序是用matlab遍写 有很强的实用性
    本程序是用matlab遍写 有很强的实用性-this procedure is used Matlab times was a strong practicality
    2023-01-28 09:10:03下载
    积分:1
  • 离散分数傅里叶变换的matlab程序
    分数傅里叶变换的离散算法的matlab程序-Discrete fractional Fourier transform algorithm matlab program
    2022-01-26 05:38:52下载
    积分:1
  • counting procedures arbitrary point FFT and Wavelet Transform, and the choice of...
    程序算任意点FFT和小波变换,以及可选择多种小波及小波变换后的单频带重够,另算信号的Lipschitz指数,高级数字信号处理!-counting procedures arbitrary point FFT and Wavelet Transform, and the choice of multiple wavelet and the wavelet transform of a single-band heavy enough, and another count signal Lipschitz index advanced digital signal processing!
    2022-01-26 06:55:11下载
    积分:1
  • TSP的蚁群
    从一个网站借得了它了。在这篇文章中,我们研究解决知名旅行推销员的可能性问题 (TSP),它的范围之间 NP 难问题,并提供一种实现理论一些用于解决这一问题的方法的概述。蚁群算法优化 (ACO),其中属于集团的进化技术和提出了求解 tsp 问题的蚁群算法应用程序中使用的方法。我们考虑研究的影响通过实施这种算法的一些控制参数。它基本上是一个基于 GUI 代码和 alos 它可以采取 TSP 或它的页可以甚至随机生成它提供几个参数给出。
    2023-04-08 15:10:03下载
    积分:1
  • 把整数华氏温度转换成浮点数摄氏温度,精确到三位数字
    把整数华氏温度转换成浮点数摄氏温度,精确到三位数字-put into Fahrenheit temperature float Celsius temperature, accurate to three figures
    2022-01-25 14:02:25下载
    积分:1
  • 696518资源总数
  • 105678会员总数
  • 22今日下载