22/32
Part 6 of 7 · The worked exampleLearn and do
A worked example: which tasks can run late
The problem: the pipeline above, with its minutes. For every task, how many minutes can it finish late without moving the minute the whole pipeline is done? That number is the task's slack. A task with no slack is on the critical path.
Say the rules back, then cost the obvious answer
1. Clarify. Say it out loud:
- As many workers as needed, and whole minutes.
- A cycle is an error.
- A task that finishes late pushes everything downstream of it.
- Slack is measured on the finish time.
- The output is a dict from each task to its slack.
2. The obvious answer. Delay one task by a minute, work out every finish time again, and see whether the done time moves.
Delay each of the V tasks in turn, and redo every finish time each time. What does that cost in all?
Pick an answer above to see the rest