随笔分类 -  数据结构(C语言)

gcc环境编译运行。
摘要:转载自 http://blog.csdn.net/u013806583/article/details/52643541?locationNum=2&fps=1 CSDN 关小二 ASL指的是 平均查找时间 关键字序列:(7、8、30、11、18、9、14) 散列函数: H(Key) = (key 阅读全文
posted @ 2017-12-26 15:57 ixummer 阅读(2024) 评论(0) 推荐(0)
摘要:1 #include "stdio.h" 2 #include "stdlib.h" 3 4 #define MAXSIZE 100 5 typedef char TElemType; 6 typedef struct BiTNode { 7 TElemType data; 8 struct BiTNode *lchild; 9 st... 阅读全文
posted @ 2017-12-10 18:16 ixummer
摘要:1 #include"stdio.h" 2 #include"stdlib.h" 3 #include"iostream" 4 5 typedef struct bstnode{ 6 int data; 7 struct bstnode *lchild; 8 struct bstnode *rchild; 9 }bstnod... 阅读全文
posted @ 2017-12-06 11:20 ixummer
摘要:1 #include "stdio.h" 2 #include "stdlib.h" 3 4 #define OK 1 5 #define ERROR 0 6 #define OVERFLOW -2 7 8 typedef char elemType; 9 typedef struct _QNode{ 10 elemType data; 11 ... 阅读全文
posted @ 2017-12-03 19:50 ixummer
摘要:1 #include "stdio.h" 2 #include "stdlib.h" 3 4 #define OK 1 5 #define ERROR 0 6 #define OVERFLOW -2 7 #define STACKINITSIZE 100 8 #define STACKINCREASMENT 10 9 10 typedef char el... 阅读全文
posted @ 2017-12-01 21:24 ixummer
摘要:1 #include "stdio.h" 2 #include "stdlib.h" 3 4 #define OK 1 5 #define ERROR 0 6 7 typedef char elemType; 8 typedef struct _DuLNode{ 9 elemType data; 10 struct _... 阅读全文
posted @ 2017-12-01 13:01 ixummer
摘要:1 #include "stdio.h" 2 #include "stdlib.h" 3 4 #define OK 1 5 #define ERROR 0 6 7 typedef int elemType; 8 typedef struct _LNode{ 9 elemType data; 10 struct _LNode *Next; ... 阅读全文
posted @ 2017-11-28 13:43 ixummer
摘要:1 #include "stdio.h" 2 #include "stdlib.h" 3 4 #define LIST_INIT_SIZE 1000 5 #define LISTINVRESEMENT 100 6 #define OK 1 7 #define ERROR 0 8 #define OVERFLOW -2 9 10 typedef int e... 阅读全文
posted @ 2017-11-27 11:29 ixummer