I have n different group, each group should contain 4 people(DB,UI,PF,Designer) and i have 4*n student, i want to place them into the group.
There is several constraint, such as one group can only have 1 female, the average gpa should meet 3.0 etc. Each constraint will have a score and i need to make sure all the group have the similiar score.
I use recusive to try all statement and calculate the score and variance.
However, my method works when there is not too much student. If there is 100 student, it will be 100! and it is hard to solve.
Is there any other idea that can imporve the algorithm?
Thanks so much!