On the top of my head: (N mod 6) mod 5 =0 (where N is the number of users) creates the maximum nr of groups with 6 users and minimum nr of groups with 5 users.
Marc
_______________________
Verzonden van mobiel
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to model...@googlegroups.com
To unsubscribe from this group, send email to
model-glue+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
On the top of my head: (N mod 6) mod 5 =0 (where N is the number of users) creates the maximum nr of groups of 6 users and minimum of 5 users
_______________________
Verzonden van mobiel
I have a list of users which is of a variable length. I need to sort
What if that is not possible?
> I should minimize the total number of teams, creating as the most
> number of 6 person teams and least number of 5 person teams possible.
Total teams: #ceiling(players/6)#
Teams with 5 players: #(6 - players mod 6) mod 6#
Jochem
--
Jochem van Dieten
http://jochem.vandieten.net/