Sub topic 6
The Backward Pass: Latest Start and Finish
Assume you know basic project scheduling terms, can read predecessor links, and have already calculated earliest start (ES) and earliest finish (EF) times with a forward pass. The backward pass works from the planned project completion date toward the beginning. It finds how late each activity may start or finish without delaying the project.
Why the backward pass matters
The forward pass answers:
- When can this activity start at the earliest?
- When can this activity finish at the earliest?
The backward pass answers:
- When must this activity finish at the latest?
- When must this activity start at the latest?
A latest finish (LF) is the latest time an activity can finish without extending the project. A latest start (LS) is the latest time it can start under the same condition.
The basic equations are:
LS = LF - duration- For an activity with successors,
LF = minimum(LS of its successors) - For a terminal activity with no successors,
LF = project duration
Use the minimum successor LS because the activity must finish in time for every successor. Its most restrictive successor controls the result.
Worked example
Consider this network:
The forward pass gives project duration of 10 days. Activity D is the final activity, so its LF is 10. Work backward from there.
| Activity | Duration | Successors | Latest finish (LF) | Latest start (LS) |
|---|---|---|---|---|
| D | 3 | none | 10 | 7 |
| B | 2 | D | 7 | 5 |
| C | 4 | D | 7 | 3 |
| A | 3 | B, C | 3 | 0 |
For B and C, the only successor is D, whose LS is 7. Therefore both activities must finish by time 7.
For A, the successor LS values are 5 for B and 3 for C. A must finish by the earlier value, 3. If A finished at time 5, C could not start by its latest start of 3.
The backward pass must process activities in reverse dependency order. In a larger network, that usually means reversing a topological ordering, where every predecessor appears before its successors.
Implementing the calculation
tasks = {
"A": (3, []),
"B": (2, ["A"]),
"C": (4, ["A"]),
"D": (3, ["B", "C"]),
}
# Earlier forward-pass results
es, ef = {}, {}
for task, (duration, predecessors) in tasks.items():
es[task] = max((ef[p] for p in predecessors), default=0)
ef[task] = es[task] + duration
project_duration = max(ef.values())
successors = {task: [] for task in tasks}
for task, (_, predecessors) in tasks.items():
for predecessor in predecessors:
successors[predecessor].append(task)
ls, lf = {}, {}
for task in reversed(list(tasks)):
duration = tasks[task][0]
lf[task] = min(
(ls[successor] for successor in successors[task]),
default=project_duration,
)
ls[task] = lf[task] - duration
print(ls)
print(lf)This code assumes the task dictionary is already in topological order and that the network has no cycles. Validate those conditions before using the results in production.
Common errors
- Setting every activity's LF to the project end. Only terminal activities receive that value directly.
- Using the maximum successor LS instead of the minimum.
- Processing tasks in forward order, before successor values exist.
- Ignoring a successor, which can make an activity appear less constrained than it is.
Exercise
Activity X lasts 4 days and has successors Y and Z. Y has LS 12, and Z has LS 9. What are X's LF and LS?
Show answer
X's LF is the smaller successor LS, 9. Its LS is 9 - 4 = 5.