What algorithm is appropriate for finding possible matches to form a group of L players?
What algorithm is appropriate for finding possible matches to form a group of L players? Given a group of M1, M2, ... , Mn teams (each team has length <= L/2) I am trying to find (as efficiently as possible, iteratively) combinations which match the criteria: Note: Any pointers, links, hints appreciated. "all possible combinations" - that sounds expensive. – Dai Jul 1 at 19:15 @Dai Agreed. I have edited to indicate I can work with a stream of results as well. – kidoman Jul 1 at 20:16 I've deleted my answer as it is not a good fit given the additional note above. – chucksmash Jul 1 at 21:03 ...