码迷,mamicode.com
首页 >  
搜索关键字:poj1502    ( 18个结果
poj图论解题报告索引
最短路径:poj1125 - Stockbroker Grapevine(多源最短路径,floyd)poj1502 - MPI Maelstrom(单源最短路径,dijkstra,bellman-ford,spfa)poj1511 - Invitation Cards(单源来回最短路径,spfa邻接...
分类:其他好文   时间:2015-05-04 21:42:57    阅读次数:218
poj 1502 MPI Maelstrom Dijkstra算法的简单运用 ,呵呵,,我估计有很多人都没看懂什么意思,我也看了很久
BIT has recently taken delivery of their new supercomputer, a 32 processor Apollo Odyssey distributed shared memory machine with a hierarchical communication subsystem. Valentine McKee's research advisor, Jack Swigert, has asked her to benchmark the new sy...
分类:编程语言   时间:2015-02-16 22:12:09    阅读次数:392
POJ1502: MPI Maelstrom
红果果的dijstra算法应用,这里采用邻接表存储图。小插曲:while(scanf("%d",&n))提交时内存超限,改成while(scanf("%d",&n)!=EOF)就AC了,不知道为什么dijstra算法应用:已知定点为输入,输入图中所有其他点到该定点的最短距离。具体做法:a.初始时,S...
分类:其他好文   时间:2015-01-03 21:01:28    阅读次数:195
MPI Maelstrom(poj1502)(迪杰斯特拉+atoi函数)
MPI Maelstrom Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 5637   Accepted: 3513 Description BIT has recently taken delivery of their new supercomputer, a...
分类:其他好文   时间:2014-12-15 01:25:20    阅读次数:214
POJ1502(Dijkstra)
MPI Maelstrom Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 5538   Accepted: 3451 题目链接: Description BIT has recently taken delivery of their new supercomp...
分类:其他好文   时间:2014-11-07 22:08:38    阅读次数:179
poj1502 spfa最短路
1 //Accepted 320 KB 16 ms 2 //有n个顶点,边权用A表示 3 //给出下三角矩阵,求从一号顶点出发到各点的最短路的最大值 4 #include 5 #include 6 #include 7 #include 8 #include ...
分类:其他好文   时间:2014-10-17 23:08:01    阅读次数:185
poj1502 MPI Maelstrom,单源最短路的最长距离,dijkstra + 优先队列
点击打开链接 求顶点1到其他点的最短距离的最长距离。。 测试。。dijkstra + 优先队列 #include #include #include #include #include #include #include #include #include #include #include #define for0(a,b) for...
分类:其他好文   时间:2014-09-26 20:57:48    阅读次数:147
poj1502--Dijkstra
/** \brief poj 1502--Dijkstra * * \ date 2014/7/15 * \ state AC * * */ #include #include #include #include using namespace std; #define inf 0x03f3f3f3f const int MAXN=101; int n; int co...
分类:其他好文   时间:2014-07-18 21:22:31    阅读次数:192
18条   上一页 1 2
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!