NetworkOptimization.ppt

  1. 1、本文档共84页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
NetworkOptimization.ppt

Network Optimization Chapter 3 Shortest Path Problems 3.1 Shortest paths from a single source In a weighted digraph, a path of minimum weight from vertex v to vertex w is called a shortest path (SP) from v to w, and its length is called the shortest distance (SD) from v to w. For undirected graph, we can define SP and SD between two vertices. The shortest path problem can be treated as a transshipment problem. 3.1 Shortest paths from a single source (a) If we want to find SP and SD from v to w, then: let v be the only source with a supply of 1 unit; let w be the only sink with a demand of 1 unit; let other vertices be intermediate vertices; let the cost of sending one unit of the commodity from i to j be the weight of the arc (i , j); we now use the network simplex method to solve this transshipment problem. A 0-1 solution x* will be obtained, and the arcs (i , j) with =1 form a shortest path from v to w. 3.1 Shortest paths from a single source (b) if we want to find shortest paths from a given vertex v to each of the other n-1 vertices in the digraph, then: let v be the only source with a supply of n-1 units; let every other vertex be a sink with a demand of 1 unit; let the cost of sending one unit of commodity from i to j be the weight of the arc (i , j); then the shortest path problem is transformed to a transshipment problem, and hence can be solved by the network simplex method. 3.1 Shortest paths from a single source We study other two algorithms: Dijkstra’s algorithm to find a SP and the SD from a specified vertex to every other vertex; Floyd and Warshall algorithm for all-pairs shortest path problem. Main idea about the Dijkstra’s method Suppose the 5 nearest vertices to v1 are v1,v3,v5,v7 and v9. Then finding the sixth nearest vertex is easy. Assume the sixth nearest vertex is v6 and the shortest path is (v1,…v?, v6). Then v? must be one the 5 nearest vertices. Can you see why? Another important idea!! Suppose 1356 is the SP

文档评论(0)

tangtianxu1 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档