资源列表
[数据结构常用算法] the-eight-queens
说明:解决C++中的一个难题:八皇后问题,代码有一定的参考性。-Solution in C++ a problem: the eight queens problem, the code has some reference.<Guling> 在 2025-06-15 上传 | 大小:1kb | 下载:0
[数据结构常用算法] lingo-example-6
说明:lingo程序,最短路问题,经典的Dijkstra 算法。-lingo (Dijkstra)<lijunlee> 在 2025-06-15 上传 | 大小:1kb | 下载:0
[数据结构常用算法] JOSEPHUS
说明:约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。 -Josephus is the application of a mathematical problem: Given n individuals (in numbers 1,2,3 ... n, respectively) sitting around<yyy> 在 2025-06-15 上传 | 大小:1kb | 下载:0
[数据结构常用算法] migong
说明:简单的c++小程序,实现迷宫路线输出。可以自定义迷宫,用1代表不可走,0代表可走,进行输入。然后自定义起始点,输出一条可行路线。-Simple c++ applet to achieve the maze route output. You can customize the maze, can not go with 1 for, 0 to go, for input. Starting point and then customize the output a feasible route.<红其> 在 2025-06-15 上传 | 大小:1kb | 下载:0
[数据结构常用算法] insertsort
说明:插入排序算法1.for 循环找出一个待比较的值,然后进入while循环中,与数组中下标比它小的数据进行比较, * 因为下标比它小的数据都是排好序的,当a[i]大于这个数时,将a[i]往后移一下,就是这个数 * 的下标加1,依次循环,将比这个数的的数都移动到此数的后面,假如:当执行i--后,while条件 * 不成立,从而退出了while循环,此时,下标为i的数组值小于这个标准数,所以将这个标准数放到 * 下标为i+1的数组中。当for循环结束时,此数组中的所有元素都是有序的-In<woshi> 在 2025-06-15 上传 | 大小:1kb | 下载:0
[数据结构常用算法] huolangdan
说明:货郎担算法,属于大学课程算法分析和设计的一个实验题目-Traveling salesman algorithm, university courses are an algorithm analysis and design of experimental subjects<jack> 在 2025-06-15 上传 | 大小:1kb | 下载:0
[数据结构常用算法] beibao
说明:用贪心法解决背包问题:设有不同价值、不同重量的物品n件,求从这n件物品中选取一部分物品的方案, 使选中的物品的总重量不超过指定的限制重量,但选中物品的价值之和最大。-Knapsack problem with a greedy method to solve: with different values, different weights of items n pieces, find items from n items in the select part of the program<lancy> 在 2025-06-15 上传 | 大小:1kb | 下载:0