数据结构
文章平均质量分 92
怪人i命
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
无向连通图邻接表的创建输出广度深度遍历
源代码:#include<stdio.h>#define MVNum 100 //最大顶点数typedef int OtherInfo; //定义数据类型typedef char VerTexType; //定义数据类型typedef struct ArcNode //边结点{int adjvex; //该边所指向的顶点的位置struct ArcNode *...原创 2019-06-05 11:32:53 · 826 阅读 · 0 评论 -
无向连通图邻接矩阵的创建输出广度深度遍历
源代码:#include<stdio.h>#define MaxInt 32767 //表示极大值#define MVNum 100 //最大顶点数typedef char VerTexType; //定义数据类型typedef int ArcType;typedef struct{VerTexType vexs[MVNum]; //顶点表ArcType ...原创 2019-06-03 09:10:31 · 997 阅读 · 2 评论 -
最短路径(迪杰斯特拉算法)
源代码:#include<stdio.h>#define MaxInt 32767 //表示极大值#define MVNum 100 //最大顶点数typedef char VerTexType; //定义数据类型typedef int ArcType;typedef struct{VerTexType vexs[MVNum]; //顶点表ArcType ...原创 2019-06-11 15:49:38 · 1177 阅读 · 0 评论 -
最小生成树(普利姆算法)
源代码:#include<stdio.h>#include<stdlib.h>#define MVNum 100 //最大顶点数#define INFINITY 32767 //表示权值很大,意味着两个顶点之间没有连接typedef char VerTexType; //定义数据类型typedef int ArcType;typedef struct...原创 2019-06-11 16:33:03 · 1372 阅读 · 0 评论
分享