码迷,mamicode.com
首页 >  
搜索关键字:edge    ( 2375个结果
Codeforces Round #148 (Div. 1)C 树形dp
//枚举所有边,把该树分为两个树,分别求两颗数的最小的改变量 #include #include #include using namespace std ; const int maxn = 3030 ; const int inf = 0x7fffffff ; int dp[maxn] ; struct Edge {     int flag , v;     int u...
分类:其他好文   时间:2015-04-25 16:45:41    阅读次数:191
Matlab的滤波器
http://jingyan.baidu.com/article/20b68a884d6272796cec62e0.htmlMatlab 自带的滤波函数edge fspecial 打开fspecial文件可以看到例子% I = imread('cameraman.tif');% subplot(2,...
分类:其他好文   时间:2015-04-24 18:24:51    阅读次数:187
在openwrt路由中加入n2n,并在ubuntu里加入n2n服务,实现开机联网互通互访
在openwrt路由中加入n2n,并在ubuntu里加入n2n服务,实现开机联网互通互访...
分类:系统相关   时间:2015-04-24 12:32:13    阅读次数:530
POJ 1308 Is It A Tree? && NYOJ 129 (树的判定+并查集)
【题目链接】click here~~ 【题目大意】给定多对节点,判断所有节点能否组成一棵树 【解题思路】并查集的基本操作,定义node,edge,统计node和edge的数目,如果(edge==node-1||node==0)则可以成树 树的判定:n个节点,最多n-1条环,只有一个入度为边,不成0 的点,其他入度不大于1,不过要注意poj数据里如果1 1 0 0也会不符合要求,也就是不能...
分类:其他好文   时间:2015-04-24 10:44:59    阅读次数:193
第四届华中区程序设计邀请赛暨武汉大学第十三届校赛 网络预选赛 Problem 1566 - C - Spanning Tree
Description You are given a graph with N nodes and M edges.  Then every time you are required to add an additional edge with weight Wi connecting the node Ai and Bi in the graph, and then calculat...
分类:其他好文   时间:2015-04-22 09:40:45    阅读次数:140
Lesson 6 –exchange 2010 edge server
1-概述边缘服务器是内部服务器和公网smtp服务器间的一道安全屏障主要作用:接受和发送公网邮件,防病毒,防垃圾邮件部署条件:1工作组环境2添加域后缀3内部DNS添加A记录指向边缘服务器(同时edgeserver的DNS指向内部DNS)4net3.55ADLDS(活动目录轻型目录服务)6RSAT-ADDS(活动..
分类:其他好文   时间:2015-04-20 19:14:38    阅读次数:193
poj 2391 Ombrophobic Bovines 二分+最大流
同poj 2112. 代码: //poj 2391 //sep9 #include #include #include using namespace std; typedef long long ll; const int maxN=1024; const int maxM=100002; const ll MAX=(1ULL<<63)-1; struct Edge { int...
分类:其他好文   时间:2015-04-20 15:05:20    阅读次数:158
图的邻接表(广度优先遍历,深度优先遍历,最小生成树(Kruskal算法))
main.h: #include #include #define DefaultSize 10 #define maxWeight -1 using namespace std; template struct Edge { int dest; E cost; Edge *link; Edge(int d=0,int c=0):dest(d),cost(c),link(NUL...
分类:编程语言   时间:2015-04-20 15:04:14    阅读次数:213
网络流 dinic
1 struct Edge { 2 int v, w; 3 int next; 4 }edge[250*250]; 5 int head[50], tot; 6 void addedge(int u, int v, int w) { 7 edge[tot].v = v; 8...
分类:其他好文   时间:2015-04-19 22:44:37    阅读次数:195
ZOJ3675:Trim the Nails
Robert is clipping his fingernails. But the nail clipper is old and the edge of the nail clipper is potholed.The nail clipper's edge isNmillimeters wi...
分类:其他好文   时间:2015-04-18 18:58:29    阅读次数:145
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!