资源列表
[数据结构常用算法] erchashu
说明:输入完全二叉树前序,实现中序、后序、层次遍历,交换左右子树,统计叶子节点,二叉树深度。使用C语言实现。-Enter the first complete binary tree sequence to achieve the sequence after sequence, hierarchy traversal, the exchange about the sub-tree leaf node statistics, binary tree depth. Using the C.<李俊> 在 2025-06-08 上传 | 大小:2kb | 下载:0
[数据结构常用算法] 10.1
说明:对于任意给出整数序列,分别采用直接插入排序和起泡排序对其进行升序排序,要求输出排序过程,即每趟排序后的结果。起泡排序从前往后起泡,即每次把最大的数起泡到最后面,并且若有一趟起泡没有交换数据则停止。 输入要求:输入数据存放在input.txt中,input.txt共有3行,第一行为输入的整数个数,第2行为输入的整数序列,以空格分隔,第三行为空行。 输出要求:输出数据存放在output.txt中,先输出直接排序每趟的排序结果,再输出空行,最后输出起泡排序每趟的结果,每趟结果以行分隔。-For<123> 在 2025-06-08 上传 | 大小:2kb | 下载:0
[数据结构常用算法] PriorityQueue
说明:实现本优先队列的初始化,查找,插入,删除操作,并且控制 其查找,插入,删除操作的算法时间复杂度为O(logn)。-Achievement of the priority queue is initialized, search, insert, delete, and control their search, insert, delete operation time complexity of the algorithm is O (logn).<Chan> 在 2025-06-08 上传 | 大小:2kb | 下载:0
[数据结构常用算法] RLSMatrix
说明:以“带行逻辑链接信息”的三元组顺序表示稀疏矩阵,实现两个矩阵相加,相减和相乘的运算,稀疏矩阵的输入形式采用三元组表示,而运算结果的矩阵则以通常的阵列形式列出。-With " OK logical link information," the order said triples sparse matrix to achieve two matrices addition, subtraction and multiplication operations, the use of<冤大头> 在 2025-06-08 上传 | 大小:2kb | 下载:0
[数据结构常用算法] least-common-ancestor
说明:Tarjan的脱机最小公共祖先问题,里面使用了pair,map以及结构体等相关结构-Tarjan off-line least common ancestors problem<lixiaobo> 在 2025-06-08 上传 | 大小:2kb | 下载:0