Greedy priority scheduling
Also known as greedy scheduler
scheduling resource-timeline
Greedy priority scheduling places activities on a resource plan one by one, highest priority first, with ties broken by activity id. Each activity goes to the earliest start in its window at which it fits, found by earliest-start search. An activity that does not fit anywhere is skipped, and the plan stays unchanged for it. The scheduler never moves a placed activity and never backtracks, so it can miss a placement that another order would find. Use it as a fast repair step after a change, with a precomputed order as the priorities.
Pseudocode
algorithm Greedy-Schedule(P, REQUESTS, max-checks)input: plan P, requests with activity id, priority, start window and demandsoutput: the chosen start of each request, or nil where it does not fitORDER ← REQUESTS sorted by priority, highest first, ties by activity idfor each r in ORDER dostart[r] ← earliest-start(P, demands(r), window(r), max-checks)if start[r] ≠ nil thenplace(P, activity(r), start[r], demands(r)) ▷ never moved again, no backtrackingreturn startIn the crates
resource-timelinefeatureallocPlaces activities in priority order at their earliest feasible start, never moving or backtracking.
Lineage
Comes from
builds on Earliest-start search
Led to
Nothing on this site.