[Solved] Algorithm to group people based on their preference
One way to solve this is to use integer linear programming. There are many solvers out there for ILP, for example SCIP (http://scip.zib.de/). You would have binary variable for each assigment, i.e. = 1 if person i was assigned to table j (and 0 is it was not assigned). Your goal is to maximize total … Read more