![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
二两桃花酿作酒
他乡住不下灵魂,故乡满足不了肉体
展开
-
二叉链表-链式二叉树-数据结构
二叉链表#define _CRT_SECURE_NO_WARNINGS #include "iostream" #include "stdlib.h" #include "windows.h" #include "iomanip" using namespace std; const int OK = 1; const int M = 100; typedef int ElemType; type...原创 2018-06-14 00:17:59 · 274 阅读 · 0 评论 -
单链表的实现-数据结构
单链表的实现#define _CRT_SECURE_NO_WARNINGS #include "iostream" #include "stdlib.h" #include "windows.h" using namespace std; #define OK 1 #define ERROR 0 #define M 100 typedef int ElemType; typedef struct...原创 2018-06-08 17:29:37 · 192 阅读 · 0 评论 -
顺序表的实现-数据结构
顺序表的实现#include "iostream" #include "stdlib.h" #include "windows.h" using namespace std; #define OK 1 #define ERROR 0 const int M = 100; typedef int ElemType; typedef struct Sqll { ElemType *elem; i...原创 2018-06-08 17:27:47 · 237 阅读 · 0 评论 -
循环队列-顺序结构-数据结构
循环队列-顺序结构#define _CRT_SECURE_NO_WARNINGS #include "iostream" #include "stdlib.h" #include "windows.h" using namespace std; #define OK 1 #define ERROR 0 #define M 100 typedef int QElemType; //循环队列顺序存储...原创 2018-06-14 00:30:54 · 269 阅读 · 0 评论 -
顺序栈-数据结构
顺序栈#define _CAT_SECURE_NO_WARNINGS #include "iostream" #include "stdlib.h" #include "windows.h" using namespace std; #define OK 1 #define ERROR 0 #define M 100 typedef int ElemType; typedef char SEle...原创 2018-06-14 00:27:45 · 274 阅读 · 0 评论 -
邻接矩阵-数据结构
邻接矩阵#define _CRT_SECURE_NO_WARNINGS #include "iostream" #include "stdlib.h" #include "windows.h" #define OK 1 #define MVNum 100 #define MaxInt 32767 using namespace std; typedef char VerType; typede...原创 2018-06-14 00:26:25 · 1278 阅读 · 0 评论 -
领接表-数据结构
领接表#define _CRT_SECURE_NO_WARNINGS #include "iostream" #include "stdlib.h" #include "windows.h" #include "InterFace.h" using namespace std; #define OK 1 #define ERROR 0 #define M 100 typedef char VexT...原创 2018-06-14 00:25:12 · 1043 阅读 · 0 评论 -
链队列-数据结构
链队列#define _CRT_SECURE_NO_WARNINGS #include "iostream" using namespace std; #include "stdlib.h" #include "windows.h" #define OK 1 #define ERROR 0 #define M 100 typedef int QElemType; typedef struct Q...原创 2018-06-14 00:23:58 · 316 阅读 · 0 评论 -
哈希查找-数据结构
哈希查找#define _CRT_SECURE_NO_WARNINGS #include "iostream" #include "stdlib.h" #include "windows.h" #include "iomanip" using namespace std; #define OK 1 #define ERROR 0 #define M 18 #define P 16 typedef ...原创 2018-06-14 00:22:33 · 844 阅读 · 0 评论 -
Huffman-哈夫曼树-数据结构
哈夫曼树#include "iostream" #include "string.h" using namespace std; //定义哈夫曼树存储结构 typedef struct{ int weight;//权重 int parent,lc,rc;//指向双亲、左孩子、右孩子指针 }HTNode,*HuffmanTree; //定义哈夫曼编码存储结构 typedef char** Hu...原创 2018-06-14 00:21:02 · 379 阅读 · 0 评论