![](https://img-blog.csdnimg.cn/20190722172454381.jpeg?x-oss-process=image/resize,m_fixed,h_224,w_224)
数据结构
加油!熟能手巧。不要怕慢,一直在路上
哦柯南
早日写出论文QAQ
展开
-
最小生成树——prim算法
#include<bits/stdc++.h>using namespace std;#include<limits.h>#define maxn 100#define max1 1000int parent[maxn];int lowcost[maxn];typedef struct { int arc[maxn][maxn]; int ver[max...原创 2019-07-27 13:25:28 · 100 阅读 · 0 评论 -
图的深度优先遍历和广度优先遍历
上代码!广度↓#include<stdio.h>#include<stdlib.h>#define maxn 50typedef struct node{ int elem; struct node *next;}DataNode;typedef struct{ int count; DataNode *front; DataNode *re...原创 2019-05-25 19:16:25 · 104 阅读 · 0 评论 -
C语言实现队列
真的很衰!。。。链式:#include<bits/stdc++.h>typedef struct node{ int elem; struct node *next;}DataNode;typedef struct{ int count; DataNode *front; DataNode *rear;}LinkNode,*HeadNode;in...原创 2019-06-12 20:38:10 · 125 阅读 · 0 评论 -
C语言实现线性表!
继续完善ing.......链式:#include<stdio.h>#include<stdlib.h>typedef struct node{ int elem; struct node *next;}DataNode; typedef struct { int count; DataNode *next;}*LinkHead,LinkNo...原创 2019-05-27 18:24:41 · 10411 阅读 · 1 评论 -
SqStack
今天差点忘了,我希望我一直有热情,一直有激情!#include<stdio.h>#include<stdlib.h>#include<algorithm>using namespace std;#define INITSIZE 20#define ADDSIZE 10 typedef struct{ int *top; int *bas...原创 2019-09-23 18:57:13 · 1647 阅读 · 0 评论 -
SqList
以后每天都要坚持 不可一日间断!#include<stdio.h>#include<stdlib.h>#include<algorithm>using namespace std;#define INIT_SIZE 20#define ADD_SIZE 10typedef struct { int *elem; int count;...原创 2019-09-22 17:35:23 · 1387 阅读 · 0 评论 -
LinkQueue
昨天忘更了 罪恶 要presevere#include<stdio.h>#include<algorithm>using namespace std;typedef struct DataNode{ int elem; struct DataNode *next;}DataNode;typedef struct{ int count; ...原创 2019-09-21 20:02:20 · 213 阅读 · 0 评论 -
LinkStack
#include<stdio.h>#include<algorithm>using namespace std;typedef struct DataNode{ int elem; struct DataNode *next;}DataNode;typedef struct { int count; DataNode *next;}HeadNode...原创 2019-09-19 13:19:34 · 240 阅读 · 0 评论 -
LinkList
#include<stdio.h>#include<algorithm>using namespace std;typedef struct DataNode{ int elem; struct DataNode *next;}DataNode;typedef struct { int count; DataNode *next;}HeadNode...原创 2019-09-19 13:11:55 · 132 阅读 · 0 评论 -
SqQueue
今日书写草率,事出有因~#include<stdio.h>#include<stdlib.h>#include<algorithm>using namespace std;#define INITSIZE 20typedef struct { int *elem; int front; int rear;}SqQueue;in...原创 2019-09-24 20:03:33 · 1944 阅读 · 3 评论