![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树、图
柠檬超级酸
What Ever
展开
-
图的基本操作
图的邻接矩阵存储#define MaxVertexNum 100;//顶点数目的最大值typedef char VettexType;//顶点的数据类型typedef int EdgeType;//权值的数据类型(表示边)typedef struct{ VextexType vex[MaxVertexNum];顶点表 EdgeType edge[MaxVertexNum][MaxV...原创 2019-12-04 21:14:11 · 306 阅读 · 0 评论 -
树的基础算法
二叉树的存储结构链式存储结构typedef struct{ ElemType data; struct BiTNode *lchild, *rchild;}BiTNode, *BiTree;先序遍历递归算法void PreOrder(BiTree T){ if(T!=NULL){ visit (T); PreOrder(T->lchild); PreOr...原创 2019-12-04 16:38:49 · 520 阅读 · 0 评论