Sub topic 9
Multiple Critical Paths and Near-Critical Paths
The previous chapters showed how to find the critical path from zero float. This chapter covers two cases that the single-path picture hides. In the first, several paths are critical at once. In the second, a path that is not critical sits a day or two behind and can overtake the critical path after a small slip.
This chapter assumes you can run a forward and backward pass, calculate total float, and read zero-float activities as critical. The code is plain Python with dictionaries and loops.
What "multiple critical paths" means
A schedule has multiple critical paths when two or more distinct paths from start to finish have the same, longest length. Every activity on each of those paths has zero total float.
The reason is how total float is defined. An activity's total float is the project duration minus the length of the longest path that passes through it. If an activity lies on any longest path, its float is zero. So the zero-float set is the union of all longest paths.
Here is a small network used throughout this chapter:
| Activity | Duration (days) | Predecessors |
|---|---|---|
| A | 3 | none |
| B | 4 | A |
| C | 4 | A |
| D | 3 | A |
| E | 3 | B, C, D |
The three paths are:
- A-B-E: 3 + 4 + 3 = 10 days.
- A-C-E: 3 + 4 + 3 = 10 days.
- A-D-E: 3 + 3 + 3 = 9 days.
The project takes 10 days. A, B, C and E have zero float, and D has 1 day of float. Two paths are critical, and A and E belong to both.
Why parallel critical paths raise risk
With one critical path, you watch one chain of activities. With two, a delay on either chain delays the project. This has three consequences.
- Shortening one path gains nothing. If you cut B from 4 days to 3, A-B-E drops to 9 days, but A-C-E still takes 10. The project end does not move.
- Delay risk accumulates at merge points. Activity E cannot start until both B and C finish. Suppose each has a 50% chance of finishing on its planned date, and the two are independent. The chance that both do is 25%. The more paths converge on a merge point, the more likely the merge point starts late. This effect is called merge bias, and it means a plan with parallel critical paths is more likely to finish late than the plan's arithmetic suggests.
- Management attention splits. The team has to protect two chains of work, and a resource problem on either one hurts the whole project.
Near-critical paths
A near-critical path is a path whose length is within a chosen margin of the critical path. In this network, A-D-E is one day short of the critical length. Activity D has 1 day of float, so a one-day slip in D makes a third critical path.
There is no universal definition of "near". Teams usually pick a threshold in one of two ways:
- Absolute: paths with total float of 5 working days or fewer.
- Relative: paths within about 10% of the project duration.
Pick the threshold by comparing it to the uncertainty in your estimates. If activities routinely overrun by 20%, a path that is 5% shorter than the critical path is a real threat, even though the arithmetic says it has float.
The following table shows what happens as D slips in the example network:
| Duration of D | A-D-E length | Project duration | Critical paths |
|---|---|---|---|
| 3 | 9 | 10 | A-B-E, A-C-E |
| 4 | 10 | 10 | A-B-E, A-C-E, A-D-E |
| 5 | 11 | 11 | A-D-E only |
At D = 5 the project is one day late, and B and C each gain 1 day of float. The critical path has moved to a different chain of activities. A report that only said "the critical path is A-B-E" would have been wrong without anyone noticing.
Finding all critical and near-critical paths in code
The earlier single-path walk-back returns only one longest path, even when several are tied. To report every path, compute float with both passes, then enumerate paths and compare each length with the project duration.
tasks = {
"A": (3, []),
"B": (4, ["A"]),
"C": (4, ["A"]),
"D": (3, ["A"]),
"E": (3, ["B", "C", "D"]),
}
THRESHOLD = 2 # paths this many days short of critical count as near-critical
# 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, (_, 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}
print(total_float) # {'A': 0, 'B': 0, 'C': 0, 'D': 1, 'E': 0}
def all_paths(node):
"""Every path from node to a task with no successors."""
if not succs[node]:
return [[node]]
return [[node] + rest for s in succs[node] for rest in all_paths(s)]
def length(path):
return sum(tasks[t][0] for t in path)
starts = [t for t, (_, preds) in tasks.items() if not preds]
paths = [p for s in starts for p in all_paths(s)]
for path in sorted(paths, key=length, reverse=True):
slack = project_end - length(path)
if slack == 0:
label = "critical"
elif slack <= THRESHOLD:
label = "near-critical"
else:
label = "other"
print(f"{'-'.join(path)}: {length(path)} days, slack {slack}, {label}")The output is:
{'A': 0, 'B': 0, 'C': 0, 'D': 1, 'E': 0}
A-B-E: 10 days, slack 0, critical
A-C-E: 10 days, slack 0, critical
A-D-E: 9 days, slack 1, near-criticalPath slack here means project duration minus path length. It is a property of a whole path, while total float belongs to an activity. An activity's float equals the smallest slack among the paths that pass through it.
Float is shared along a path
Activity D has 1 day of float. If a chain of non-critical activities lay between A and E, for example D1 followed by D2 on the D branch, the 1 day of float would belong to the chain, not to each activity separately. Using it up on D1 leaves nothing for D2. This is the reason free float, covered earlier, matters when you hand out slack to individual teams. Total float tells you what a path can absorb, and it does not tell you who may use it.
Constraints and negative float
All of the above assumes the project end is the end of the longest path. If a contract fixes a finish date earlier than the calculated finish, the backward pass starts from that date. Activities on the longest path then get negative float. In that case the critical path is the path with the most negative float, and near-critical paths are measured relative to it. The same threshold logic applies, but "zero float" is no longer the test for criticality.
What to do with this information
- Monitor near-critical paths at the same cadence as critical ones. Check them in the same status review, not a separate, slower one.
- Compress all critical paths together. Shortening the project by one day when two paths are critical requires removing a day from both, or from an activity they share, such as A or E here. Crashing and fast-tracking are covered in a later chapter.
- Consider a buffer before merge points. A little scheduled slack ahead of a merge point such as E absorbs some of the merge bias.
- Recalculate after each update. As the D = 5 row showed, the set of critical paths can change after a small change in one duration.
Exercise
A project has activities P (2 days, no predecessors), Q (6 days, after P), R (5 days, after P) and S (2 days, after Q and R). With a near-critical threshold of 1 day, state the critical path, the project duration, the total float of each activity, and which path is near-critical. Then say what happens to the critical path and the project duration if R slips by 2 days.
Show answer
P-Q-S is 2 + 6 + 2 = 10 days, and P-R-S is 2 + 5 + 2 = 9 days. The critical path is P-Q-S and the project takes 10 days. Floats are P 0, Q 0, R 1, S 0. P-R-S is 1 day short, so it is near-critical. If R slips by 2 days it takes 7 days, P-R-S becomes 11 days, and it becomes the only critical path. The project duration becomes 11 days, and Q gains 1 day of float.
Exercise
A schedule has two critical paths that share only their first and last activities. A manager crashes one activity on the first path and saves 2 days. The project finish date does not change. Explain why.
Show answer
The second critical path still has its original length, so the project finish is still set by it. The project only finishes earlier if every critical path gets shorter, which means crashing an activity on each path or crashing an activity they share. Once the first path is 2 days shorter, it is no longer critical, and the second path alone sets the duration.