资源列表
[数据结构常用算法] eight-queens
说明:八皇后问题,是一个古老而著名的问题,是回溯算法的典型例题。该问题是十九世纪著名的数学家高斯1850年提出:在8X8格的国际象棋上摆放八个皇后,使其不能互相攻击,即任意两个皇后都不能处于同一行、同一列或同一斜线上,问有多少种摆法。 高斯认为有76种方案。1854年在柏林的象棋杂志上不同的作者发表了40种不同的解,后来有人用图论的方法解出92种结果。计算机发明后,有多种方法可以解决此问题。 可以通过更改程序中define 的n 的值将其改为任意个数的皇后问题 -Eight queens pr<kyle> 在 2025-06-22 上传 | 大小:235kb | 下载:0
[数据结构常用算法] C-algorithm-for-fine-Daquan
说明:精编C算法大全,最近收集的最经典的c程序算法-C algorithm for fine Daquan<limuzi> 在 2025-06-22 上传 | 大小:442kb | 下载:0
[数据结构常用算法] convhull_woosuke
说明:CONVUHALL Source Sorted bt merge<woosuk> 在 2025-06-22 上传 | 大小:2kb | 下载:0
[数据结构常用算法] linjiebiao
说明:用邻接表实现对图的编程,并且可以求出最短路径-Map with the adjacency list implementation of the programming, and can find the shortest path<刘彦秋> 在 2025-06-22 上传 | 大小:1.16mb | 下载:0
[数据结构常用算法] wanmei-shu
说明:如何求小于10000的所有完美数?并将程式写的有效率?-How to find all the perfect numbers less than 10000? And to write efficient programs?<zsr> 在 2025-06-22 上传 | 大小:2kb | 下载:0
[数据结构常用算法] fk-shu
说明:现将举行一个餐会,让访客事先填写到达时间与离开时间,为了掌握座位的数目,必须先估计不同时间的最大访客数。 -Now hold a banquet, so that visitors fill out in advance the arrival time and departure time in order to keep the number of seats, you must first estimate the maximum number of visitors at diffe<zsr> 在 2025-06-22 上传 | 大小:2kb | 下载:0
[数据结构常用算法] gl-ma
说明:Gray Code是一个数列集合,每个数使用二进位来表示,假设使用n位元来表示每个数好了,任两个数之间只有一个位元值不同-Gray Code a series of collections, each use binary numbers to represent, assuming the number of n bits to represent each well, and only between any two numbers a bit different from the valu<zsr> 在 2025-06-22 上传 | 大小:2kb | 下载:0