I am trying to write a programme for a school. Here is the problem: All subejcts are organised into options. A subject can be in any number of options, from one to all of them. All the options are at different times, and I need an algorythma that will take the students chosen options, get the times available from a database of what subject/what option(s), and try and fit them together. Then it needs to tell them if they can fit all their subjects in, and, if so, show them all the possible arrangements for them. If not, it needs to tell them what the conflicts are. Any suggesitons? I am happy to clarify if needed. I don't neccessarily need code, pseudo code will do just fine - I need method.