Sub topic 2
The backward pass: latest start and finish
This chapter assumes you know the forward pass, which gives each activity an earliest start (ES) and earliest finish (EF). You should also understand finish-to-start dependencies, where a successor cannot start until its predecessor finishes.
Setting the starting point
The backward pass works from the end of the project toward the beginning. Each final activity gets a latest finish (LF) equal to the project duration found in the forward pass. In the example below, the project ends on day 10, so activity D gets LF = 10.
Computing latest start and finish
Work through the activities in reverse order:
- Latest start (LS) = LF minus duration.
- LF of an activity with successors = the smallest LS among those successors.
For the example network (A feeds B and C, and B and C both feed D), the results are:
| Activity | Duration | ES | EF | LS | LF |
|---|---|---|---|---|---|
| A | 3 | 0 | 3 | 0 | 3 |
| B | 2 | 3 | 5 | 5 | 7 |
| C | 4 | 3 | 7 | 3 | 7 |
| D | 3 | 7 | 10 | 7 | 10 |
tasks = {
"A": (3, []),
"B": (2, ["A"]),
"C": (4, ["A"]),
"D": (3, ["B", "C"]),
}
# Forward pass
es, ef = {}, {}
for t, (dur, preds) in tasks.items():
es[t] = max((ef[p] for p in preds), default=0)
ef[t] = es[t] + dur
project_end = max(ef.values())
# Successor lookup
succs = {t: [] for t in tasks}
for t, (dur, preds) in tasks.items():
for p in preds:
succs[p].append(t)
# Backward pass
ls, lf = {}, {}
for t in reversed(list(tasks)):
lf[t] = min((ls[s] for s in succs[t]), default=project_end)
ls[t] = lf[t] - tasks[t][0]
total_float = {t: ls[t] - es[t] for t in tasks}
critical = [t for t in tasks if total_float[t] == 0]
print(project_end, total_float, critical)
# 10 {'A': 0, 'B': 2, 'C': 0, 'D': 0} ['A', 'C', 'D']Total float and free float
Total float (TF) is the delay an activity can absorb without delaying the project: TF = LS minus ES. For B, TF = 5 minus 3 = 2 days.
Free float (FF) is the delay an activity can absorb without delaying any successor's earliest start: FF = smallest successor ES minus own EF. For B, FF = 7 minus 5 = 2 days.
Reading the critical path from zero float
Activities with TF = 0 form the critical path. Here, A, C, and D qualify. Their durations sum to 3 + 4 + 3 = 10 days, which equals the project length. A delay on any of them delays the whole project. B can slip 2 days without consequence.
Exercise
If C lasts 5 days instead of 4, what is the project duration, and what is the total float of B?
Show answer
The project lasts 11 days. C's EF becomes 8, so D starts on day 8 and ends on day 11. B's LS becomes 6, so its total float is 6 minus 3 = 3 days.