AOE与最长路径

AOE Example


CS 402 Examples  

Here is the AOE example graph discussed in lecture:

The values are computed as follows:

  1. Assign the start node an early time of 0.

  2. Process the nodes in a topological order to compute the other early times. These are the earliest time each node can be reached.

    For each node, compute for each predecessor the sum of its early time and the weight of the arc joining the nodes. The largest of these sums is the early time of the node under consideration. This follows the notion that you do not reach a node until you have completed all the tasks that must come before it.

    For instance, node 8 sees the sums 32 + 5 = 37, 33 + 6 = 39, and 24 + 10 = 34. The early time of node 8 is 39.

  3. Assign the final node a late time equal to its early time.

  4. Process the nodes in a reverse topological order to compute the other late times. These are the latest time each node can be reached which will not delay the final completion.

    For each node, compute for each successor the difference of its late time and the weight of the arc joining the nodes. The smallest of these sums is the early time of the node under consideration. This follows the notion that you must reach a node soon enough not to delay any of its successors.

    For instance, node 5 sees 24 - 8 = 16 and 24 - 10 = 14. Its early time is 14.

  5. A path from the start to the end in which each node has equal early and late times is a critical path. There may be more than one critical path. If any node on a critical path is delayed, project completion will be delayed. This graph has only one critical path: 4, 5, 10, 7, 8.
原文:http://sandbox.mc.edu/~bennet/cs402/lec/aoe.html
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值