资源列表
[数据结构常用算法] First_Assignment
说明:从左到右及从右到左遍历一个单链表是可能的,其方法是在从左向右遍历的过程中将连接方向逆转,如右图所示。在图中的指针p指向当前正在访问的结点,指针pr指向指针p所指结点的左侧的结点。此时,指针p所指结点左侧的所有结点的链接方向都已逆转。 (1) 编写一个算法,从任一给定的位置(pr, p)开始,将指针p右移k个结点。如果p移出链表,则将p置为0,并让pr停留在链表最右边的结点上。 (2) 编写一个算法,从任一给定的位置(pr, p)开始,将指针p左移k个结点。如果p移出链表,则将p置为0<刘洋> 在 2025-07-09 上传 | 大小:4kb | 下载:0
[数据结构常用算法] erchashujisuanqi
说明:数据结构的二叉树遍历,多功能计算器,是学习二叉树的经典案例-Binary tree traversal of the data structure, multi-function calculator, is a classic case of learning binary tree<haofree> 在 2025-07-09 上传 | 大小:299kb | 下载:0
[数据结构常用算法] Circular-linked-list
说明:一个动态循环链表报数游戏,报到数的退出直到剩下最后一个。运用到了动态构建循环链表,动态删除等,是我的一个课程作业_fromUSST-A dynamic circular linked list reported that the number of games, and to report the number of exit until the last remaining one. Use to dynamically build a circular linked list, dynami<haofree> 在 2025-07-09 上传 | 大小:244kb | 下载:0
[数据结构常用算法] datastruct
说明:自己写的程序,分别用C++和C实现的数据基本结构包括数组,链表,栈和队列,已经过测试,里面有详细的注释,希望与大家分享!-Write their own programs, basic data structures, including arrays, linked lists, stacks and queues respectively implemented in C++ and C, have been tested, there are detailed notes, I hope<> 在 2025-07-09 上传 | 大小:2.39mb | 下载:0
[数据结构常用算法] 2-sat
说明:所为2-sat问题,就是2判断问题。该算法是用拆点的方式建图,用找强连通子图的方法推出矛盾,用以判断2-sat是否可行。经典实现,-2-sat, is a matter of judgment. The algorithm is used to find a demolition point built strongly connected subgraph launched contradictions, used to determine whether the 2-sat. Classic<朱铖恺 > 在 2025-07-09 上传 | 大小:1kb | 下载:0