自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 收藏
  • 关注

原创 排序技术

一、插入排序:1、直接插入排序希尔排序:(不稳定)在这里插入图片描述在这里插入图片描述

2018-11-28 21:58:56 241

原创 查找技术

class BiSortTree //二叉排序树类声明{public:BiSortTree (intal l, int n);~ BiSortTree( );void InsertBST (BiNode * root, BiNode *s);void DeleteBST (BiNode *p, BiNode *f) ;BiNode *SearchBST (BíNode ...

2018-11-28 21:42:34 193

原创 图笔记

templatevoid mgraph::dfstraverse(int v)//深度优先遍历{int x;int visited[maxsize];cout<<vertex[v];visited[v]=1;for(int j=0;j<vertexnum;j++)if(arc[v][j]==1&&visited[j]==0)dfstravers...

2018-11-28 21:21:41 193

原创 树笔记

templatevoid bitree::preorder(binode *bt)//前序遍历{if(btNULL)return;else{cout<data;preorder(bt->lchild);preorder(bt->rchild);}};templatevoid bitree::inorder(binode *bt)//中序遍历{if(b...

2018-11-28 21:13:06 171

原创

#include using namespace std;const int maxsize=10;templateclass mgraph{public:mgraph(T a[],int n,int e);~mgraph(){}void dfstraverse(int v);void bfstraverse(int v);private:T vertex[maxsize]...

2018-11-25 20:32:51 122

原创 顺序栈的括号匹配

#include using namespace std;const int stacksize=100;templateclass seqstack{public:seqstack(){top=-1;}; //构造函数,初始化一个空栈//~seqstack(){}; //构造函数为空void push(t x); //元素x入栈t pop(); ...

2018-11-25 20:32:16 380

原创 顺序队列

#include using namespace std;const int queuesize=100;templateclass cirqueue{public:cirqueue(){front=rear=queuesize-1;}~cirqueue(){}void enqueue(t x);t dequeue();t getqueue();int empty(){re...

2018-11-25 20:31:06 113

原创 链栈的括号匹配

#include using namespace std;templatestruct node{t data;node *next;};templateclass linkstack{public:linkstack(){top=NULL;} //构造函数,建立空栈~linkstack(); //析构函数,释放链栈中各结点的存储空间void ...

2018-11-25 20:29:21 391

原创 链队列

#include using namespace std;const int queuesize=100;templatestruct node{t data;node *next;};templateclass linkqueue{public:linkqueue(); //构造函数,初始化一个空的链队列~linkqueue(); //析构函数,释放链队列中...

2018-11-25 20:25:42 145

原创 二叉链表

#include using namespace std;templatestruct binode{T data;binode *lchild,*rchild;};templateclass bitree{public:bitree(){root=creat(root);}~bitree(){release(root);}void preorder(){preorde...

2018-11-25 20:22:30 191

原创 栈和队列

2018-10-28 18:43:18 113

原创 单链表

在这里插入图片描述

2018-10-27 19:15:58 93

原创 顺序表

#include using namespace std;const int maxsize=100;templateclass seqlist{public:seqlist(){length=0;}; //无参构造函数,建立一个空的顺序表seqlist(datatype a[],int n); //有参构造函数,建立一个长度为n的顺序表~seqlist()...

2018-10-26 12:58:48 164

原创 顺序表4

2018-10-26 12:55:05 133

原创 顺序表3

2018-10-26 12:54:11 244

原创 顺序表2

2018-10-26 12:53:42 131

原创 顺序表1

2018-10-26 12:53:06 190

原创 单链表求两个集合交集

#include using namespace std;templatestruct node{t data;node*next;};templateclass linklist{public:linklist(); //建立只有头结点的空链表linklist(t a[],int n);//建立有n个元素的空链表~linklist();int le...

2018-10-26 12:44:53 2939 1

原创 线性表

2018-10-22 00:42:12 97

原创 C++

2018-10-22 00:34:41 97

原创 笔记

2018-10-22 00:33:35 62

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除