数据结构
LYR1994
这个作者很懒,什么都没留下…
展开
-
矩阵的常规压缩存储
SparseMatrix.h#ifndef _SPARSEMATRIX_H#define _SPARSEMATRIX_H#include<stdio.h>#include<memory.h>#include<stdlib.h>#include<assert.h>#define ElemType int#define MAXSI...原创 2020-05-06 00:56:57 · 180 阅读 · 0 评论 -
线性表之前后连接双链表
SCList.h#ifndef __SCLIST_H__#define __SCLIST_H__#include<stdio.h>#include<malloc.h>#include<assert.h>#define ElemType inttypedef struct Node{ ElemType data; struct Nod...原创 2020-04-28 23:52:39 · 155 阅读 · 0 评论 -
线性表之单循环链
头文件:StaticList.h#ifndef __STATICLIST_H__#define __STATICLIST_H__#include<stdio.h>#define MAX_SIZE 20#define ElemType chartypedef struct ListNode{ ElemType data; int cur;}Li...原创 2020-04-28 23:49:33 · 143 阅读 · 0 评论 -
线性表之静态链
SLish.h#ifndef __SLIST_H__#define __SLIST_H__#include<stdio.h>#include<malloc.h>#include<assert.h>#define ElemType inttypedef struct Node{ ElemType data; struct Node *...原创 2020-04-28 23:44:22 · 142 阅读 · 0 评论 -
线性表之单链
#include<stdio.h>#include<assert.h>#include<malloc.h>#define ElemType inttypedef struct ListNode{ ElemType data; struct ListNode *next;}ListNode;typedef ListNode* List;...原创 2020-04-28 23:39:43 · 158 阅读 · 0 评论 -
线性表之数组顺序表
头文件:SeqLish.h#ifndef __SEQLIST_H__#define __SEQLIST_H__#include<stdio.h>#include<malloc.h>#include<assert.h>#define SEQLIST_INIT_SIZE 8#define INC_SIZE 3type...原创 2020-04-28 23:35:58 · 155 阅读 · 0 评论 -
数据结构算法之图的搜索的图解
原创 2020-04-23 20:05:20 · 299 阅读 · 0 评论 -
数据结构算法之排序与数组查找图解
原创 2020-04-23 19:18:01 · 236 阅读 · 0 评论 -
数据结构算法之堆与二叉树查找(搜索、排序)树图解
原创 2020-04-23 19:14:11 · 245 阅读 · 0 评论 -
数据结构算法之哈希表原理图解
原创 2020-04-23 16:17:58 · 815 阅读 · 0 评论 -
数据结构算法之栈与队列
原创 2020-04-23 16:14:38 · 137 阅读 · 0 评论 -
数据结构算法之链表图解
数据在内存中是连续存储的。原创 2020-04-23 16:12:00 · 362 阅读 · 0 评论