资源列表
[数据结构常用算法] Algorithm design and analysis(Java)
说明:王晓东版本的算法设计与分析,介绍数据结构与常见算法题目,附Java代码示例。(Wang xiaodong version of the algorithm design and analysis, introduce the data structure and common algorithm topics, with Java code examples.)<超人迪加> 在 2025-06-23 上传 | 大小:6.31mb | 下载:0
[数据结构常用算法] 数据结构 图的应用 最小生成树问题
说明:应用最小生成树的实际问题,内含题目、代码、问题分析(Application of the minimum spanning tree to practical problems, including problem, code and problem analysis)<德德20> 在 2025-06-23 上传 | 大小:37kb | 下载:0
[数据结构常用算法] 二叉排序树_17281183_刘梦婷
说明:1.构造一棵二叉排序树并对其进行中序遍历输出; 2.在二叉排序树中查找某一关键字,若存在,显示查找成功;若不存在,将其插入到二叉排序树中,再中序遍历输出。(1. Construct a binary sort tree and output it through middle order traversal; 2. Find a keyword in the binary sort tree. If it exists, the search is successful. If it doe<lmt19990807> 在 2025-06-23 上传 | 大小:2.1mb | 下载:0
[数据结构常用算法] 哈希表_17281183_刘梦婷
说明:采用除留余数法构造哈希表,要求装载因子不超过0.7,线性探测再散列解决冲突,输出哈希表;任意输入关键字,判断是否在哈希表中,若存在显示查找成功并显示查找次数;若不存在,插入到哈希表中,再显示哈希表中的关键字序列。(The hash table is constructed by using the method of removing and reserving remainder. The loading factor is required to be no more than 0.7. T<lmt19990807> 在 2025-06-23 上传 | 大小:2.09mb | 下载:0
[数据结构常用算法] 二叉树_17281183_刘梦婷
说明:按先序遍历的扩展序列建立二叉树的二叉链表存储结构,实现二叉树先序、中序、后序遍历的递归算法,实现二叉树中序遍历的非递归算法,实现二叉树层次遍历的非递归算法,求二叉树的结点个数,求二叉树的深度。(The binary list storage structure of binary tree is established according to the extended sequence of traversal in the first order, the recursive algorit<lmt19990807> 在 2025-06-23 上传 | 大小:2.07mb | 下载:0
[数据结构常用算法] 树_17281183_刘梦婷
说明:建立树的孩子兄弟链表存储结构,求树的深度。 要求: 1)自上而下输入树中每条边(例如#A,AB,AC,BD,##),不要转换成二叉树输入。 2)按树中由根至叶子结点层次遍历顺序(每层中自左至右输入),输入结点序列及每个结点的度,构造孩子兄弟链表。(Establish the storage structure of the tree's child and brother list, and find the depth of the tree. Requirement: 1) Inp<lmt19990807> 在 2025-06-23 上传 | 大小:1.46mb | 下载:0
[数据结构常用算法] 迷宫问题
说明:用C++语言实现在迷宫中寻找出路。 核心算法伪代码: do{ 如果当前位置为出口: 当前位置进栈; return 1; while(尝试的方向小于4) { 尝试方向号码对应方向的格子; 如果这个格子是没走过的通路: 当前位置进栈; 将地图上的这个位置标记为走过的; 切换试探的方块为新的当前位置; 跳出这层循环; 否则: 方向号码增加1; } 如果当前位置的四周没有路了: 地图上的当前位置标记成走过的; 出栈; }while(栈不空或者还有方向没试探完);(Using C + + l<F(zx)> 在 2025-06-23 上传 | 大小:16kb | 下载:0
[数据结构常用算法] magician
说明:反转扑克牌问题,扑克牌排列在桌面上,每次反转一定区间的扑克牌,或者询问某一个区间内的扑克牌总共被反转了几次,使用线段树,可以处理大规模数据(扑克牌数量很多)(Reversal of playing cards: playing cards are arranged on the table. Each time you reverse a certain range of cards, or ask the playing cards in a certain range are reverse<zzzzssssssss> 在 2025-06-23 上传 | 大小:1kb | 下载:0