
数据结构
书签药裹封蛛网
这个作者很懒,什么都没留下…
展开
-
数据结构C语言-顺序表
#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int status; #define MAXSIZE 100 typedef int ElemType; typedef struct { ElemType *elem;...原创 2019-09-28 11:18:41 · 594 阅读 · 0 评论 -
数据结构C语言-二叉排序树
#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int status; typedef int KeyType; typedef int InfoType; #define ENDFLAG 0 typedef struct { ...原创 2019-10-05 09:04:58 · 228 阅读 · 0 评论 -
数据结构C语言-线性表查找(顺序查找、折半查找)
#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int status; typedef int KeyType; typedef int InfoType; typedef struct { KeyType key; ...原创 2019-10-04 13:18:56 · 3327 阅读 · 2 评论 -
数据结构C语言-关键路径
#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int status; typedef int ElemType; typedef int bool; #define true 1 #define false 0 #define...原创 2019-10-03 23:23:27 · 572 阅读 · 0 评论 -
数据结构C语言-拓扑排序
#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int status; typedef int ElemType; typedef int bool; #define true 1 #define false 0 #define M...原创 2019-10-03 19:18:20 · 381 阅读 · 0 评论 -
数据结构C语言-最短路径
#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int status; typedef int ElemType; typedef int bool; #define true 1 #define false 0 #define...原创 2019-10-03 16:31:44 · 526 阅读 · 0 评论 -
数据结构C语言-最小生成树之Prim算法与Kruskal算法
#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int status; typedef int ElemType; typedef int bool; #define true 1 #define false 0 #define...原创 2019-10-03 14:22:17 · 859 阅读 · 0 评论 -
数据结构C语言-图的建立以及深度优先、广度优先遍历
#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int status; typedef int ElemType; typedef int bool; #define true 1 #define false 0 //邻接矩阵 ...原创 2019-10-02 18:16:13 · 1475 阅读 · 0 评论 -
数据结构C语言-哈夫曼树以及哈夫曼编码
#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int status; typedef int ElemType; typedef struct { int weight; int parent,lchild,r...原创 2019-10-01 22:58:04 · 516 阅读 · 0 评论 -
数据结构C语言-线索二叉树
#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int status; typedef char ElemType; typedef struct BiThrNode { ElemType data; stru...原创 2019-09-29 21:27:59 · 185 阅读 · 0 评论 -
数据结构C语言-二叉树
#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int status; typedef char ElemType; typedef struct BiTNode { ElemType data; struct ...原创 2019-09-29 20:09:14 · 204 阅读 · 0 评论 -
数据结构C语言-串的模式匹配BF算法、KMP算法
#include <stdio.h> #include <stdlib.h> #include <string.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int status; typedef int ElemType; #define MAXLEN 255 typedef stru...原创 2019-09-29 14:46:46 · 1026 阅读 · 0 评论 -
数据结构C语言-循环队列、链队
#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int status; typedef int ElemType; #define MAXSIZE 100 typedef struct { ElemType base[M...原创 2019-09-28 20:24:12 · 170 阅读 · 0 评论 -
数据结构C语言-顺序栈和链栈
#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int status; typedef int ElemType; #define MAXSIZE 100 typedef struct { ElemType *base;...原创 2019-09-28 16:13:54 · 196 阅读 · 0 评论 -
数据结构C语言-链表
#include <stdio.h> #include <stdlib.h> #include<malloc.h> #include<time.h> #include<windows.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int status; type...原创 2019-09-28 11:20:07 · 197 阅读 · 0 评论 -
数据结构C语言-9种排序算法(插入、交换、选择、归并、基数排序)
以下代码包含: 直接插入排序、折半插入排序、希尔排序、冒泡排序、快速排序、简单选择排序、堆排序、归并排序、基数排序 #include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int status; typedef int ElemType;...原创 2019-10-08 10:30:18 · 325 阅读 · 0 评论