摘要:
1.Dijkstra算法:(计算正权图上的单源最短路 single-sourceshortest paths (sssp) )从单个节点出发到所有节点的最短路。复杂度:O(n*n)该算法适用于:有向图和无向图。1). O(n^2)的实现:邻接矩阵map存储实现,INF表示无穷大void Dijkst... 阅读全文
摘要:
转载地址:http://blog.csdn.net/nike0good/article/details/43449739B. Painting Pebblestime limit per test1 secondmemory limit per test256 megabytesinputstand... 阅读全文