资源列表
[数据结构常用算法] sort_compare
说明:三种排序算法(直接插入、冒泡、快速排序)效率比较-Three sorting algorithms (direct insertion, bubble, quick sort) more efficient<mingcx> 在 2025-06-18 上传 | 大小:1kb | 下载:0
[数据结构常用算法] BagZeroOne
说明:用java实现0/1背包问题 贪心算法-the knapsack of using java<liuxiaofei> 在 2025-06-18 上传 | 大小:5kb | 下载:0
[数据结构常用算法] backnap-and-large-number-
说明:使用队列类解决背包问题 和使用线性表解决俄大数计算问题-Solve the knapsack problem using the queue class, and use the linear form of large numbers to solve computational problems Russia<蒋> 在 2025-06-18 上传 | 大小:4kb | 下载:0
[数据结构常用算法] node
说明:判断链表里面是否存在节点,插入位置是否超出链表当前最大位置的范围,获取当前位置的前一个节点,将要节点插入要插入的位置,删除节点-List to determine whether there is inside the node, to determine whether the insertion position of the maximum position beyond the scope of the current list, the current location of the<王元> 在 2025-06-18 上传 | 大小:1kb | 下载:0
[数据结构常用算法] line_editing_system
说明:设计并实现一个简单的行编辑系统。该系统提供5条编辑子命令: open 文件名:将指定文件读入内存; quit:将正在编辑的文件写回文件,退出编辑系统; list n1 – n2:显示第n1到第n2行的内容; del 行号,列号,字符数:从指定位置开始删除指定的字符数; ins 行号,列号,字符串:在指定位置插入字符串。-Design and implement a simple line editing system. The system provides five sub<lijinping> 在 2025-06-18 上传 | 大小:1kb | 下载:0
[数据结构常用算法] BOX
说明:最少背包问题:假设有许多盒子,每个盒子能保存的总重量为1.0。有N个项i1,i2,…,iN,它们的重量分别是w1,w2,…,wN。目的是用尽可能少的盒子放入所有的项,任何盒子的重量不能超过他的容量。例如,如果想的重量为0.4, 0.4, 0.6和0.6,用两个盒子就能解决。 按如下策略解决此问题:按给定的次序扫描每一个项,把每一个项放入能够容纳他而不至于溢出的最满的盒子。用优先级队列选择要装入的盒子。-Minimum knapsack problem: Suppose there are m<lijinping> 在 2025-06-18 上传 | 大小:2kb | 下载:0
[数据结构常用算法] O(n)-O(n2)-O(nlogn)
说明:complexity of the algorithm O(n^2) O(n) O(n*logn)<Aygerim> 在 2025-06-18 上传 | 大小:317kb | 下载:0