There are two sets one containing list of classes and other contains list of teachers.Each teacher has a set of classes.We have to assign a teacher for a particular class such a way that number of classes engaged by teachers should be maximum.Is this problem is related to any optimization algorithm?I couldn't find any similar algorithms.Please help me to get the logic.
Thanks in advane
This is a maximal matching problem that is solveable efficiently in bipartite graphs using maximal flow algorithms.
The reduction to the maximal flow is simple:
s,t
.s
to all teachers, and connect all classes to t
.