Modeling Task Prerequisites as a Graph

A prerequisite graph represents allowable execution orders and identifies tasks that may be independent under its stated requirements.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Build a four-task plan
  2. Distinguish feasibility from performance
  3. Distinguish legal order from earliest start times
  4. Add resource limits only after checking prerequisites

Build a four-task plan

Inputs must be read before rendering and before computing statistics. Rendering and statistics both precede publishing. After inputs are read, either middle task can run first if the model imposes no other resource constraints. Topological removal generates one permitted sequence.

Distinguish feasibility from performance

A valid order says every dependency is satisfied. It does not say when work finishes if tasks have durations or compete for resources. Edge and path costs illustrate why adding numeric information changes a graph question.[1]

Distinguish legal order from earliest start times

Suppose tasks A and B take two and five hours and both precede C, which takes one hour. With enough workers, A and B can run together. C starts after B at hour five and finishes at six. A topological sequence alone would also permit running them serially. See topological ordering.

Start A=0, finish A=2
Start B=0, finish B=5
Start C=max(2,5)=5, finish C=6

Add resource limits only after checking prerequisites

With one worker, these three tasks take eight hours under the same durations. Additional shared resources can require more than a dependency graph. State how much parallel work is allowed before claiming a schedule is optimal.

References

  1. Eric Lehman, F. Thomson Leighton and Albert R. Meyer, Mathematics for Computer Science ↩