数据结构
陶大柏
一个初入IT的小萌新
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
数据结构之链表管理学生信息
#include<stdio.h> #include<iostream> #include<cstdio> #include<stdlib.h> #include<string.h> #define MAXSIZE 100 #define OK 1 #define ERROR 0 #define OVERFLOW -1 #define Status int using namespace s原创 2017-12-29 16:37:45 · 988 阅读 · 2 评论 -
数据结构之队列的应用
运用队列设计配对问题:#include<iostream> #define MAXSIZE 100 #define Status int #define OVERFLOW -1 #define OK 1 #define ERROR 0 using namespace std;typedef struct{ char name[20]; char sex; }Person;typed原创 2017-12-29 16:40:39 · 762 阅读 · 0 评论 -
数据结构之栈解决算术表达式
用栈方式来解决数学表达式:#include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<stack> #define MAXSIZE 100 #define Status int #define MAXSIZE 100 #define OK 1 #define ERROR 0 using nam原创 2017-12-29 16:42:23 · 465 阅读 · 0 评论 -
数据结构之HuffmanTree
哈夫曼树的构造与哈夫曼编码的生成过程。#include<stdio.h> #include<iostream> #include<cstdio> #include<string.h> #define MAXSIZE 1000 using namespace std; typedef struct{ int weight; //权值 int parent,lchild,rchi原创 2017-12-29 16:45:42 · 996 阅读 · 0 评论 -
数据结构之串解决BF和KMP算法
BF和KMP算法(包括修正):#include<iostream> #include<cstring> #include<cstdio> #include <algorithm> #define MAXLEN 255 using namespace std;typedef struct Chunk{ char ch[MAXLEN+1]; //存储串的一维数组 int leng原创 2017-12-29 16:47:03 · 406 阅读 · 0 评论 -
数据结构之二叉树
用递归和非递归的方法实现一棵树的三种遍历:#include<iostream> #include<stdio.h> #include<cstdio> #define MAXSIZE 100 typedef char TElemType; using namespace std; typedef struct BiTNode{ //定二叉树的结构体 TElemType data;原创 2017-12-29 16:48:38 · 312 阅读 · 0 评论
分享