See Problem 2.17
exr:job_scheduling
