![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
西门逸珲 孙
这个作者很懒,什么都没留下…
展开
-
c语言图的广度优先遍历(BFS遍历)和深度优先遍历(DFS遍历)示例代码
#include <stdio.h>#include <stdlib.h>#define MAX_VERTEX_NUM 100 // 顶点数目的最大值#define TRUE true#define FALSE falsebool visited[MAX_VERTEX_NUM];typedef int ElemType;typedef int VertexType; // 顶点的数据类型typedef int EdgeType;原创 2020-09-26 19:21:55 · 4585 阅读 · 2 评论 -
c语言数据结构——单链表操作(全)
#include <stdio.h>#include <stdlib.h>#define ERROR 0#define OK 1typedef int ElemType;typedef int Status;typedef struct LNode{ ElemType data; struct LNode *next;}LNode, *LinkList;// 头插法建立单链表LinkList List_Head(LinkList &L){ LN原创 2020-06-30 13:47:12 · 167 阅读 · 0 评论 -
c语言数据结构之双链表基本操作
#include<stdio.h>#include<stdlib.h>#define ERROR 0#define OK 1typedef int Status;typedef int ElemType;typedef struct DuLNode{ ElemType data; struct DuLNode *prior; struct DuLNode *next;}DuLNode, *DuLinkList;// 对双链表进行初始化Status Ini原创 2020-06-01 11:55:07 · 200 阅读 · 0 评论 -
c语言数据结构之单链表基本操作
#include<stdio.h>#include<stdlib.h>#define ERROR 0#define OK 1typedef int Status;typedef int ElemType;typedef struct LNode{ ElemType data; struct LNode *next;}LNode, *LinkList;// 对链表进行初始化Status InitList_L(LinkList &L){ L = (原创 2020-06-01 11:51:28 · 189 阅读 · 0 评论 -
C/C++数据结构线性表入门集
```c#include<stdio.h>#include<stdlib.h>#define LIST_INIT_SIZE 100#define LISTINNCREMENT 10#define ERROR 0#define OK 1#define OVERFLOW -2 typedef int ElemType; typedef int Status; typedef struct{ ElemType *elem; //存储空间地.原创 2020-05-21 19:10:22 · 99 阅读 · 0 评论 -
计算机考研之数据结构概念
1.1 数据结构讨论的范畴著名计算机科学家、Pascal语言发明者N.沃思教授提出:程序 = 算法 + 数据结构程序设计:为计算机处理问题编制的一组指令集算法:处理问题的策略数据结构:问题的数学模型,计算机按照程序所描述的算法对某种结构的数据进行加工处理数值计算的程序设计问题结构静力分析计算(线性代数方程组)全球天气预报(环流模式方程)非数值计算的程序设计问题求一组(n个)整数中的最大值?计算机对弈足协的数据库管理书目自动检索系统数据范畴范畴 数据结构是一门研究原创 2020-05-11 17:58:54 · 493 阅读 · 0 评论