搜索资源列表
zhebanchazhao
- Two forks the tree: binary search, for the realization of two binary tree binary search.
Graph
- 输入一个带权无向图的顶点数、边数、各条边信息(两个顶点和权值),建立该图的邻接矩阵结构,输出该邻接矩阵。将上述无向图邻接矩阵转换为邻接表结构,输出该邻接表;根据该邻接表对无向图进行深度优先遍历序列和广度优先遍历序列,并输出遍历结果;用prim算法实现构造该带权无向图的最小生成树,并将该最小生成树的各条边信息输出。-Enter a weighted undirected graph with vertices, edges, each of the side information (two ve
最后
- 第一题:将一颗树或森林转换为二叉树 第二题:求森林高度 第三题:按层次方式遍历森林 第四题:输出一个森林中每个结点的值及对应的层次数 第五题:输出一个森林的广义表形式(First question: convert a tree or forest into two branches Second question: forest height The third question: traverse the forest in a hierarchical manner The