team combinations for league scedule

6 views (last 30 days)
andrew gargan
andrew gargan on 29 Jan 2015
Answered: Star Strider on 30 Jan 2015
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

Answers (1)

Star Strider
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.

Categories

Find more on Just for fun in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!