![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
hit_gwy
这个作者很懒,什么都没留下…
展开
-
堆排序c语言
利用最小堆排序 // teat.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include #include using namespace::std; #define N 50000+1 void PushDown(int first, int n); void Swap(int &a, int &b); int原创 2017-12-19 21:25:40 · 486 阅读 · 0 评论 -
利用邻接表进行拓扑排序
//本文中的代码未经验证,若有错误请指出,多谢纠正! // 4.44.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include using namespace::std; struct node { int cnt; int wei; node* next; }; struct Head { int num;原创 2017-12-11 20:18:25 · 1427 阅读 · 0 评论 -
关键活动相关求解
// 4.44.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include #define N 10 using namespace::std; void Forward(int VE[N],int matrix[N][N],int temp) { for (int opt = 0; opt < N; opt++) { if原创 2017-12-11 21:33:33 · 484 阅读 · 0 评论 -
单源最短路径
// Experiment 3.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include using namespace::std; #define N 50 #define Max 10000 int matrix[N][N]; int n; void ShowPath(int p[N], int i, int a) { if原创 2017-12-11 21:37:30 · 199 阅读 · 0 评论