Registrar scheduling The registrar at a prominent northeaste
Registrar scheduling.
The registrar at a prominent northeastern University recently scheduled an instructor to teach two different classes at the same exact time. Help
the registrar prevent future mistakes by describing a method to check for such conflicts. For simplicity, assume all classes run for 50 minutes starting at 9:00, 10:00, 11:00, 1:00,
2:00, or 3:00.
Solution
There are scheduling algorithms which might give the effective solution.
As far as the scenario of the question is concerned,staying in the context of the query to schedule an instructor for only one class at a time..All the instructors should be taken into a collection..like all the instructors at 9o Clock to a collection C9,10o Clock to a collection C10..up until C15 for 3pm.After collecting them all the collections should be checked for duplicates (w.r.t java they can be placed in a SET datatype which automatically checks for duplicates).

