资源列表
[数据结构常用算法] 二叉树的基本操作
说明:二叉树的先序,中序,后序,层序递归和非递归实现,总节点个数和叶子节点个数,二叉树的高度等基本操作(Two binary tree first order, middle order, backward sequence, sequence recursive and non recursive implementation, the total number of nodes and the number of leaf nodes, the height of the two fork tre<浩浩荡荡yy > 在 2025-06-08 上传 | 大小:2kb | 下载:0
[数据结构常用算法] Trie_and_Huffman
说明:功能1:使用一种树型结构来实现我们的单词计数功能——Trie树 功能2:Huffman树进行编码 程序输入: 第一行为一个正整数n,表示输入单词的总数。 接下来的n行,每行为一个单词,单词由不超过10个的小写英文字母组成。 接下来的一行为一个正整数m,表示查询的次数。 接下来的m行,每行为一个数字和一个查询,当数字为1时,查询为单词,输出该单词出现的次数(可以为0);当数字为2时,查询为Huffman编码,输出对应的单词(该Huffman编码对应的单词确定存在)。(Function<functiondy_dx > 在 2025-06-08 上传 | 大小:2kb | 下载:0
[数据结构常用算法] 4
说明:假设稀疏矩阵A和B均以三元组表作为存储结构,试写出矩阵相加和相乘的算法,另设三元组表C存放结果矩阵。(Suppose that the sparse matrix A and B are all three tables as the storage structure, try to write the matrix addition and multiplication algorithm, and set up the three tuple table C to store the re<咔咔的枫 > 在 2025-06-08 上传 | 大小:2kb | 下载:0
[数据结构常用算法] permutations
说明:根据字典序,临位对换法,递增进位制,递减进位制,生成全排列。(Generate all permutations, according to four different algorithms)<PoisonLam > 在 2025-06-08 上传 | 大小:2kb | 下载:0