最短路
文章平均质量分 83
俱往矣_wpt
这个作者很懒,什么都没留下…
展开
-
Til the Cows Come Home POJ - 2387
Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning milking. Bessie needs her beauty sleep, so she wants to get b原创 2017-08-19 09:23:53 · 246 阅读 · 0 评论 -
poj 1797 Heavy Transportation Dijkstra&&Kruskal
Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who tells him whether there really is a way from the place his cust...原创 2017-08-06 16:12:01 · 911 阅读 · 0 评论 -
hdu 2680 Choose the best route
Problem DescriptionOne day , Kiki wants to visit one of her friends. As she is liable to carsickness , she wants to arrive at her friend’s home as soon as possible . Now give you a map of the city原创 2017-09-26 16:17:28 · 363 阅读 · 0 评论 -
HPU 1413: StarFarming [最短路]
题目描述星农(StarFarming)公司计划要给员工发路费津贴,发放的规则是这样的:1到n-1代表各个员工家的序号,n代表公司。路费津贴只发给上班的最短路与回家的最短路的总路程最长的人。该市的路建造的有些奇怪,修路只修单行道,即只允许往某一个方向通行。现在给你城市的有向图的地图,TLG请你帮忙计算谁能得到津贴,以及他上班和回家的总路程是多少。输入有多组测试数据。每原创 2017-12-14 20:08:26 · 330 阅读 · 0 评论 -
Travelling Fee ZOJ - 2027
Samball is going to travel in the coming vacation. Now it's time to make a plan. After choosing the destination city, the next step is to determine the travel route. As this poor guy has just experien...原创 2018-03-07 18:50:04 · 255 阅读 · 0 评论 -
Bellman_fordde 队列优化 信道安全
问题 : 信道安全 时间限制: 2 Sec 内存限制: 128 MB提交: 7 解决: 4[提交][状态]题目描述Alpha 机构有自己的一套网络系统进行信息传送。情报员 A 位于节点 1,他准备将一份情报发送给位于节点 n 的情报部门。可是由于最近国际纷争,战事不断,很多信道都有可能被遭到监视或破坏。经过测试分析,Alpha 情报系统获得了网络中每段信道安全可靠性的概率,情报员 A 决定选择...原创 2018-05-04 20:06:20 · 197 阅读 · 0 评论 -
最短路径 Dijkstral算法 和 Floyd算法
Dijkstral算法:从起点A出发,可以直接到达的点是B、D、E,lowcost={max,10,max,30,100},visit={1,0,0,0,0},lowcost从A到其他节点的距离,visit已经找过的节点找出和A相连的边中最短的,A->B边时最短的,这个时候我们可以知道A到B的最短路是10,这个时候我们需要比较是从A直接到达B、C、D、E距离短还是通过B作为中转更...原创 2019-07-09 14:56:58 · 325 阅读 · 0 评论