算法-最短路
文章平均质量分 85
走向人生巅峰
这个作者很懒,什么都没留下…
展开
-
POJ1797 Heavy Transportation
Time Limit:3000MS Memory Limit:30000KB 64bit IO Format:%lld & %llu Submit Status Description Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now exp原创 2016-08-27 15:15:21 · 651 阅读 · 0 评论 -
POJ 2253 Frogger
Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Submit Status Description Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who i原创 2016-08-27 15:08:59 · 643 阅读 · 0 评论 -
POJ 3159 Candies
Time Limit:1500MS Memory Limit:131072KB 64bit IO Format:%lld & %llu Submit Status Description During the kindergarten days, flymouse was the monitor of his class. Occasionally the head-tea原创 2016-08-27 15:25:38 · 653 阅读 · 0 评论 -
Dijkstra-POJ-2387-Til the Cows Come Home
Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Submit Status Description Input Output Sample Input Sample Output Hint原创 2016-08-23 16:03:16 · 1930 阅读 · 0 评论 -
Dijkstra、Bellman_Ford、SPFA、Floyd算法复杂度比较
Dijkstra:适用于权值为非负的图的单源最短路径,用斐波那契堆的复杂度O(E+VlgV) BellmanFord:适用于权值有负值的图的单源最短路径,并且能够检测负圈,复杂度O(VE) SPFA:适用于权值有负值,且没有负圈的图的单源最短路径,论文中的复杂度O(kE),k为每个节点进入Queue的次数,且k一般<=2,但此处的复杂度证明是有问题的,其实SPFA的最坏情况应该是O(VE).转载 2016-08-26 15:15:37 · 2274 阅读 · 0 评论