Last active
August 29, 2015 14:04
-
-
Save kartikkukreja/19fce114ea6e4232e789 to your computer and use it in GitHub Desktop.
Interval Partitioning Problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Let R be the set of all requests | |
Let d = 0 be the number of resources | |
while !R.empty(): | |
Choose a request i ∈ R that has the earliest start time | |
if i can be assigned to some resource k <= d: | |
assign request i to resource k | |
else: | |
allocate a new resource d+1 | |
assign request i to resource d+1 | |
d = d + 1 | |
return d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment