![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
daversun
这个作者很懒,什么都没留下…
展开
-
顺序表
#include<iostream> #include<cstdio> #include<stdlib.h> #include<malloc.h> #define LIST_INIT_SIZE 10//线性表初始长度 #define LISTINCREMENT 10//增量 #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #原创 2017-07-13 14:26:27 · 213 阅读 · 0 评论 -
静态链表
#include<iostream> #include<cstdio> #include<stdlib.h> #include<malloc.h> #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLE -1 #define OVERFLOW -2 #define MAXSIZE 10 using原创 2017-07-15 20:06:12 · 269 阅读 · 0 评论 -
串
#include<iostream> #include<cstring> #include<cstdio> #include<stdlib.h> #include<malloc.h> #define LIST_INIT_SIZE 10//线性表初始长度 #define LISTINCREMENT 10//增量 #define TRUE 1 #define FALSE 0 #define OK原创 2017-08-17 19:59:08 · 200 阅读 · 0 评论 -
单链表
#include<iostream> #include<cstdio> #include<stdlib.h> #include<malloc.h> #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLE -1 #define OVERFLOW -2 typedef int ElemType; typ原创 2017-07-15 15:06:16 · 173 阅读 · 0 评论 -
stack
#include<iostream> #include<cstdio> #include<stdlib.h> #include<malloc.h> #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLE -1 #define OVERFLOW -2 #define MAXSIZE 10 #defin原创 2017-07-27 22:18:48 · 255 阅读 · 0 评论 -
循环队列
#include<iostream> #include<cstdio> #include<stdlib.h> #include<malloc.h> #define MAXSIZE 100 #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLE -1 #define OVERFLOW -2 using原创 2017-08-07 15:56:32 · 209 阅读 · 0 评论 -
链式队列
#include<iostream> #include<cstdio> #include<stdlib.h> #include<malloc.h> #define LIST_INIT_SIZE 10//线性表初始长度 #define LISTINCREMENT 10//增量 #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #原创 2017-08-07 14:53:01 · 209 阅读 · 0 评论 -
排序
#include<iostream> #include<cstdio> #define INF 999999 #define MAXSIZE 20 using namespace std;//选择排序、快速排序、希尔排序、堆排序不是稳定的排序算法 //冒泡排序、插入排序、归并排序和基数排序都是稳定的排序算法。//直接插入排序,最好o(n),最差o(n^2)平均时间复杂度:o(n^2),空间复杂度 o原创 2017-09-28 22:10:24 · 269 阅读 · 0 评论