Sub topic 7
Crashing step by step, one day at a time
This chapter turns the idea of crashing into a repeatable procedure. It assumes you can already find a critical path, compute float, and calculate a crash cost slope (cost increase per day saved). If those are shaky, review the earlier chapters first.
The core rule
You crash one day at a time. At each step you pick the cheapest way to cut the project duration by one day, apply it, and recompute the network. Recomputing matters because crashing changes which paths are critical. A choice that was correct on day 11 can be pointless on day 10.
The procedure:
- Compute every path's length and identify the critical path (or paths).
- List the activities that can still be shortened, meaning current duration is above crash duration.
- Keep only those that would shorten the project by one day if shortened by one day.
- Pick the one with the lowest crash cost slope.
- Shorten it by one day, add its slope to the total crash cost, and recompute.
- Stop when the target is reached, when no activity qualifies, or when the next day costs more than it is worth.
Step 3 is the one people skip
An activity can have the lowest slope in the whole network and still be useless to crash. If it is not on a critical path, shortening it only adds float. You pay the crash cost and the finish date does not move.
The test is direct: shorten the activity by one day in a copy of the schedule, recompute the project duration, and check that it dropped. This test also handles parallel critical paths correctly. If two paths are both critical, shortening an activity on only one of them leaves the other path unchanged, so the project duration does not drop and the activity is rejected.
A worked network
The same four-activity network is used for the whole chapter.
| Activity | Normal days | Crash limit (days) | Slope (per day) | Predecessors |
|---|---|---|---|---|
| A | 3 | 2 | 500 | none |
| B | 5 | 3 | 400 | A |
| C | 4 | 3 | 300 | A |
| D | 3 | 2 | 600 | B, C |
There are two paths:
- A, B, D: 3 + 5 + 3 = 11 days. This is the critical path.
- A, C, D: 3 + 4 + 3 = 10 days. This path has one day of float.
The target is 9 days, so you need to remove two days.
Round 1 (duration 11). Check each activity:
- A: one day off gives 10 days. It qualifies at 500.
- B: one day off gives path ABD = 10 and path ACD = 10, so the project is 10. It qualifies at 400.
- C: C is not critical. The project stays at 11, so it is rejected, even though 300 is the cheapest slope.
- D: one day off gives 10. It qualifies at 600.
The cheapest qualifying activity is B at 400. After crashing B, both paths are 10 days long, so both are now critical.
Round 2 (duration 10). Check again:
- A: both paths shorten, so the project becomes 9. It qualifies at 500.
- B: B is only on ABD. ACD stays at 10, so the project does not drop. Rejected.
- C: C is only on ACD. ABD stays at 10. Rejected.
- D: both paths shorten. It qualifies at 600.
The cheapest qualifying activity is A at 500. The project is now 9 days and the total crash cost is 400 + 500 = 900.
| Round | Start duration | Crashed | Slope | End duration | Total cost |
|---|---|---|---|---|---|
| 1 | 11 | B | 400 | 10 | 400 |
| 2 | 10 | A | 500 | 9 | 900 |
The same procedure in code
This script runs the loop. It assumes the activities are listed in dependency order, which is true here.
activities = {
# name: normal duration, minimum (crash) duration, crash cost per day, predecessors
"A": {"dur": 3, "min": 2, "slope": 500, "preds": []},
"B": {"dur": 5, "min": 3, "slope": 400, "preds": ["A"]},
"C": {"dur": 4, "min": 3, "slope": 300, "preds": ["A"]},
"D": {"dur": 3, "min": 2, "slope": 600, "preds": ["B", "C"]},
}
def project_duration(durs):
finish = {}
for name, a in activities.items(): # listed in dependency order
start = max((finish[p] for p in a["preds"]), default=0)
finish[name] = start + durs[name]
return max(finish.values())
durs = {n: a["dur"] for n, a in activities.items()}
target = 9
spent = 0
while project_duration(durs) > target:
now = project_duration(durs)
options = []
for n, a in activities.items():
if durs[n] > a["min"]:
trial = {**durs, n: durs[n] - 1}
if project_duration(trial) < now: # only helps if it shortens the project
options.append((a["slope"], n))
if not options:
break
slope, n = min(options)
durs[n] -= 1
spent += slope
print(f"crash {n}: {now} -> {project_duration(durs)} days, +{slope}")
print(f"duration {project_duration(durs)} days, crash cost {spent}")Running it prints:
crash B: 11 -> 10 days, +400
crash A: 10 -> 9 days, +500
duration 9 days, crash cost 900Three details are worth noticing:
- The
trialdictionary is the "shorten it in a copy" test from step 3. The original durations are not touched until a choice is made. min(options)compares tuples, so the lowest slope wins. Ties are broken alphabetically by name, which is arbitrary. In practice, break ties by risk or by which activity has the most reliable resources to add.- The
if not options: breakline handles the case where the target cannot be reached.
Edge cases and gotchas
Parallel critical paths
Once two paths are equally long, a single-path crash gains nothing. You have two choices: crash an activity shared by both paths, or crash one activity on each path in the same round. In the worked network, the pair B and C would cost 400 + 300 = 700 for one day, which is more than crashing A alone at 500. The shared activity wins here, but that is a property of these numbers, not a rule.
The greedy method is a heuristic
The loop above only considers one activity per day. It never tries pairs, so it cannot discover the B plus C option in the situation above. In larger networks, this can produce a plan that is slightly more expensive than the true minimum. The exact method is the time-cost trade-off formulated as a linear program, which scheduling tools and spreadsheets can solve. For small networks, the greedy loop is usually close enough, and you can check a few pair options by hand.
Crash limits end the road
Each activity has a minimum duration. When every critical activity is at its limit, the loop stops even if the target has not been met. Report this honestly. A target that needs 8 days from a network whose crash floor is 9 cannot be bought with more money, and the answer is to change the plan (for example, with fast-tracking, which later chapters cover) or to renegotiate the date.
Slopes are not always constant
The method assumes the first day of crashing an activity costs the same as the second day. Real activities often get more expensive per day as you push them: the first day may need overtime, the second a second shift. If the cost per day changes, use the slope for the specific day you are about to crash, not the average slope. In code, that means storing a list of per-day costs instead of one number.
Whole days only
The loop crashes one whole day at a time, which matches how many schedules are kept. If your activities use hours or half-days, change the step size, and make sure the crash limit is a multiple of it.
Crashing can create new critical paths
An activity that was never critical can become critical after crashing. In the worked network, ACD became critical once B was crashed. This is why recomputing every round is not optional.
When to stop
Reaching the target is not the only stopping reason. Compare each day's slope with what that day is worth:
- Indirect costs. If each project day costs 450 in overhead (site costs, management time), then a day of crashing at 400 saves money overall, and a day at 500 does not.
- Delay penalties. If finishing late costs 700 per day, then crashing at 600 is cheaper than paying the penalty.
- Budget ceiling. If the sponsor approved 800 of extra spend, the plan above (900) is over budget, and only the B crash (400, giving 10 days) fits.
Record the cumulative cost after each round, as in the table earlier. That gives decision-makers a menu: "10 days costs 400, 9 days costs 900." They can choose where to stop.
Quick reference
| Question | Answer |
|---|---|
| What do I crash first? | The lowest-slope activity that, shortened by one day, shortens the project |
| Why recompute after each day? | Critical paths change as durations change |
| When are two crashes needed in one round? | When parallel critical paths share no activity |
| What ends the loop? | Target met, no qualifying activity, or the next day costs more than it saves |
| Is the greedy result always optimal? | No. It is a heuristic. Linear programming gives the exact answer |
Exercise
Using the worked network (A 3 days, slope 500, limit 2; B 5 days, slope 400, limit 3; C 4 days, slope 300, limit 3; D 3 days, slope 600, limit 2), the target is 10 days instead of 9. Which activity do you crash, and what is the total crash cost?
Show answer
Start at 11 days, with ABD critical at 11 and ACD at 10. Of the activities that shorten the project (A at 500, B at 400, D at 600), B is the cheapest. Crashing B by one day gives 10 days, which meets the target. The total crash cost is 400. C is not considered because it is not critical.
Exercise
Change D's slope to 450 and keep the target at 9 days. Walk through the rounds. What is the final plan and total cost?
Show answer
Round 1 (11 days): qualifying activities are A (500), B (400) and D (450). B is cheapest, so crash B. The duration becomes 10 and the cost is 400. Round 2 (10 days, both paths critical): qualifying activities are A (500) and D (450). B and C each affect only one path, so they are rejected. D is cheapest, so crash D. The duration becomes 9 and the total cost is 400 + 450 = 850. The final plan crashes B by one day and D by one day.
Exercise
A colleague says, "C has the lowest slope at 300, so crash C first." Why is this wrong at the start of the example, and when would C become worth crashing?
Show answer
At the start, C is on ACD, which is 10 days long, while the critical path ABD is 11 days. Crashing C does not change the project duration, so you would pay 300 for nothing. C only becomes worth crashing when ACD is critical and ABD has been shortened by the same amount, and even then you must also shorten ABD in the same round, because ABD is still critical. For example, crashing B and C together (400 + 300 = 700) shortens both paths by one day, but in this network crashing the shared activity A at 500 is cheaper.