码迷,mamicode.com
首页 >  
搜索关键字:edge    ( 2375个结果
用邻接表或vector实现存边以及具体如何调用[模板]
存边; 对于指针实现的邻接表:struct edge{ int from,next,to,w;}E[maxn];int head[maxn],tot=0;//head初始化为-1;void add(int x,int y,int z){ E[++tot].from=x;//头结点 E[tot].to...
分类:其他好文   时间:2014-10-27 10:38:08    阅读次数:245
Exchange2010管理心得
1、恢复被禁用邮箱:常规下在Exchange2010控制台恢复时没有提示报错,但从web界面打开时却提示邮箱被禁用。后来在Exchangemanagementshell下使用clean-mailboxdatabasedatabasename解决。实际操作截图如下::2、删除边缘传输服务器:先在Exchange2010shell下执行:Remove-Edge..
分类:其他好文   时间:2014-10-23 21:01:05    阅读次数:142
POJ 1287 Networking(最小生成树)
题意  给你n个点 m条边  求最小生成树的权 这是最裸的最小生成树了 #include #include #include using namespace std; const int N = 55, M = 3000; int par[N], n, m, ans; struct edge{int u, v, w;} e[M]; bool cmp(edge a, edge b){return...
分类:Web程序   时间:2014-10-23 10:43:45    阅读次数:229
[OpenCV] 2、边缘检测 canny
>_ 5 6 using namespace cv; 7 using namespace std; 8 9 int edgeThresh = 1;10 Mat image, gray, edge, cedge;11 12 // define a trackbar callback13 void .....
分类:其他好文   时间:2014-10-22 23:22:34    阅读次数:368
POJ 1258 Agri-Net(最小生成树 Kruskal)
题意  给你农场的邻接矩阵  求连通所有农场的最小消耗 和上一题一样裸的最小生成树 #include #include #include using namespace std; const int N = 105, M = 10050; int par[N], ans, n, m, t; struct edge { int u, v, w;} e[M]; bool cmp(edge a, ...
分类:Web程序   时间:2014-10-22 11:02:47    阅读次数:203
Linux C Project :pong
在linux下用c语言利用信号机制完成了一个弹球的小游戏,代码如下: bounce.h /* bounce.h */ /* some settings for the game */ #define BLANK ' ' #define DFL_SYMBOL 'o' #define TOP_ROW 5 #define BOT_ROW 20 #define LEFT_EDGE...
分类:系统相关   时间:2014-10-21 12:27:14    阅读次数:511
转载 关于物理综合优化
Recovery time is the minimum length of time an asynchronous control signal, for example, and preset, must be stable before the next active clock edge....
分类:其他好文   时间:2014-10-20 14:56:25    阅读次数:298
链式前向星储存
#include #include using namespace std; #define E 10000 #define V 100 struct Edge{ int to_node; int edge_val; int next_edge; Edge(){} Edge( int to, int val, int next ){...
分类:其他好文   时间:2014-10-20 11:46:20    阅读次数:226
NYOJ129 树的判定 【并查集】
树的判定 时间限制:1000 ms  |  内存限制:65535 KB 难度:4 描述 A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edge...
分类:其他好文   时间:2014-10-17 09:23:24    阅读次数:172
UVA11838- Come and Go
题目链接 题意: 判断城市是否全部能相通 思路:判断一张有向图是否强连通 代码: #include #include #include #include using namespace std; const int MAXN = 2005; const int MAXM = MAXN * MAXN; struct Edge{ int to, n...
分类:其他好文   时间:2014-10-16 20:30:03    阅读次数:169
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!