资源列表
[数据结构常用算法] text encryption
说明:对一个文本串以事先给出的字母映射进行加密,未映射的字符不改变。(A text string is encrypted by the alphabetic map given in advance, and the characters that are not mapped remain unchanged.)<snwajs> 在 2025-06-05 上传 | 大小:1kb | 下载:0
[数据结构常用算法] seg_tree
说明:segment tree 的简要实现,主要是面对与搜索的数据结构(Let us consider the following problem to understand Segment Trees. We have an array arr[0 . . . n-1]. We should be able to 1 Find the sum of elements from index l to r where 0 <= l <= r <= n-1 2 Change<875545328> 在 2025-06-05 上传 | 大小:1kb | 下载:0
[数据结构常用算法] new-DV-Hop-code
说明:改进DV-Hop定位算法 首先设置初始量,布置了一个范围为100×100m2的区域,其上随机分布100个传感器节点,其中有10个信标节点,节点的通信半径为30m。 第二步在正方形区域内产生均匀分布的随机拓扑,随机产生节点坐标并将其中十个选定为信标节点,其余九十个设为未知节点,然后画出节点分布图。 第三步通过最短路径法计算未知节点与每个信标节点的最小跳数。 第四步根据前面记录的其他信标节点的位置信息和相距跳数估算平均每跳的实际距离,用跳数估计距离的方法得出未知节点到信标节点的距离。 第五<robinkk4> 在 2025-06-05 上传 | 大小:1kb | 下载:0
[数据结构常用算法] bellFord-(2)
说明:BellFord 算法,查找图的最短路径,C++代码实现(BellFord algorithm, find out the shortest path of figure and c++ code implementation)<小田> 在 2025-06-05 上传 | 大小:1kb | 下载:0
[数据结构常用算法] KuaiPai
说明:对输入数据进行排序,采用的方法是快速排序法(quick sort)<Donal Zhang> 在 2025-06-05 上传 | 大小:1kb | 下载:0
[数据结构常用算法] cLanguage-and-loop-move-left
说明:动态建立两个数组,将原数组循环左移,产生循环移位的效果,学习队列使用~(by using the key word malloc ,and basic loop to realize the function)<王泡泡> 在 2025-06-05 上传 | 大小:1kb | 下载:0
[数据结构常用算法] QsortaMiddlePivotModification
说明:随机产生若干组长度各异的待排序列(乱序的和有序的),分别用快速排序算法和改进的枢轴元素三者取中算法对待排序列进行排序,当待排子序列长度已小于 20时,改用直接插入排序,利用时间函数验证三者取中算法在效率上的提高。(Leader of randomly generated different number of columns to be sorted (out of order and orderly), respectively, with fast sorting algorithm and<何致奇> 在 2025-06-05 上传 | 大小:1kb | 下载:0