10349

This is a bipartite matching problem. This can be solved using Ford fulkerson algorithm for Max flow problem.

 

Leave a Reply

Your email address will not be published. Required fields are marked *