I am trying to solve this algorithmic problem for a personal project.
- In this tournament there are 8 players.
- They play 2vs2
- Two matches at the same time are played (so that all 8 players are playing)
- Each player has to play 7 matches playing once (in the same team) with all the others
- At the end of the tournament each player played 7 matches.
- The tournament is composed by a total of 14 matches
- A permutation of the matches does not count as a new tournament. (i.e. the tournament is defined as a set of matches)
This is an example tournament with players A,B,C,D,E,F,G,H:
Match 1 : A, B VS C, D. Score = ____ : ____
Match 2 : E, F VS H, G. Score = ____ : ____
Match 3 : C, A VS B, D. Score = ____ : ____
Match 4 : E, G VS H, F. Score = ____ : ____
Match 5 : A, D VS C, B. Score = ____ : ____
Match 6 : H, E VS F, G. Score = ____ : ____
Match 7 : E, A VS B, F. Score = ____ : ____
Match 8 : C, G VS H, D. Score = ____ : ____
Match 9 : A, F VS E, B. Score = ____ : ____
Match 10 : H, C VS D, G. Score = ____ : ____
Match 11 : A, G VS H, B. Score = ____ : ____
Match 12 : C, E VS D, F. Score = ____ : ____
Match 13 : H, A VS B, G. Score = ____ : ____
Match 14 : C, F VS E, D. Score = ____ : ____
Note that Match i
and Match i+1
are played at the same time if i%2==1
Question:
How many different tournaments are possible? Which are these tournaments?
I tried a sort of brute force approach but it is too slow. Is there any better algorithm?
EDIT:
code is welcome. Especially python