- 博客(5)
- 收藏
- 关注
原创 数据结构笔记5
图的定义图是由有限的顶点和顶点之间的边组成表示为:G=(V,E)G:图V:顶点E:边(有向边:(v1,v2),无向边:<v1,v2>)任意两个点之间是无向边组成的图是无向图,否则是有向图。简单图1.不存在顶点到其自身的边2.同一条边不重复出现邻接点,依附无向图中,对于顶点v1,v2,若存在(v1,v2),则顶点v1,v2互为邻接点,边(v1,v2)依附于顶点...
2018-11-26 11:24:27
444
原创 数据结构笔记4
@TOC#include using namespace std;template struct BiNode{DataType data;BiNode *lchild,*rchild;};templateclass BiTree{public:BiTree(){root=Creat(root);}~BiTree(){Release(root);}void Pre...
2018-11-26 11:05:54
156
原创 数据结构笔记2
#include using namespace std;const int MaxSize=100;templateclass SeqList{public:SeqList(){length=0;}SeqList(DataType a[],int n);~SeqList(){}int Length(){return length;}DataType Get(int i);...
2018-10-21 18:29:22
197
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅