Reputation: 361
I came across this website while looking for help on the internet regarding adj. matrix / graph theory.
My program layout is as follows:
I am trying to achieve the following:
Once the matrix is made, the results on the screen should be displayed as:
I am not really sure how to work on this. AFAIK, the best approach would be to create an overall exam schedule of all the distinct courses and computing it in such a way that no exams conflict with one another.
Any help/advice/links is greatly appreciated.
Any suggestions on how to program this? I can't seem to find any pseudo code or guidance on programming the graph coloring problem.
Upvotes: 2
Views: 2473
Reputation: 101149
I would suggest taking the brute-force approach, to start. The number of possible arrangements of exams is likely small enough to exhaustively search them.
To give more detail for a solution, it would help to know more about the problem: How many exams per day? Is it possible for there to be multiple simultaneous exams, or are they all sequential?
Upvotes: 0
Reputation: 49218
You can model your problem as a graph coloring-problem.
Edit: Another heuristic approach using genetic algorithms.
Upvotes: 4