会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
石乐智先生
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
5
6
7
8
9
10
11
12
13
下一页
2020年7月23日
二叉树遍历
摘要: /*二叉树前序、中序、层次层次遍历*/ #include<stdio.h> #include<malloc.h> typedef char ElemType; typedef struct BiTNode { ElemType val; struct BiTNode *lchild,*rchild;
阅读全文
posted @ 2020-07-23 20:10 石乐智先生
阅读(206)
评论(0)
推荐(0)
2020年7月16日
二叉树递归遍历
摘要: /*二叉树递归遍历*/ #include<stdio.h> #include<malloc.h> typedef char ElemType; typedef struct BitNode { ElemType data; struct BitNode * lchild,*rchild; }BitN
阅读全文
posted @ 2020-07-16 21:29 石乐智先生
阅读(183)
评论(0)
推荐(0)
2020年7月13日
KMP算法优化
摘要: #include<stdio.h> #define MaxSize 255 typedef struct { char ch[MaxSize]; int length; }SString; void InitStr(SString &S) { S.ch[0]=' '; S.length=0; } v
阅读全文
posted @ 2020-07-13 20:29 石乐智先生
阅读(308)
评论(0)
推荐(0)
简单模式匹配/KMP算法
摘要: #include<stdio.h> #define MaxSize 255 typedef struct { char ch[MaxSize]; int length; }SString; void InitStr(SString &S) { S.ch[0]=' '; S.length=0; } v
阅读全文
posted @ 2020-07-13 20:08 石乐智先生
阅读(380)
评论(0)
推荐(0)
2020年7月12日
顺序串的基本操作
摘要: #include<stdio.h> #define MaxSize 255 typedef struct { char ch[MaxSize]; int length; }SString; void InitStr(SString &S) { S.ch[0]='¥'; S.length=0; } v
阅读全文
posted @ 2020-07-12 21:15 石乐智先生
阅读(766)
评论(0)
推荐(0)
2020年7月4日
栈在表达式求值中的应用
摘要: (一):中缀表达式转后缀表达式从左到右处理各个元素1.遇到操作数。直接加入后缀表达式2.遇到界限符。遇到'('直接入栈,遇到')'则依次弹出栈内运算符并加入后缀表达式,直到弹出'('为止。注意:'('不加入后缀表达式。3.遇到运算符。依次弹出栈中优先级高于或等于当前运算符的所有运算符,并加入后缀表达
阅读全文
posted @ 2020-07-04 21:21 石乐智先生
阅读(767)
评论(0)
推荐(0)
2020年7月3日
栈在括号匹配中的应用
摘要: #include<stdio.h> #define MaxSize 10 typedef char ElemType; typedef struct { ElemType data[MaxSize]; int top; }SList; void InitSList(SList &S) { S.top
阅读全文
posted @ 2020-07-03 22:04 石乐智先生
阅读(300)
评论(0)
推荐(0)
2020年6月28日
不带头节点的链式存储队列基本操作
摘要: #include<stdio.h> #include<malloc.h> typedef char ElemType; typedef struct LinkNode { ElemType data; struct LinkNode *next; }LinkNode; typedef struct
阅读全文
posted @ 2020-06-28 21:10 石乐智先生
阅读(679)
评论(0)
推荐(0)
带头节点的 链式存储队列基本操作
摘要: #include<stdio.h> #include<malloc.h> typedef char ElemType; typedef struct LinkNode { ElemType data; struct LinkNode *next; }LinkNode; typedef struct
阅读全文
posted @ 2020-06-28 10:39 石乐智先生
阅读(436)
评论(0)
推荐(0)
2020年6月27日
顺序循环队列基本操作(三)
摘要: /*增设表示元素个数的数据*/ #include<stdio.h> #define MaxSize 10 typedef char ElemType; typedef struct { ElemType data[MaxSize]; int front,rear; int size; }SqQueu
阅读全文
posted @ 2020-06-27 19:27 石乐智先生
阅读(271)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
下一页
公告