Thursday, June 5, 2008
IntiCas 022: Fixed Null Bug
The above shows subjects being allocated based
on the blog IntiCas Algorithm Experiment 003's
scenario However, it was also indicated that
the timetable that was generated for CSC666
was short by 1 hour and instead contained a
"null null" entry in the last slot.
The bug is now fixed and below is the code:
To Do:
Hopefully the algorithm above can form the template for
any future algorithms. I will next try to implement
allocation for all weeks instead of just Mondays. And
also try add additional constraints like a maximum
hours per day for each subject so that we will not end
up with 6 hours of the same subject per day.