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

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

于 2022-02-06 发布 文件大小:55.93 kB
0 238
下载积分: 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 个回复

  • 一款埃及学生用Matlab编的的基于PSO的PID整定程序
    一款埃及学生用Matlab编的的基于PSO的PID整定程序,使用方法详见程序注释。-Tunning of PID controllerusing Bacterial Foraging Orientec by Particle swarm optimization My work hasbeen accpepted in GECCO 2008 as Graduat Student workshop. I have used thistechique in PID tunning and i got better result thatn BG and PSO Author: WaelMansour (wael192@yahoo.com) MSc Student, Electrical Enginering Dept, Faculty ofEngineering Cairo University, Egypt
    2022-01-22 02:28:21下载
    积分:1
  • 数值计中SOR迭代的Matlab程序
    数值计算中SOR迭代法的Matlab程序-numerical calculation SOR iteration of the Matlab program
    2022-04-17 10:44:51下载
    积分:1
  • 模糊controlorer基于Excel
    2022-01-30 10:16:25下载
    积分:1
  • 表时间表
    类调度系统-c + +描述: 我想要在这里分享我在 c + + 版本中的调度系统,该系统是仅 8 模块 (书记官长、 平地机、 控制器、 调度程序、 检查/评税主任、 收集器/收银员、 管理员和 Web 成绩单) 组成的我高中招生制度的一部分。该系统涵盖学校、 高中或大学的时间表。它使用一种快速、 高效的排课算法。这能力展示厅的时间表,节计划、 教员日程,并可以建议房间可用性和教员可用性通过图形化的方式显示。这是一个演示系统因此不指望所有的功能可以完全使用。请跌至免费使用,请不要忘记为注释"谢谢你"如果你发现我的系统对你有用的......但是,如果你认为它是理所当然。也许我会采取一些措施来删除这篇文章 =)
    2022-02-04 06:17:30下载
    积分:1
  • 求解非线性方程组的一组源代码,FORTRAN90.用于解决N个未知数,N
    求解非线性方程组的一组源代码,FORTRAN90.用于解决N个未知数,N-1个方程.-Solving nonlinear equations of a set of source code, FORTRAN90. For settlement of N unknown, N-1 equations.
    2023-03-13 04:40:03下载
    积分:1
  • 对于无约束问题,给出的共轭梯度,内涵多个函数实例
    对于无约束问题,给出的共轭梯度法,内涵多个函数实例-For the unconstrained problem, given by the conjugate gradient method, the connotation of a number of examples of function
    2022-06-19 20:03:59下载
    积分:1
  • 一个很小的程序,可以进行字符串比较,适合初学者学习,很容易读懂的
    一个很小的程序,可以进行字符串比较,适合初学者学习,很容易读懂的-a small procedure can be carried out strings, for beginners to learn, it is easy to understand the
    2023-02-23 19:15:03下载
    积分:1
  • 用有限元求解三角形形区域上的Possion方程
    用有限元法求解三角形形区域上的Possion方程-using the finite element method triangle-shaped region of Possion equation
    2022-02-25 07:52:26下载
    积分:1
  • 合成分析和信度检验
    首先是多部数据的融合及对这些数据进行的分析,其次是数据的置信度检验,在数据处理与绘图过程中非常有用
    2023-05-21 08:45:03下载
    积分:1
  • mumford source coode
    mumford source coode-mumford source coode........
    2023-04-14 06:15:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载