【c语言】数据结构与算法

【c语言】数据结构与算法

标记位:标记更新位置
链表完结

引言

参考教材:王导数据结构

:此文不再像Java语言或框架的学习一样,补充很多语句帮助理解
此处更多的是做代码笔记,以便快速复习数据结构常见考察的代码。

在这里插入图片描述

结构体

- 定义方式

  1. 定义一个student类型的结构体
struct student{
	int age;
	String name;
}; 
  1. 定义一个student类型的结构体,并声明一个结构体类型的变量s1;
struct student{
	int age;
	String name;
}s1; 
  1. 定义一个匿名结构体,并声明一个结构体类型的变量s1
struct{
	int age;
	String name;
}s1; 

- 程序结构

  1. 把匿名结构体重命名为date
typedef struct{
	int age;
	String name;
}date;
  1. 把student结构体重命名为date
typedef struct student{
	int age;
	int name;
}date;

- 结构体的使用

#include<Stdio.h>
#define MaxSize 10
typedef struct{
	int data;
	int people;
}date;

typedef struct{
	int data[MaxSize];
	int length;
} Sqlist;

int main(){
	//1.结构体data 
	date a;
	a.data=1;
	a.people=2;
	printf(" data is %d",a.data);
	printf(" people is %d",a.people);

	//2.结构体SqList
	Sqlist b;
	b.length=0;
	for(int i=0;i<MaxSize;i++){
		b.data[i]=i;
		b.length++;
	}
	for(int i=0;i<MaxSize;i++){
		printf("data is %d\n",b.data[i]);
		if(i==MaxSize-1) printf("length is %d\n",b.length); 
	}
	 
}

顺序表

- 线性表

静态初始化

定义顺序表

#define MaxSize 10

typedef struct{
	int elem[MaxSize];
	int length;
}SqList;

initSqList(SqList & l); 初始静态化顺序表

void initSqList(SqList & l){
	for(int i=0;i<MaxSize;i++){
		l.elem[i]=0;
	}
	l.length=0;
}

动态初始化

定义顺序表


#define InitSize 10

typedef struct{
	int *data;
	int length;
	int maxsize;	
}SqList;

initSqList(SqList & l); 初始化动态顺序表


//初始化一个顺序表
void initSqList(SqList & l){
	l.data=(int *)malloc(sizeof(int)*InitSize);
	l.length=0;
	l.maxsize=InitSize;
}

increaseSqList(SqList & l,int len); 增加顺序表长度

//动态增长一个顺序表
void increaseSqList(SqList & l,int len){
	int *p=(int *)malloc(sizeof(int)*(InitSize+len));
	l.maxsize=InitSize+len;
	for(int i=0;i<l.length;i++){
		l.data[i]=p[i];
	}
	free(p);
}

基本操作

ListInsert(SqList &L,int index,int element); 将元素e插入到L的第i个位置

bool ListInsert(SqList &L,int index,int element){
	if(i<1||i>L.length+1) return false;
	for(int i=L.length;i>=index;i--){
		L.data[i]=l.data[i-1]
	}
	L.data[i-1]=element;
	L.length++;
	return true;
}

ListDelete(SqList &L,int index,int element); 删除L第i个位置的元素删除,并返回e

ListDelete(SqList &L,int index,int element){
	if(i<1||i>L.length+1) return false;
	element=l.data[index-1]
	for(int i=index;i<L.length;i++){
		L.data[i-1]=l.data[i]
	}	
	return true;
}

GetElement(SqList &L,int index); 获取表L第i个位置上的元素

int GetElement(SqList &L,int index){
	return L.data[index-1];
}

GetElement(SqList &L,int element); 查找表L上第一个元素值等于e的元素,并返回其下标

int GetElement(SqList &L,int element){
	for(int i=0;i<L.length;i++){
		if(l.data[i]==element) return i+1;
	}
	return 0;
}

- 单链表

定义

typedef struct LNode{
	int data;
	struct LNode *next;
}LNode,*LinkList;

上文等价于

struct LNode{
	int data;
	struct LNode *next;
}

typedef struct LNode LNode;
typedef struct LNode *LinkList;

:LNode *L :声明一个指向单链表第一个元素的指针
或:LinkList L :声明一个指向单链表第一个元素的指针

不带头结点的链表

InitList(LinkList &L); 初始化

InitList(LinkList &L){
	L=null;
	return true;
}

isEmpty(LinkList &L); 判断链表是否为空

bool isEmpty(LinkList &L){
	return (L==null);
}

ListInsert(LinkList &L,int index,int element); 在第i个位置插入元素e

bool ListInsert(LinkList &L,int index,int element){
	if(index<1) return false;
	if(index==1){
		LNode *s=(LNode *)malloc(sizeof(LNode));
		s->data=element;
		s->next=L;
		L=s;
		return true;
	}
	LNode *p;
	int j=0;
	p=L;
	while(p!=null&&j<index-1){
		p=p->next;
		j++;
	}
	if(p==null) return false;
	LNode *s=(LNode *)malloc(sizeof(LNode));
	s->data=element;
	s->next=p->next;
	p->next=s;
	return true;
}

带头结点的链表

InitList(LinkList &L); 初始化

bool InitList(LinkList &L){
	L=(LNode *)malloc(sizeof(LNode));
	if(L==null) return false;
	L->next=null;
	return true;
}

isEmpty(LinkList &L); 判断链表是否为空

bool isEmpty(LinkList &L){
	return (L->next==null);
}

ListInsert(LinkList &L,int index,int element); 在第i个位置插入元素e

bool ListInsert(LinkList &L,int index,int element){
	if(index<1) return false;
	LNode *p;
	int j=0;
	p=L;
	while(p!=null&&j<index-1){
		p=p->next;
		j++;
	}
	if(p==null) return false;
	LNode *s=(LNode *)malloc(sizeof(LNode));
	s->data=element;
	s->next=p->next;
	p->next=s;
	return true;
}

ListDelete(LinkList &l,int index,int element); 按位序删除

bool ListDelete(LinkList &l,int index,int element){
	if(i<1)
		return false;
	int j=0;
	LNode *p=L;
	while(j<i-1&&p!=NULL){
		j++;
		p=p->next;
	}
	if(p==NULL)
		return false;
	if(p->next==NULL)
		return false;
	LNode *q=p->next;
	e-q->data;
	p->next=q->next;
	free(q);
	return true;
	
}

GetElem(LinkList L,int index); 按位查找

LNode * GetElem(LinkList L,int index){
	int j=0;
	LNode *p=(LNode*)malloc(sizeof(LNode));
	p=L;
	while(j<i;p!=null){
		p=p->next;
		j++;
	}
	return p;
}

LocateElem(LinkList L,int index); 按值查找

LNode *LocateElem(LinkList L,int element){
	LNode *p=L->next;
	while(p!=NULL && p->data!=e)
		p=p->next;
	return p;
}

Length(LinkList L); 求表长

int Length(LinkList L){
	int length=0;
	LNode *p=L->next;
	while(L!=NULL){
		p=p->next;
		length++;
	}
	return length;
}

LinkList_Create(LinkList &L); 尾插法建立单链表

LinkList LinkList_Create(LinkList &L){
	int x;
	L=(LinkList)malloc(sizeof(LNode));
	scanf("%d",&x);
	LNode *s,p=L;
	while(x!=999){
		s=(LNode*)malloc(sizeof(LNode));
		s->data=x;
		s->next=p->next;
		p=s;
		scanf("%d",&x);
	}
	p->next=NULL;
	return L;
}

LinkList_Create(LinkList &L); 尾插法建立单链表

LinkList LinkList_Create(LinkList &L){
	int x;
	L=(LinkList)malloc(sizeof(LNode));
	L->next=NULL;
	scanf("%d",&x);
	LNode*s;
	while(x!=999){
		s=(LNode *)malloc(sizeof(LNode));
		s->data=x;
		s->next=L->next;
		L->next=s;
		scanf("%d",&x);
	}
	return L;
	
}

均适用

insertNextNode(LNode * p,int element); p结点后插入元素e;

bool insertNextNode(LNode *p,int element){
	if(p==NULL)
		return false;
	LNode *s=(LNode *)malloc(sizeof(LNode));
	if(s==null)
		return false;
	s->data=e;
	s->next=p->next;
	p->next=s;
	return true;
}

insertPriorNode(LNode * p,int element); p结点前插入元素e;

bool insertPriorNode(LNode *p,int element){
	if(p==NULL)
		return false;
	LNode *s=(LNode *)malloc(sizeof(LNode));
	if(s==null)
		return false;
	LNode *q=(LNode*)malloc(sizeof(LNode));
	q->data=p->data;
	q->next=p->next;
	p->next=q;
	p->data=element;
	return true;
}

InsertPriorNode(LNode * p,LNode * s); 在p结点前插入s

bool InsertPriorNode(LNode *p,LNode *s){
	if(s==NULL||p==NULL)
		return false;
	int x=p->data;
	s->next=p->next;
	p->next=s;
	p->data=s->data;
	s->data=x;
	return true;
	
}

DeleteNode(LNode * p); 指定结点删除

bool DeleteNode(LNode *p){
	if(p==NULL)
		return false;
	LNode *q=p->next;
	p->next=q->next;
	free(q);
	return true;
}

双链表

1.定义双链表

typedef struct DNode{
	int data;
	struct DNode *next,*prior;
}DNode,*DLinkList;

2.初始化双链表

bool initDLinkList(DLinkList &L){
	L=(LNode *)malloc(sizeof(LNode));
	if(L==NULL)
		return false;
	L->next=NULL;
	L->prior=NULL:
	return true;
}

3.判空

bool isEmpty(DLinkList L){
	return (L->next==NULL);
}

InsertNextNode(LNode * p,LNode * s); 在p结点后插入s结点

bool InsertNextNode(LNode * p,LNode * s){
	if(p==NULL||s==NULL)
		return false;
	s->next=p->next;
	if(p->next!=NULL)
		p->next->prior=s;
	p->next=s;
	s->prior=p;
	return true;
	
}

deleteNextNode(LNode * p); 删除结点p的后继结点

bool deleteNextNode(LNode * p){
	if(p==NULL)
		return false;
	LNode *s=p->next;
	if(s==NULL)
		return false;
	p->next=s->next;
	if(s->next!=NULL)
		s->next->prior=p;
	free(s);
	return true;
}

destoryList(DLinkList &L); 销毁双链表L

bool destoryList(DLinkList &L){
	if(L==NULL)
		return false;
	while(L->next!=NULL)
		deleteNextNode(L);
	free(L);
	return true;
}

循环单链表

1.定义循环单链表

typedef struct LNode{
	int data;
	struct LNode * next;
}

initList(LinkList &L); 初始化循环单链表

bool initList(LinkList &L){
	L=(LNode *)malloc(sizeof(LNode));
	if(L==NULL)
		return false;
	L->next=L;
	return true;
}

isEmpty(LinkList L); 判断循环单链表是否为空

bool isEmpty(LinkList L){ 
	return (L->next==L);
}

isTail(LinkList L,LNode * p); 判断结点p是否为循环单链表表尾结点

bool isTail(LinkList L,LNode * p){
	return (p->next==L);
}

循环双链表

1.定义循环双链表

typedef struct DNode{
	int data;
	struct DNode *next ,*prior;
}DNode,*DLinkList;

initDList(DLinkLust &L); 初始化循环双链表

bool initDList(DLinkLust &L){
	L=(DNode*)malloc(sizeof(DNode));
	if(L==NULL)
		return false;
	L->next=L;
	L->prior=L;
	return true;
}

isEmpty(DLinkList L); 判断循环双链表是否为空

bool isEmpty(DLinkList L){
	return (L->next==L);
}

isTail(DinkList L,DNode * p); 判断结点p是否为循环双链表表尾结点

bool isTail(DLinkList L,DNode * p){
	return (p->next==L);
}

insertNextNode(DNode * p,DNode * s); 在p结点之后插入s结点

bool insertNextNode(DNode *p,DNode *s){
	if(p==NULL||s==NULL)
		return false;
	s->next=p->next;
	p->next->prior=s;
	p->next=s;
	s->prior=p;
	return true;
}

deleteNextNode(DNode * p); 删除p的后继结点q

bool deleteNextNode(DNode * p){
	LNode *q=p->next;
	p->next=q->next;
	q->next->prior=p;
	free(q);
	return true;
}
16进制10进制.txt 32.txt asm.txt Crctable.txt C标志符命名源程序.txt erre.txt erre2.txt ff.txt for循环的.txt list.log N皇后问题回溯算法.txt ping.txt re.txt source.txt winsock2.txt ww.txt 万年历.txt 万年历的算法 .txt 乘方函数桃子猴.txt 乘法矩阵.txt 二分查找1.txt 二分查找2.txt 二叉排序树.txt 二叉树.txt 二叉树实例.txt 二进制数.txt 二进制数2.txt 余弦曲线.txt 余弦直线.txt 傻瓜递归.txt 冒泡排序.txt 冒泡法改进.txt 动态计算网络最长最短路线.txt 十五人排序.txt 单循环链表.txt 单词倒转.txt 单链表.txt 单链表1.txt 单链表2.txt 单链表倒序.txt 单链表的处理全集.txt 双链表正排序.txt 反出字符.txt 叠代整除.txt 各种排序法.txt 哈夫曼算法.txt 哈慢树.txt 四分砝码.txt 四塔1.txt 四塔2.txt 回文.txt 图.txt 圆周率.txt 多位阶乘.txt 多位阶乘2.txt 大加数.txt 大小倍约.txt 大整数.txt 字符串查找.txt 字符编辑.txt 字符编辑技术(插入和删除) .txt 完数.txt 定长串.txt 实例1.txt 实例2.txt 实例3.txt 小写数字转换成大写数字1.txt 小写数字转换成大写数字2.txt 小写数字转换成大写数字3.txt 小字库DIY-.txt 小字库DIY.txt 小孩分糖果.txt 小明买书.txt 小白鼠钻迷宫.txt 带头结点双链循环线性表.txt 平方根.txt 建树和遍历.txt 建立链表1.txt 扫描码.txt 挽救软盘.txt 换位递归.txt 排序法.txt 推箱子.txt 数字移动.txt 数据结构.txt 数据结构2.txt 数据结构3.txt 数组完全单元.txt 数组操作.txt 数组递归退出.txt 数组递归退出2.txt 文件加密.txt 文件复制.txt 文件连接.txt 无向图.txt 时间陷阱.txt 杨辉三角形.txt 栈单元加.txt 栈操作.txt 桃子猴.txt 桶排序.txt 检出错误.txt 检测鼠标.txt 汉字字模.txt 汉诺塔.txt 汉诺塔2.txt 灯塔问题.txt 猴子和桃.txt 百鸡百钱.txt 矩阵乘法动态规划.txt 矩阵转换.txt 硬币分法.txt 神经元模型.txt 穷举搜索法.txt 符号图形.txt 简单数据库.txt 简单计算器.txt 简单逆阵.txt 线性顺序存储结构.txt 线索化二叉树.txt 绘制圆.txt 编随机数.txt 网络最短路径Dijkstra算法.txt 自我复制.txt 节点.txt 苹果分法.txt 螺旋数组1.txt 螺旋数组2.txt 试题.txt 诺汉塔画图版.txt 读写文本文件.txt 货郎担分枝限界图形演示.txt 货郎担限界算法.txt 质因子.txt 输出自已.txt 迷宫.txt 迷宫问题.txt 逆波兰计算器.txt 逆矩阵.txt 逆阵.txt 递堆法.txt 递归桃猴.txt 递归车厢.txt 递推.txt 逻辑移动.txt 链串.txt 链栈.txt 链表十五人排序.txt 链表(递归).txt 链队列.txt 队列.txt 阶乘递归.txt 阿姆斯特朗数.txt 非递归.txt 顺序栈.txt 顺序表.txt 顺序队列.txt 骑士遍历1.txt 骑士遍历2.txt 骑士遍历回逆.txt 黑白.txt
16进制10进制.txt 32.txt asm.txt Crctable.txt C标志符命名源程序.txt erre.txt erre2.txt ff.txt for循环的.txt list.log N皇后问题回溯算法.txt ping.txt re.txt source.txt winsock2.txt ww.txt 万年历.txt 万年历的算法 .txt 乘方函数桃子猴.txt 乘法矩阵.txt 二分查找1.txt 二分查找2.txt 二叉排序树.txt 二叉树.txt 二叉树实例.txt 二进制数.txt 二进制数2.txt 余弦曲线.txt 余弦直线.txt 傻瓜递归.txt 冒泡排序.txt 冒泡法改进.txt 动态计算网络最长最短路线.txt 十五人排序.txt 单循环链表.txt 单词倒转.txt 单链表.txt 单链表1.txt 单链表2.txt 单链表倒序.txt 单链表的处理全集.txt 双链表正排序.txt 反出字符.txt 叠代整除.txt 各种排序法.txt 哈夫曼算法.txt 哈慢树.txt 四分砝码.txt 四塔1.txt 四塔2.txt 回文.txt 图.txt 圆周率.txt 多位阶乘.txt 多位阶乘2.txt 大加数.txt 大小倍约.txt 大整数.txt 字符串查找.txt 字符编辑.txt 字符编辑技术(插入和删除) .txt 完数.txt 定长串.txt 实例1.txt 实例2.txt 实例3.txt 小写数字转换成大写数字1.txt 小写数字转换成大写数字2.txt 小写数字转换成大写数字3.txt 小字库DIY-.txt 小字库DIY.txt 小孩分糖果.txt 小明买书.txt 小白鼠钻迷宫.txt 带头结点双链循环线性表.txt 平方根.txt 建树和遍历.txt 建立链表1.txt 扫描码.txt 挽救软盘.txt 换位递归.txt 排序法.txt 推箱子.txt 数字移动.txt 数据结构.txt 数据结构2.txt 数据结构3.txt 数组完全单元.txt 数组操作.txt 数组递归退出.txt 数组递归退出2.txt 文件加密.txt 文件复制.txt 文件连接.txt 无向图.txt 时间陷阱.txt 杨辉三角形.txt 栈单元加.txt 栈操作.txt 桃子猴.txt 桶排序.txt 检出错误.txt 检测鼠标.txt 汉字字模.txt 汉诺塔.txt 汉诺塔2.txt 灯塔问题.txt 猴子和桃.txt 百鸡百钱.txt 矩阵乘法动态规划.txt 矩阵转换.txt 硬币分法.txt 神经元模型.txt 穷举搜索法.txt 符号图形.txt 简单数据库.txt 简单计算器.txt 简单逆阵.txt 线性顺序存储结构.txt 线索化二叉树.txt 绘制圆.txt 编随机数.txt 网络最短路径Dijkstra算法.txt 自我复制.txt 节点.txt 苹果分法.txt 螺旋数组1.txt 螺旋数组2.txt 试题.txt 诺汉塔画图版.txt 读写文本文件.txt 货郎担分枝限界图形演示.txt 货郎担限界算法.txt 质因子.txt 输出自已.txt 迷宫.txt 迷宫问题.txt 逆波兰计算器.txt 逆矩阵.txt 逆阵.txt 递堆法.txt 递归桃猴.txt 递归车厢.txt 递推.txt 逻辑移动.txt 链串.txt 链栈.txt 链表十五人排序.txt 链表(递归).txt 链队列.txt 队列.txt 阶乘递归.txt 阿姆斯特朗数.txt 非递归.txt 顺序栈.txt 顺序表.txt 顺序队列.txt 骑士遍历1.txt 骑士遍历2.txt 骑士遍历回逆.txt 黑白.txt
全集内容结构如下: ├─图 │ ├─关键路径(有向无环图及其应用2) │ │ 1.txt │ │ ALGraph.cpp │ │ ALGraph.h │ │ CriticalPath.cpp │ │ CriticalPath.h │ │ InfoType.cpp │ │ InfoType.h │ │ LinkList.cpp │ │ LinkQueue.cpp │ │ LinkQueue.h │ │ Main.cpp │ │ SqStack.cpp │ │ SqStack.h │ │ Status.h │ │ VertexType.cpp │ │ VertexType.h │ │ │ ├─图的关节点 │ │ 1.txt │ │ ALGraph.cpp │ │ ALGraph.h │ │ FindArticul.cpp │ │ FindArticul.h │ │ InfoType.cpp │ │ InfoType.h │ │ LinkList.cpp │ │ LinkQueue.cpp │ │ LinkQueue.h │ │ main.cpp │ │ Status.h │ │ VertexType.cpp │ │ VertexType.h │ │ │ ├─图的数组表示法 │ │ InfoType.cpp │ │ InfoType.h │ │ Main.cpp │ │ MGraph.cpp │ │ MGraph.h │ │ Status.h │ │ VertexType.cpp │ │ VertexType.h │ │ │ ├─图的遍历 │ │ ALGraph.cpp │ │ ALGraph.h │ │ DEBUG.txt │ │ InfoType.cpp │ │ InfoType.h │ │ LinkList.cpp │ │ LinkQueue.cpp │ │ LinkQueue.h │ │ Main.cpp │ │ MGraph.cpp │ │ MGraph.h │ │ MTraverse.cpp │ │ MTraverse.h │ │ Status.h │ │ t1.txt │ │ t2.txt │ │ VertexType.cpp │ │ VertexType.h │ │ │ ├─图的邻接表存储结构 │ │ ALGraph.cpp │ │ ALGraph.h │ │ InfoType.cpp │ │ InfoType.h │ │ LinkList.cpp │ │ LinkQueue.cpp │ │ LinkQueue.h │ │ Main.cpp │ │ Status.h │ │ t1.txt │ │ t2.txt │ │ VertexType.cpp │ │ VertexType.h │ │ │ ├─最短路径(从某个源点到其余各顶点的的最短路径) │ │ 1.txt │ │ 2.txt │ │ InfoType.cpp │ │ InfoType.h │ │ Main.cpp │ │ MGraph.cpp │ │ MGraph.h │ │ ShortestPath_DIJ.cpp │ │ ShortestPath_DIJ.h │ │ Status.h │ │ VertexType.cpp │ │ VertexType.h │ │ │ └─最短路径(每一对顶点间的最短路径) │ 1.txt │ 2.txt │ InfoType.cpp │ InfoType.h │ Main.cpp │ map.txt │ MGraph.cpp │ MGraph.h │ RailwaySearch.cpp │ ShortestPath_FLOYD.cpp │ ShortestPath_FLOYD.h │ Status.h │ VertexType.cpp │ VertexType.h │ ├─排序 │ ├─冒泡排序 │ │ 1.txt │ │ main.cpp │ │ RedType.cpp │ │ RedType.h │ │ Sq_BubbleSort.cpp │ │ Sq_BubbleSort.h │ │ │ ├─哈希表(哈希查找) │ │ ElemType.cpp │ │ ElemType.h │ │ HashTable.cpp │ │ HashTable.h │ │ main.cpp │ │ Records.txt │ │ │ ├─基数排序 │ │ 1.txt │ │ main.cpp │ │ SLL_RadixSort.cpp │ │ SLL_RadixSort.h │ │ │ ├─归并排序 │ │ 1.txt │ │ main.cpp │ │ RedType.cpp │ │ RedType.h │ │ sq_MergeSort.cpp │ │ sq_MergeSort.h │ │ │ ├─快速排序 │ │ 1.txt │ │ 2.txt │ │ 3.txt │ │ main.cpp │ │ RedType.cpp │ │ RedType.h │ │ Sq_QuitSort.cpp │ │ Sq_QuitSort.h │ │ │ ├─拓扑排序(有向无环图及其应用) │ │ 1.txt │ │ ALGraph.cpp │ │ ALGraph.h │ │ InfoType.cpp │ │ InfoType.h │ │ LinkList.cpp │ │ LinkQueue.cpp │ │ LinkQueue.h │ │ Main.cpp │ │ SqStack.cpp │ │ SqStack.h │ │ Status.h │ │ TopologicalSort.cpp │ │ TopologicalSort.h │ │ VertexType.cpp │ │ VertexType.h │ │ │ ├─插入排序 │ │ 1.txt │ │ main.cpp │ │ RedType.cpp │ │ RedType.h │ │ Sq_InsertSort.cpp │ │ Sq_InsertSort.h │ │ │ ├─插入排序(希尔排序) │ │ main.cpp │ │ RedType.cpp │ │ RedType.h │ │ Sq_InsertSort.cpp │ │ Sq_InsertSort.h │ │ │ ├─插入排序(表插入排序) │ │ 1.txt │ │ main.cpp │ │ RedType.cpp │ │ RedType.h │ │ SL_InsertSort.cpp │ │ SL_InsertSort.h │ │ │ ├─选择排序(堆排序) │ │ 1.txt │ │ 2.txt │ │ 3.txt │ │ main.cpp │ │ RedType.cpp │ │ RedType.h │ │ Sq_HeapSort.cpp │ │ Sq_HeapSort.h │ │ │ ├─选择排序(树形选择排序) │ │ 1.txt │ │ main.cpp │ │ RedType.cpp │ │ RedType.h │ │ Sq_TreeSelectionSort.cpp │ │ Sq_TreeSelectionSort.h │ │ │ └─选择排序(简单选择排序) │ 1.txt │ main.cpp │ RedType.cpp │ RedType.h │ Sq_SelectSort.cpp │ Sq_SelectSort.h │ ├─查找 │ ├─动态查找表(二叉排序树) │ │ 1.txt │ │ BiTree.cpp │ │ BiTree.h │ │ DElemType.cpp │ │ DElemType.h │ │ DSTable.cpp │ │ DSTable.h │ │ LinkQueue.cpp │ │ LinkQueue.h │ │ main.cpp │ │ QElemType.h │ │ Status.h │ │ TElmeType.h │ │ │ ├─平衡二叉树(二叉排序树的平衡旋转生成) │ │ 1.txt │ │ BBSTree.cpp │ │ BBSTree.h │ │ BiTree.cpp │ │ BiTree.h │ │ DElemType.cpp │ │ DElemType.h │ │ DSTable.cpp │ │ DSTable.h │ │ LinkQueue.cpp │ │ LinkQueue.h │ │ main.cpp │ │ QElemType.h │ │ Status.h │ │ TElmeType.h │ │ │ ├─平衡的m路查找树—B_树 │ │ BTree.cpp │ │ BTree.h │ │ main.cpp │ │ Record.h │ │ Status.h │ │ │ ├─键树(Trie树) │ │ 1.txt │ │ main.cpp │ │ Record.h │ │ Status.h │ │ TrieTree.cpp │ │ TrieTree.h │ │ │ ├─键树(双链键树) │ │ 1.txt │ │ DLTree.cpp │ │ DLTree.h │ │ main.cpp │ │ Record.h │ │ Status.h │ │ │ ├─静态查找表(有序表的查找) │ │ 1.txt │ │ main.cpp │ │ SElemType.cpp │ │ SElemType.h │ │ SSTable.cpp │ │ SSTable.h │ │ Status.h │ │ │ ├─静态查找表(静态树表查找) │ │ 1.txt │ │ BiTree.cpp │ │ BiTree.h │ │ LinkQueue.cpp │ │ LinkQueue.h │ │ main.cpp │ │ QElemType.h │ │ SElemType.cpp │ │ SElemType.h │ │ SSTable.cpp │ │ SSTable.h │ │ Status.h │ │ TElmeType.h │ │ │ └─静态查找表(顺序表的查找) │ 1.txt │ main.cpp │ SElemType.cpp │ SElemType.h │ SSTable.cpp │ SSTable.h │ Status.h │ ├─树 │ ├─二叉树的二叉链表存储 │ │ BiTree.cpp │ │ BiTree.h │ │ LinkQueue.cpp │ │ LinkQueue.h │ │ main.cpp │ │ QElemType.h │ │ Status.h │ │ TElmeType.h │ │ │ ├─二叉树的顺序存储结构 │ │ main.cpp │ │ SqBiTree.cpp │ │ SqBiTree.h │ │ Status.h │ │ TELemType_define.cpp │ │ │ ├─哈夫曼树和哈夫曼编码 │ │ HuffmanTree.cpp │ │ HuffmanTree.h │ │ main.cpp │ │ Status.h │ │ │ ├─最小生成树 │ │ 1.txt │ │ InfoType.cpp │ │ InfoType.h │ │ Main.cpp │ │ MGraph.cpp │ │ MGraph.h │ │ MiniSpanTree_Kruskal.cpp │ │ MiniSpanTree_Kruskal.h │ │ MiniSpanTree_PRIM.cpp │ │ MiniSpanTree_PRIM.h │ │ Status.h │ │ VertexType.cpp │ │ VertexType.h │ │ │ ├─树的二叉链表 │ │ CSTree.cpp │ │ CSTree.h │ │ LinkQueue.cpp │ │ LinkQueue.h │ │ main.cpp │ │ QElemType.h │ │ Status.h │ │ TElmeType.h │ │ │ ├─深度优先生成森林(无向图的连通性和生成树) │ │ ALGraph.cpp │ │ ALGraph.h │ │ CSTree.cpp │ │ CSTree.h │ │ DFSForest.cpp │ │ DFSForest.h │ │ InfoType.cpp │ │ InfoType.h │ │ LinkList.cpp │ │ LinkQueue.cpp │ │ LinkQueue.h │ │ Main.cpp │ │ QElemType.h │ │ Status.h │ │ TElmeType.h │ │ VertexType.cpp │ │ VertexType.h │ │ │ └─线索二叉树 │ BiThrTree.cpp │ BiThrTree.h │ main.cpp │ Status.h │ TElmeType.h │ └─表和数组 ├─KMP算法 │ Basic_operation_functions.h │ def_SString.h │ KMP.h │ main.cpp │ Status.h │ ├─n阶对称矩阵的压缩存储 │ Basic_operation_functions.h │ mian.cpp │ Status.h │ struct SyMatrix.h │ ├─三元组稀疏矩阵的压缩存储 │ Basic_operation_functions.h │ B_opera_fun_called_fun.h │ main.cpp │ Status.h │ struct TSMatrix.h │ Universal_main.h │ Universa_ts_b_opera_fun.h │ ├─不设头结点的单链表 │ LinkList.cpp │ LinkList.h │ main.cpp │ Status.h │ ├─串的堆存储结构 │ Basic_operation_functions.h │ HString.h │ Line_List.h │ main.cpp │ Status.h │ ├─串的定长顺序存储结构 │ Basic_operation_functions.h │ def_SString.h │ Main.cpp │ Status.h │ ├─广义表 │ GList.cpp │ GList.h │ main.cpp │ SString.cpp │ SString.h │ Status.h │ ├─数组 │ Basic_operation_functions.h │ main.cpp │ Status.h │ struct array.h │ ├─文本编辑(串和行表操作) │ Basic_operation_functions.h │ HString.h │ Line_List.h │ main.cpp │ Status.h │ ├─栈的顺序存储结构 │ main.cpp │ SqStack.cpp │ SqStack.h │ Status.h │ ├─走迷宫 │ Basic_called_functions.h │ Basic_operation_functions.h │ Main_Maze.cpp │ Status.h │ struct SqStack.h │ └─链队列 Basic_called_functions.cpp Basic_called_functions.h Basic_operation_functions.cpp main.cpp QElemType.h Status.h Struct_LinkQueue.h
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

君问归期魏有期

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值