数据结构
文章平均质量分 92
zcW1024
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
图的邻接表存储(c语言实现)
#include<stdio.h>#include<stdlib.h>#define Maxsize 10typedef int Datatype;typedef struct Arcnode{ int adjvex ; struct Arcnode *next;}Arconde;typedef struct vernode{ Datatype vertex; Arcnode *firstedge;}Vernode;typedef struct Al.原创 2020-12-28 20:11:20 · 1220 阅读 · 2 评论 -
c语言描述数据结构,图的存储及遍历(矩阵/邻接矩阵;深度/广度优先遍历)
#include<stdio.h>#include<stdlib.h>#define Maxsize 10typedef int DataType;typedef struct Graph{ DataType vertex[Maxsize]; //数组v存放顶点信息 int arc[Maxsize][Maxsize]; //arc数组存放边信息 int n,e; //n个顶点,e条边 }MG;typedef struct SeqQ{.原创 2020-12-13 13:17:11 · 744 阅读 · 1 评论
分享