The interview problem
A team adds workers to a pipeline but completion time barely changes. Analyze its dependency graph and explain the lower bounds on makespan.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Assume a DAG with known illustrative task durations and no resource contention initially. Topologically compute each task's earliest finish as its duration plus the maximum predecessor finish. The longest dependency path bounds completion time regardless of extra workers. Add resource constraints, retries and startup costs before treating the bound as a schedule. Keep task identity and output versions explicit when a failed task reruns.
2. Trace the design or derivation
Validate DAG → estimate durations → compute earliest finish → schedule ready tasks → update estimates
Compute each task's earliest finish as its duration plus the maximum earliest finish of its prerequisites. Then add resource constraints separately: two ready tasks may compete for one accelerator. Estimates should be distributions when durations vary; a deterministic critical path is a planning baseline, not a deadline guarantee.
3. Calculate the example
A takes two minutes, then B takes five and C takes three in parallel; D takes four after both. The critical path A→B→D is 11 minutes. Total work is 14 worker-minutes. With two workers, the work bound is seven minutes, but the dependency bound is 11, so seven is unattainable. Speeding C from three to one minute does not shorten this ideal critical path.
4. Failure cases and trade-offs
A resource-heavy task may delay other ready tasks and make actual time exceed the graph bound. Average duration hides stragglers. Prioritizing only longest tasks can starve small jobs. More parallelism also increases simultaneous memory and downstream demand.
5. Validation, follow-ups and self-review
Compare predicted and observed critical paths, test resource-constrained schedules and model retry branches. Follow-up: which task optimization gives the largest deadline benefit? Reward max-versus-sum reasoning, separate lower bounds and measured duration uncertainty.
Sources and related practice
Technical reference: airflow.apache.org — Directed task dependencies; critical-path calculations are original.
Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Design a distributed job scheduler; Design a GPU job scheduler.
Continue your preparation
Choose a connected learning path or browse more System design questions. Read our editorial method and attribution policy.