- 博客(7)
- 收藏
- 关注
原创 图的最短路径问题(Floyd)邻接表实现
#include<stdio.h> #include<stdlib.h> #include<string.h> #define MAX 32767 #define SIZE 100 #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 typedef int Status ; typedef c...
2019-11-27 20:56:55
1403
原创 图的最短路径(Dijkstra算法)
#include<stdio.h> #include<stdlib.h> #include<string.h> #define MAX 32767 #define SIZE 100 #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 typedef int Status ; typedef c...
2019-11-27 20:54:57
275
原创 构建最小生成树Kruskal算法
#include<stdio.h> #include<stdlib.h> #define MAX 32767 #define SIZE 100 #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 typedef int Status ; typedef char VertexType ; typedef ...
2019-11-27 20:52:59
144
原创 最小生成树Prim算法
#include<stdio.h> #include<stdlib.h> #define MAX 32767 #define SIZE 100 #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 typedef int Status ; typedef char VertexType ; typedef ...
2019-11-27 20:50:23
119
原创 图的拓扑排序
#include<stdio.h> #include<stdlib.h> #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define SIZE 100 typedef int Status ; typedef char VerVexType ; typedef struct { int weight...
2019-11-27 20:46:58
206
原创 建立一个有序单向链表(新人学习)
代码如下: #include<stdio.h> #include<malloc.h> #include<stdlib.h> #define SIZE sizeof(struct student) struct student //¶¨Òå½á¹¹Ìå { int num ; int score; struct student *nex...
2019-10-12 20:16:57
895
原创 记录自己学习C语言链表的过程(无序链表排序)
代码如下: #include<stdio.h> #include<stdlib.h> #include<malloc.h> #define LEN sizeof(struct student) struct student { int num ; int score ; struct student *next ; } ; stru...
2019-10-12 20:10:22
419
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅