Algorithm for generate single elimination round from previous groups phase in a tournament
An example tournament has two stages, groups play + bracket play. When the groups stage ends, the x top of each group go to bracket stage. In the brackets stage there are two basics rules:
a winner of a group should not be matched against a winner of another group (only against 2nd or 3rd place)
no two teams that played in the same group should be matched against each other.
For example, if we have 6 groups and top 2 each...