Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void calculateMaxMinTime()
- // what is longest minTime in jobs?
- //for each job, calculateMinTime, which is highest?
- void calculateSlack
- //for each job, setSlack(maxMinTime_ - minTime);
- //for each machine in use
- if running task eindtijd >= current time
- mark task don
- free machine
- //for each machine not in use
- Get task with lowest slack
- be in use
- set starttime
- set endtime
- //are all tasks done?
- cout<<done :D
- //else, has total max time been reached?
- cout << something went wrhong
- else
- ++currentTime_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement