-
八皇后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
-
可以使十进制的数转换成二进制的数,非常的简单方便
可以使十进制的数转换成二进制的数,非常的简单方便-to convert the decimal value to binary value, extremely easy using
- 2023-01-27 07:00:04下载
- 积分:1
-
本程序使用了多线程的搜索技术,比传统的操作系统提供的顺序搜索的效率高许多.程序在每个新目录创建一个线程,处理该目录下的文件,从而实现多线程搜索...
本程序使用了多线程的搜索技术,比传统的操作系统提供的顺序搜索的效率高许多.程序在每个新目录创建一个线程,处理该目录下的文件,从而实现多线程搜索-the procedures used multithreaded search technology, than the traditional operating system in order to provide highly efficient search of many. each procedure in the creation of a new directory threads, addressing the directory of documents, enabling multi-threaded search
- 2022-01-28 21:19:09下载
- 积分:1
-
真彩BMP图像转化为256色,以及灰度化源代码,有参考价值。
真彩BMP图像转化为256色,以及灰度化源代码,有参考价值。-True color BMP images into 256 colors, as well as the gray of the source code, have reference value.
- 2022-02-06 00:55:29下载
- 积分:1
-
from msdn!
from msdn!-from flowing!
- 2022-05-14 04:19:25下载
- 积分:1
-
常规优化算法库,处理具有约束力和非
常规优化算法程序库,处理各种有约束和无约束优化问题-conventional optimization algorithm library, to deal with binding and non-constrained optimization problem
- 2022-02-26 21:08:05下载
- 积分:1
-
FoxMessager 2.0
FoxMessager 2.0
- 2022-05-09 04:53:10下载
- 积分:1
-
A Rotating WireframeCube for Silverlight3 我觉的很好的例子
A Rotating WireframeCube for Silverlight3 我觉的很好的例子-A Rotating WireframeCube for Silverlight3 I feel a good example of
- 2023-02-11 10:45:04下载
- 积分:1
-
一个微
一个微型的C lib
把 OpenSSL 移植到WCE 平台下必须使用-A micro-C lib of OpenSSL ported to the platform must be used WCE
- 2023-06-06 21:25:03下载
- 积分:1
-
利用Windows的未公开函数SHChangeNotifyRegister实现文件目录操作即时监视程序,可以监视在Explore中的重命名、新建、删除文件或目录...
利用Windows的未公开函数SHChangeNotifyRegister实现文件目录操作即时监视程序,可以监视在Explore中的重命名、新建、删除文件或目录;改变文件关联;插入、取出CD和添加删除网络共享都可以被该程序记录下来。 -The use of Windows, not a public function SHChangeNotifyRegister file directory operations to achieve real-time monitoring program that can monitor the Explore the re-naming, new, delete files or directories change the file association to insert, remove the CD and add remove network share can be recorded, the program down.
- 2023-04-02 02:05:03下载
- 积分:1