1 / 19

15.082 和 6.855J

15.082 和 6.855J. 圈消除算法. 最小代价流问题. 0. 0. 10, $4. 2. 4. 30, $7. 25, $5. 25. 1. 20, $2. 20, $6. 20, $1. 3. 5. 25, $2. 0. -25. 初始容量和可行流. 0. 0. 10, 10. 2. 4. 30, 25. 25, 15. 25. 1. 20, 10. 20, 20. 20, 0. 通过解决最大流,可以找到可行流. 3. 5. 25, 5. 0. -25. 在剩余网络上的容量. 10. 2.

Download Presentation

15.082 和 6.855J

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 15.082 和 6.855J 圈消除算法

  2. 最小代价流问题 0 0 10, $4 2 4 30, $7 25, $5 25 1 20, $2 20, $6 20, $1 3 5 25, $2 0 -25

  3. 初始容量和可行流 0 0 10,10 2 4 30,25 25,15 25 1 20,10 20,20 20,0 通过解决最大流,可以找到可行流. 3 5 25,5 0 -25

  4. 在剩余网络上的容量 10 2 4 5 10 25 1 15 10 20 10 20 20 3 5 5

  5. 在剩余网络上的代价 2 4 -4 7 -7 1 2 5 -2 -5 -1 6 2 3 5 -2 寻找负代价圈,如果存在一个的话.

  6. 环绕圈发送流 2 4 沿着负代价圈发送流. 25 1 15 20 这个圈的容量是15. 3 5 形成下一个剩余网络.

  7. 在剩余网络上的容量 10 2 4 20 10 10 1 25 20 10 15 5 20 3 5 5

  8. 在剩余网络上的代价 -4 2 4 7 -7 2 1 5 -2 -6 -1 6 2 3 5 -2 寻找负代价圈,如果存在一个的话.

  9. 环绕圈发送流 2 4 沿着负代价圈发送流. 1 10 20 圈的容量是10. 3 5 20 形成下一个剩余网络.

  10. 在剩余网络上的容量 10 2 4 20 20 10 1 25 10 10 15 5 10 3 5 15

  11. 在剩余网络中的代价 -4 2 4 7 -7 1 2 5 1 -1 -6 6 2 3 5 -2 寻找负代价圈,如果存在一个的话.

  12. 环绕圈发送流 10 2 4 沿着负代价圈发送流. 20 10 1 5 这个圈的容量是 5. 3 5 形成下一个剩余网络.

  13. 在剩余网络上的容量 5 2 4 25 5 15 5 1 25 10 10 20 5 10 3 5 15

  14. 在剩余网络中的代价 4 2 4 7 -4 -7 1 2 5 -1 1 -2 -6 2 3 5 -2 寻找负代价圈,如果存在一个的话.

  15. 环绕圈发送流 2 4 沿着负代价圈发送流. 1 10 5 10 这个圈的容量是 5. 3 5 形成下一个剩余网络.

  16. 在剩余网络上的容量 5 2 4 25 5 20 5 1 25 5 15 20 5 3 5 20

  17. 在剩余网络中的代价 4 2 4 7 -4 -7 1 2 5 -1 1 -6 寻找负代价圈,如果存在一个的话. 2 3 5 -2 没有负代价圈. 但是证明是什么?

  18. 在剩余网络中计算最短距离 7 11 4 2 4 7 -4 -7 0 1 2 5 -1 1 -6 令 d(j) 是从结点 1到结点 j的最短路径距离. 2 3 5 -2 10 12 下一步 令p(j) = -d(j) 计算cp

  19. 在剩余网络中的即约代价 7 11 0 2 4 -0 0 0 0 1 2 1 0 0 4 在G(x*) 中对最优流的即约代价都是非负的. 0 3 5 0 10 12

More Related