team combinations for league scedule
6 views (last 30 days)
Show older comments
i would appreciate any help i can get, i run a youth organization and i am stumped!!! please read below.
if I have 15 teams, each week there are 5 groups of 3 teams playing. In each group each team will play each other once. I need every team to play each other once and a maximum of twice. what combinations are there to fill out a schedule? Thanks Drew
0 Comments
Answers (1)
Star Strider
on 30 Jan 2015
I’m not certain what you want, but there are (according to nchoosek), 105 games that will have all teams playing all other teams. The unique combinations would be given by:
AllMatches = nchoosek([1:15], 2);
This takes all 15 teams and creates unique matches for two at a time. It would of course be up to you as to how you want to order them. You would have to be sure that each team (in each column for a given row) are not playing any other teams at the same time.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!