资源列表
[数据结构常用算法] Unary-polynomial-operations
说明:一元多项式的运算,包括加减乘法的自主输入数据的源码-Unary polynomial operations<my> 在 2025-06-17 上传 | 大小:1kb | 下载:0
[数据结构常用算法] pakage
说明:01背包问题:给定n种物品和一个背包。物品i的重量是wi,其价值为vi,背包的容量为c.问应如何选择装入背包中的物品,使得装入背包中物品的总价值最大。-01 knapsack problem: Given n types of items and a backpack. Item i of the weight of wi, the value of vi, c. Q backpack with a capacity of how to choose the items into the bac<苏小猫> 在 2025-06-17 上传 | 大小:2kb | 下载:0
[数据结构常用算法] algorithms
说明:传说中超越了算法导论的书籍 算法方面的经典之作 值得一看 -classical introduction about algorithms<杨贵林> 在 2025-06-17 上传 | 大小:3.25mb | 下载:0
[数据结构常用算法] BinaryTree-Visit-all-methods
说明:最全的二叉树遍历算法,包含前序、中序、后序的递归与非递归算法,还有按层次遍历(从上往下,从下往上,从左往右,从右往左)算法-The most complete binary tree traversal algorithm, including pre-order, in order, postorder recursive and non recursive algorithm, as well as by level traversal (from top to bottom, from b<马军> 在 2025-06-17 上传 | 大小:2kb | 下载:0
[数据结构常用算法] Diameter-of-BinaryTree
说明:计算二叉树的直径(二叉树中相距最远的两个节点之间的距离)的算法。-Calculate the diameter of binary tree (binary tree in the farthest away from the distance between two nodes) of the algorithm.<马军> 在 2025-06-17 上传 | 大小:512kb | 下载:0
[数据结构常用算法] Dijkstra
说明:这个例程,会在多条相同最短路径中选出边数最少的路径.只是改变path域即可在遍历的时候访问到边数少的路径.核心的思想,就是建立一个数组,存放从出发点到当前顶点的最短路径边数.通过每次查看最短路径相同的情况, 即dv + cvw = dw.时,如果 Count[v] + 1 < Count[w]时,就执行 Count[w] = Count[v] + 1, 同时 w -> path = c.-This routine will be the same number of shortest<php0> 在 2025-06-17 上传 | 大小:1kb | 下载:0