Schedule Allocation Algorithm, Greedy Algorithm