-
八皇后VC图形演示,算法思想:回溯法,先在第1行放上一个皇后,然后在第2行合适的位置放上一个皇后,依次类推,如果8行都放满了,说明找到了一个解,如果第好第i行的...
八皇后VC图形演示,算法思想:回溯法,先在第1行放上一个皇后,然后在第2行合适的位置放上一个皇后,依次类推,如果8行都放满了,说明找到了一个解,如果第好第i行的皇后后,第i+1行找不到合适的位置,这时就回到第i行,把第i行的皇后放到下一个位置,继续尝试下一行。如此反复,知道找到所有的解。注意,这种算法找的解可能有等价的,某些解可由别的解经过旋转棋盘得到。-visual demostration in vc of eight queens problem.
algorithm: backtracking.
First, put a queen on first line then find a suitable position on 2nd line for next queen, and so on. When all eight lines have queens, it means we have find a solution. If we put the i-th queen, but can find a suitable position on the (i+1)th line, then back to the ith line and move the queen on the ith line to next suitable position and move on to the next line. Repeat this until we have found all the solutions. Note:By this mean, some solutions maybe equivalent to others, some can be acquired by the rotation of other solutions.
- 2022-03-23 15:20:19下载
- 积分:1
-
讲解C++的PPT(主要是关于函数的讲解)
讲解C++的PPT(主要是关于函数的讲解)-Explain the C++, PPT (mainly about the function to explain)
- 2022-03-25 18:43:40下载
- 积分:1
-
Read a variety of data source database
读取各种数据源数据库
- 2023-01-10 08:15:03下载
- 积分:1
-
能显示出你键盘相对应的按键代码的源码简单小程序,适合新手...
能显示出你键盘相对应的按键代码的源码简单小程序,适合新手-Able to demonstrate your keyboard keys corresponding to the source code for a simple small program, suitable for novice
- 2022-08-06 00:54:42下载
- 积分:1
-
输入任意顺序的姓名表,按字典顺序打印出来
输入任意顺序的姓名表,按字典顺序打印出来-arbitrary order of the input table names, according to the order printed dictionaries
- 2022-08-18 20:50:49下载
- 积分:1
-
数据结构中的树形结构的层序遍历,仅仅是是对树的创建,销毁,遍历,插入等常规操作的c源代码...
数据结构中的树形结构的层序遍历,仅仅是是对树的创建,销毁,遍历,插入等常规操作的c源代码-Data structure in the tree structure traversal sequences, only yes yes right tree creation, destruction, traversal, insertion and other conventional operations c source code
- 2023-01-05 00:15:03下载
- 积分:1
-
Delaunay Triangulation VB source, the use of the procedures to facilitate the es...
构建Delaunay三角网的VB源程序,利用该程序可以方便的建立GIS中的Delaunay三角网,对GIS开发人员有很大的帮助-Delaunay Triangulation VB source, the use of the procedures to facilitate the establishment of GIS Delaunay net of GIS developers will be very helpful
- 2022-10-31 15:25:03下载
- 积分:1
-
ADXL345加速度传感器精简源码
三周加速度计的简单例子,详细分析。
- 2022-01-26 04:54:19下载
- 积分:1
-
Excel格式的C + +出口
c++导出EXCEl格式文件-c++ Export EXCEl format
- 2023-05-27 17:00:03下载
- 积分:1
-
图形学基本处理,环境是VC6.0.包括彩色图片变黑白图片等
图形学基本处理,环境是VC6.0.包括彩色图片变黑白图片等-basic programme for cg
- 2023-04-20 00:05:04下载
- 积分:1