Simulate systems over timeLesson 39 of 76 · 8 min
Parallel work changes the critical path
Calculate finish time from a task dependency graph.
Task durations alone do not determine project completion. The dependency graph says which tasks can run together and which must wait. For two parallel preparation tasks followed by a review, completion is max(A, B) plus the review duration. The critical path is the dependent task chain controlling completion; here it passes through the slower preparation and then review.
Simulate the same duration draws under both a serial and a parallel schedule. This isolates the scheduling rule from differences in sampled tasks. With positive durations and unlimited resources for the parallel branches, the parallel schedule cannot take longer than the serial one in the same trial.
Real resource constraints may prevent this ideal parallelism. A shared specialist, common equipment or rework loop belongs in the model when it affects feasibility. A shorter simulated finish does not establish that the organisation can execute the proposed schedule.
- Two preparations overlap
- Both must finish
- Then review
Must both parallel branches finish before the review begins?
Write a prediction (optional)
Seeded teaching simulation
Select Run Python below with the code unchanged.
A saved draft is open. To run the published example, open Tools and select Restore example. Recover draft brings your code back.
Execution error
Technical error details
Your result
Published example output
This result comes from the original Python. Your runs appear above. Build environment ↗
Serial / parallel median (days): 13.953 9.414 Parallel P(finish <= 12 days): 0.9114 Fraction where B is the longer preparation: 0.8279
Read the first result
The controlling branch can differ from trial to trial. A critical path based only on mean task durations can miss that variability.
Try an edit
Add print("Half serial median (days):", round(np.median(np.where(rng.random(len(a)) < .5, serial, parallel)), 3)) at the end of the editor. Select Run Python again. Compare Half serial median (days) with Serial / parallel median (days). What evidence would justify independent 50% resource conflicts in a real project?
Scope. The parallel schedule assumes resources are available and there is no interference between branches.
Try a fresh case
A and B run together, then C starts after both finish. Which formula is correct?
Need a hint?
Hint 1
Draw the dependency arrows.
Hint 2
Locate the moment when C is permitted to start.