资源列表
[数据结构常用算法] 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-07-21 上传 | 大小:1kb | 下载:0
[数据结构常用算法] insertsort
说明:插入排序算法1.for 循环找出一个待比较的值,然后进入while循环中,与数组中下标比它小的数据进行比较, * 因为下标比它小的数据都是排好序的,当a[i]大于这个数时,将a[i]往后移一下,就是这个数 * 的下标加1,依次循环,将比这个数的的数都移动到此数的后面,假如:当执行i--后,while条件 * 不成立,从而退出了while循环,此时,下标为i的数组值小于这个标准数,所以将这个标准数放到 * 下标为i+1的数组中。当for循环结束时,此数组中的所有元素都是有序的-In<woshi> 在 2025-07-21 上传 | 大小:1kb | 下载:0
[数据结构常用算法] huolangdan
说明:货郎担算法,属于大学课程算法分析和设计的一个实验题目-Traveling salesman algorithm, university courses are an algorithm analysis and design of experimental subjects<jack> 在 2025-07-21 上传 | 大小: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-07-21 上传 | 大小:1kb | 下载:0
[数据结构常用算法] EditPDistance
说明:edit distance.字符串之间编译距离,包括插入,删除,替换。 -edit distance<yy> 在 2025-07-21 上传 | 大小:1kb | 下载:0
[数据结构常用算法] Maze
说明:迷宫有一个入口,一个出口。一个人从入口走进迷宫,目标是找到出口。阴影部分和迷宫的外框为墙,每一步走一格,每格有四个可走的方向,探索顺序为:南、东、北、西。 -The maze has one entrance, one exit. A person from entry into the maze, the goal is to find the exit. Shaded and the maze of the fr a me for the wall, walk every step of a<王石> 在 2025-07-21 上传 | 大小:1kb | 下载:0