会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ixummer的博客
博客园
首页
新随笔
联系
管理
订阅
随笔分类 -
数据结构(C语言)
gcc环境编译运行。
Hash表的平均查找长度ASL计算方法
摘要:转载自 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
公告