您好,欢迎光临本网站![请登录][注册会员]  

搜索资源列表

  1. 用C++代码来实现n皇后问题以及利用回溯思想,按照棋盘格式输出

  2. 用回溯思想求解N皇后问题 #ifndef _POINT_H #define _POINT_H class Queen { friend int nQueen(int n); private: bool Place(int k); void Backtrack(void); int n; int *x; long sum; }; #endif
  3. 所属分类:C++

    • 发布日期:2010-11-12
    • 文件大小:2048
    • 提供者:yakimin
  1. 数据结构算法演示 动态演示数据结构算法执行过程的辅助教学软件, 它可适应读者对算法的输入数据和过程执行的控制方式的不同需求

  2. 本课件是一个动态演示数据结构算法执行过程的辅助教学软件, 它可适应读者对算法的输入数据和过程执行的控制方式的不同需求, 在计算机的屏幕上显示算法执行过程中数据的逻辑结构或存储结构的变化状况或递归算法执行过程中栈的变化状况。整个系统使用菜单驱动方式, 每个菜单包括若干菜单项。每个菜单项对应一个动作或一个子菜单。系统一直处于选择菜单项或执行动作状态, 直到选择了退出动作为止。 1. 顺序表 (1)在顺序表中插入一个数据元素(ins_sqlist) (2)删除顺序表中一个数据元素(del_sqlis
  3. 所属分类:其它

  1. java实现回溯法求八皇后并打印

  2. 通过回溯算法实现八皇后所有情况,并显示出所有情况的皇后排列位置
  3. 所属分类:其它

    • 发布日期:2010-11-21
    • 文件大小:2048
    • 提供者:adg456jljlx
  1. eight Queen

  2. CQueen::CQueen(int row) { m_bRuning = false; m_piSaveQPlace = NULL; m_pGridBitmap = NULL; m_pPlaceList = NULL; SetRow(row); m_iNowCol = 0; }
  3. 所属分类:其它

  1. Pearls of discrete mathematics

  2. Pearls of discrete mathematics Pearls of discrete mathematicsPearls of discrete mathematicsPearls of discrete mathematicsPearls of discrete mathematicsPearls of discrete mathematicsPearls of discrete mathematicsPearls of discrete mathematicsPearls o
  3. 所属分类:专业指导

    • 发布日期:2010-12-25
    • 文件大小:1048576
    • 提供者:zjyivad
  1. 数据结构 课程设计 N皇后问题 源代码 C/C++

  2. 绝对可以实现 /*This program tests the eight queens algorithm. Eight queens is a classic chess problem in which eight queens are placed on a standard chessboard in positions such that no queen can capture another queen. Wrightten by: Date: */ #include //us
  3. 所属分类:C

    • 发布日期:2011-01-08
    • 文件大小:4096
    • 提供者:fanfan880915
  1. kmeans聚类算法

  2. K-均值聚类(K-means clustering)是Mac Queen提出的一种非监督实时聚类算法,在最小化误差函数的基础上将数据划分为预定的类数K。
  3. 所属分类:软件测试

    • 发布日期:2011-03-19
    • 文件大小:24576
    • 提供者:zhangna419314
  1. 求第1500个只有2,3,5因子的数

  2. 设计一个队列用来存放1500个只有2,3,5因子的数 将第一个数送人队列中,即queen[0]=1; 设置三个指针p2 p3 p4开始指向queen[0] 找出p2,p3,p5所指向的数分别于2,3,5相乘后的最小值 2*queen[p2],3*queen[p3],5*queen[p5]中的最小数放入队尾 循环1499次即可 注意:有相等的情况如 (queen[p2]=3,queen[p3]=3,queen[p5]=1)2*queen[p2]=2*3;3*queen[p3]=3*2; 只入队一
  3. 所属分类:C/C++

    • 发布日期:2011-05-17
    • 文件大小:1024
    • 提供者:yzc_1988
  1. n皇后图形化程序算法分析与设计

  2. 该程序是算法分析与设计里的n皇后处理程序,该程将n皇后图形化void backtrace(int queen[],int N) { int i, j, k; cout<<"★为皇后放置位置\n"; for (i=1;;) { //首先安放第1行 if(queen[i]<N) { //皇后还可调整 k=0; //检查与第k个皇后是否互相攻击 while(k<i&&abs(queen[k]-queen[i])&&(abs(queen[k]-queen[i])-abs(k-i
  3. 所属分类:C/C++

    • 发布日期:2011-06-19
    • 文件大小:1024
    • 提供者:wrf150
  1. DSDemo 数据结构

  2. 功能简介 本课件是一个动态演示数据结构算法执行过程的辅助教学软件, 它可适应读者对算法的输入数据和过程执行的控制方式的不同需求, 在计算机的屏幕上显示算法执行过程中数据的逻辑结构或存储结构的变化状况或递归算法执行过程中栈的变化状况。整个系统使用菜单驱动方式, 每个菜单包括若干菜单项。每个菜单项对应一个动作或一个子菜单。系统一直处于选择菜单项或执行动作状态, 直到选择了退出动作为止。 系统内容 本系统内含84个算法,分属13部分内容,由主菜单显示,与《数据结构》教科书中自第2章至第11章中相对应
  3. 所属分类:C/C++

    • 发布日期:2011-06-21
    • 文件大小:3145728
    • 提供者:HONDELY
  1. N皇后问题的汇编程序

  2. N皇后问题的32位汇编代码 注意:N>13时的解已经要跑1分钟以上了,不用轻易尝试..
  3. 所属分类:专业指导

    • 发布日期:2011-07-17
    • 文件大小:4096
    • 提供者:jacklyne
  1. 八皇后问题

  2. package bia.arithmetic; import java.util.Date; /** * @author Administrator * * To change this generated comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class EightQueen { Queen[] stack = new Queen[8];
  3. 所属分类:Java

    • 发布日期:2006-02-23
    • 文件大小:9216
    • 提供者:chenxh
  1. 学习数据结构算法必备

  2. 数据结构算法演示 1. 顺序表 (1)在顺序表中插入一个数据元素(ins_sqlist) (2)删除顺序表中一个数据元素(del_sqlist) (3)合并两个有序顺序表(merge_sqlist) 2. 链表 (1)创建一个单链表(Crt_LinkList) (2)在单链表中插入一个结点(Ins_LinkList) (3)删除单链表中的一个结点(Del_LinkList) (4)两个有序链表求并(Union) (5)归并两个有序链表(MergeList_L) (6)两个有序链表求交(List
  3. 所属分类:C/C++

    • 发布日期:2011-12-04
    • 文件大小:3145728
    • 提供者:wc900703
  1. N-queen 八皇后

  2. 一个效率一般的用回溯算法解决的八皇后问题
  3. 所属分类:C++

    • 发布日期:2012-01-10
    • 文件大小:32768
    • 提供者:onlyfunboy
  1. 1470个JS特效

  2. 仲夏夜--js特效--21点游戏 [removed][removed] **************** ********** *********** ************ ************* ************** [removed] [removed] *************** 设为首页 [removed][removed] [removed][removed] [removed] <
  3. 所属分类:.Net

  1. 八皇后 c语言实现 递归 回溯

  2. c语言实现的八皇后,采用的是递归回溯法 int main() { short int queen[MAX+1][MAX+1]; memset(queen,0,sizeof(queen)); eightqueen(1,queen); printf("共有%d种棋盘的摆放方式\n",count); return 0; }
  3. 所属分类:C

    • 发布日期:2012-04-04
    • 文件大小:1024
    • 提供者:sweetlove234
  1. C# 解决八皇后问题

  2. using System; using System.Collections.Generic; using System.Text; namespace eightQ { class Program { //定义棋盘大小 static int size = 8; static void Main(string[] args) { DateTime time = DateTime.Now; //定义棋盘数组 int []queen=new int[size+1]; //定义bool变量判断处理是
  3. 所属分类:C#

    • 发布日期:2012-04-20
    • 文件大小:4096
    • 提供者:hailianren
  1. 蚁后算法 智能计算 算法 优化方法

  2. 智能计算的蚁后算法 自创A queen ant is an adult, reproducing female ant in an ant colony; generally she will be the mother of all the other ants in that colony. Some female ants do not need to mate to produce offspring, reproducing through asexual parthenogenes
  3. 所属分类:专业指导

    • 发布日期:2012-06-02
    • 文件大小:1048576
    • 提供者:liyanlin2011
  1. 多皇后皇后问题

  2. 代码,解决n皇后问题 void Queen::Backtrack(int t) { if (t>n) //达到叶结点 {sum++; cout<<"one answern is:"<<endl; for(int i=1;i<n+1;i++) { cout<<x[i]<<endl; } } else for (int i=1;i<=n;i++) { //搜索子结点 x[t]=i; //进入第i个子结点 if (Place(t))
  3. 所属分类:C/C++

    • 发布日期:2012-07-17
    • 文件大小:1024
    • 提供者:dengshizhuo
  1. 显示纸牌完整解决方案

  2. 部分代码如下: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace c837 { public class Card { public enum Suits837 { 黑桃, 红桃, 草花, 方块 } public enum Values837 { Ace, Two, Three, Four, Five, Six, Seven, Eight, Nine,
  3. 所属分类:C/C++

    • 发布日期:2012-11-06
    • 文件大小:78848
    • 提供者:reachedmypeak
« 1 2 34 5 6 7 »