资源列表
[数据结构常用算法] Tree
说明:1、 编写程序按先序次序和中序次序,确定这棵树二叉树。 2、 输出这棵树的后序序列。 (树的节点数目不超过100) -1, write a program to determine the order of the first order and sequence order tree binary tree. 2, the output of this tree postorder sequence. (The number of nodes of the tree does no<Tracy> 在 2025-06-07 上传 | 大小:3.48mb | 下载:0
[数据结构常用算法] Huffman
说明:1、根据输入构造一棵哈夫曼树,要求该哈夫曼树的左子树小于等于右子树; 2、根据构造的哈夫曼树给出对应的编码;左子树的编码为0,右子树的编码为1; 3、输出各个字符对应的编码与平均编码长度; 4、根据输入的编码,结合构造的哈夫曼树给出对应的译码; 5、对带有不同权值的字符进行编码;使用自己实现的编码表对输入的‘0’‘1’代码进行译码。 -Less than or equal to 1, according to the input construct a Huffman tre<Tracy> 在 2025-06-07 上传 | 大小:3.57mb | 下载:0
[数据结构常用算法] Graph
说明:1、创建一个无向图,采用邻接矩阵存储,顶点采用单个字符表示,边采用邻接矩阵表示; 2、输出该图的存储示意图; 3、对该图进行深度优先遍历和广度优先遍历并输出遍历的结果。 -1, create an undirected graph adjacency matrix storage vertex edges using adjacency matrix representation with a single character 2, the output of the storag<Tracy> 在 2025-06-07 上传 | 大小:3.63mb | 下载:0
[数据结构常用算法] Path
说明:使用顺序队列求迷宫的最短路径。move[]数组四个方向的试探,第一行输入的数据表示迷宫的数据规模n(1<n<=20)行m(1<m<=20)列,S是出发点,D是迷宫的出口,.号表示通路,X表示墙体不通,输出的数据表示从入口到出口最少需要走k步或没有通路-Use the order of the queue and maze shortest path. move [] array of four directions of temptation, the first lin<Tracy> 在 2025-06-07 上传 | 大小:3.49mb | 下载:0
[数据结构常用算法] BiTree
说明:1、 编写程序按先序次序输入二叉树中结点的值构造二叉链表表示的二叉树。 2、 编写程序采用三种递归遍历算法(前序、中序、后序)对这棵二叉树进行遍历。 3、 编写程序计算该二叉树的高度。-A writing program preorder order input binary tree represented by the value of the structure of the binary tree node binary list. 2, write a program usin<Tracy> 在 2025-06-07 上传 | 大小:3.5mb | 下载:0
[数据结构常用算法] Line
说明:1、定义一个建立一元多项式的函数; 2、定义能对单链表按指数排序的函数; 3、定义一元多项式加法和减法函数; 4、定义显示一元多项式的函数; 5、编写主程序调用上面的函数实现一元多项式的加减。 -1, the definition of an established one yuan polynomial function 2, the definition of a single linked list sorted exponential function 3, de<Tracy> 在 2025-06-07 上传 | 大小:3.49mb | 下载:0
[数据结构常用算法] topological-ordering
说明:这是拓扑排序的两种算法的对比,其中一个需要判断环结构算法过于复杂,但提出了另一个思路有兴趣的同学可以改一改,如果成功了请联系我,另一个是标准答案。-This is a comparison of the two topological sorting algorithm, one needs to determine the ring structure algorithm is too complex, but another idea Interested students can modi<杨伟健> 在 2025-06-07 上传 | 大小:410kb | 下载:0