物流成本运输成本(课时).pptVIP

  • 13
  • 0
  • 约2.68万字
  • 约 145页
  • 2022-09-04 发布于重庆
  • 举报
The shortest path problems Single source shortest path Single destination shortest path Single pair shortest path All-pairs shortest path Positive weights on edges Negative weights on edges Negative cycles … 第九十四页,共一百四十五页。 Dijkstra’s Algorithm 算法思想 Shortest Paths * 1 Initialize-Single-Source(G,s) 2 S = empty 3 Q = G.V 4 While Q ≠ empty 5 u = Extract-Min(Q) 6 S = S U {u} 7 for each vertex v\in G.Adj[u] 8 Relax(u,v,w) Running time O(VlgV+E) with using Fibonacci heap 第九十五页,共一百四十五页。 Shortest Paths * Edge Relaxation Consider an edge e = (u,z) such that u is the v

文档评论(0)

1亿VIP精品文档

相关文档