+ Reply to Thread
Results 1 to 13 of 13

Need Help Generating a List of all Possible Tournament Rounds

  1. #1
    Registered User
    Join Date
    12-28-2011
    Location
    Kansas, United States
    MS-Off Ver
    Excel 2007
    Posts
    6

    Need Help Generating a List of all Possible Tournament Rounds

    I have what at first glance appears to be a trivial task, but I've found it to be a bear to figure out.

    Given an arbitrary even number of participants between 2 and 32 (lets call that number "n"), generate a listing of all possible tournament rounds consisting of n/2 games. Each match should appear in an separate cell and each round should appear on a separate line.

    For example, given 4 players, numbered 1 through 4, here is what it would generate:

    (1,2), (3,4)
    (1,3), (2,4)
    (1,4), (2,3)

    Here is a start to what it would look like for 6 players:

    (1,2), (3,4), (5,6)
    (1,2), (3,5), (4,6)
    (1,2), (3,6), (4,5)
    (1,3), (2,4), (5,6)
    (1,3), (2,5), (4,6)
    (1,3), (2,6), (4,5)
    (1,4), [...]

    Obviously, the higher the number of players, the more games in each round and the more rounds are possible.

    I would like to figure out a way to do this without resorting to VBA if possible.

    Advice is greatly appreciated!
    Last edited by riddlemethis; 12-31-2011 at 09:24 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Need Help Generating a List of all Possible Tournament Rounds

    Can you upload example workbook?

  3. #3
    Registered User
    Join Date
    12-28-2011
    Location
    Kansas, United States
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Need Help Generating a List of all Possible Tournament Rounds

    I don't have an example workbook, but I don't have anything to demonstrate beyond what I put in the post above. All an example spreadsheet would contain is a manually typed listing such as those I provided above. I can manually generate these lists, but I haven't been able to figure out the formulas required to generate them using Excel.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Need Help Generating a List of all Possible Tournament Rounds

    ok, then manually type it and upload it with your desired output.

  5. #5
    Registered User
    Join Date
    12-28-2011
    Location
    Kansas, United States
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Need Help Generating a List of all Possible Tournament Rounds

    I have uploaded an example spreadsheet. I have formulas in columns A and B that will generate a complete listing of potential matches in column C for an arbitrary even number of players between 2 and 32 (entered into cell D1).

    I have manually typed my desired result for 6 players in columns E through G.

    I hope that this is helpful.

    Thanks again for the advice!
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Need Help Generating a List of all Possible Tournament Rounds

    Hi

    I have a question regarding your data. In the scenario with four players no pairings are duplicated, but in the six player example players are meeting multiple times, is this intentional and if so what rules are you using to determine how many times players will face each other.

    Regards

    Jeff

  7. #7
    Registered User
    Join Date
    12-28-2011
    Location
    Kansas, United States
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Need Help Generating a List of all Possible Tournament Rounds

    Because my objective is to generate a listing of all possible rounds given a number of players, I expect to see pairings duplicated as a particular pairing could appear in more than one possible round.

    Since there are only 3 possible combinations of matches with only 4 players, pairings don't have to repeat to get to all the possible rounds. This isn't true with 6 players.

    Once I have a complete listing of all possible rounds, I intend to use another criteria to determine what rounds will actually be played. However, that process is outside of the scope of what I am asking here.
    Last edited by riddlemethis; 12-31-2011 at 10:54 AM.

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Need Help Generating a List of all Possible Tournament Rounds

    Not sure if you are still monitoring this, but one way of scheduling games (and avoiding duplicates) is to use a 2-d table. Suppose your teams are a b c d e and f, then list these on the top row (starting in the second column) and in the first column (starting in the second row). Now, you can imagine the teams in the first column have to play the teams in the top row, so the intersection of these rows and columns can be used to store the date of the game, or the resulting score etc. Obviously, team a cannot play themselves, so the leading diagonal is redundant. If your teams are not playing home and away, then one of the triangles is also redundant. Here is a possible schedule for the games, where the numbers represent the rounds:


    a b c d e f
    a * 1 2 3 4 5
    b * 4 5 3 2
    c * 1 5 3
    d * 2 4
    e * 1
    f *

    (hope the multiple spaces are retained - some forums remove them) and this translates into:

    Round 1: ab cd ef
    Round 2: ac de bf
    Round 3: ad de cf
    Round 4: ae bc df
    Round 5: af bd ce

    There are other solutions - if you swap the positions of all three of one round number with another you will get another schedule, although that is just like swapping the Round 3 matches above with those in Round 5 (for example).

    Hope this helps.

    Pete

    EDIT: no, the multiple spaces were removed. Imagine the top row a b c d e f etc is moved across, and then each of the rows below is moved across so that the asterisk is located progressively underneath each of the teams. I tried to add a picture but wasn't allowed to.

    Pete
    Last edited by Pete_UK; 01-01-2012 at 09:24 PM.

  9. #9
    Registered User
    Join Date
    12-28-2011
    Location
    Kansas, United States
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Need Help Generating a List of all Possible Tournament Rounds

    Thanks for the response. I have played around with this method a bit, but I am not sure it gets me what I need. I really need to figure out how to systematically generate all possible rounds. perhaps I could cycle though the process you describe above?

    I am a little confused about how you decided what numbers went on the third line of the diagram how did you pick 4,5,3,2? Was this random?

    I know from manually writing them all out, that there are exactly 15 possible rounds with 6 players (see my example spreadsheet I attached above). Meaning that there are no other rounds possible. Every possible combination of match-ups can be found in these 15 rounds. No others are possible.

    The problem is, I haven't been able to figure out any way to generate a listing of all possible rounds given an arbitrary even number. Heck, I haven't even been able to figure out a formula to figure out how many possible rounds there are given such a number. The only reason that I know 6 players result in only 15 possible rounds is that I wrote them all out.
    Last edited by riddlemethis; 01-02-2012 at 02:25 AM.

  10. #10
    Registered User
    Join Date
    12-28-2011
    Location
    Kansas, United States
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Need Help Generating a List of all Possible Tournament Rounds

    Ok, in playing around with the numbers I found a pattern that might help me out.

    Number of players / Number of possible matches / Number of possible rounds

    2/1/1
    4/6/3
    6/15/15
    8/28/105
    10/45/945
    12/66/10395

    As can be seen, the number of possible rounds for a particular even number is equal to the number of potential matches times the number of possible rounds for the previous even number divided by the number of matches in a round. So, for the number 6:

    15 (the number of potential matches with 6 players) * 3 (the number or possible rounds with 4 players) / 3 (matches per round) = 15 possible rounds

  11. #11
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Need Help Generating a List of all Possible Tournament Rounds

    Another way to look at it: if you have 10 teams then each team has to play 9 other teams, so there are 9 different rounds. If you have 6 teams, each team plays 5 other teams, so there are 5 different rounds, i.e. for n teams there are (n-1) rounds assuming even number of teams. Each round has half as many games as there are teams, as two teams are involved in each match, i.e. n/2 matches per round.

    I looked at your example file and I think it doesn't quite generate all the correct pairings - when I tried 20 teams the last pairing was 13-42 !!

    I can give you a file which generates the pairings up to 32 teams, if I can figure out how to attach a file properly.

    Hope this helps.

    Pete

  12. #12
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Need Help Generating a List of all Possible Tournament Rounds

    Hi

    Unless you absolutely need to to do this in Excel try http://www.fixturelist.com which is designed to do exactly what you are looking for. Alternatively try this Wikipedia link http://en.wikipedia.org/wiki/Round-r...nt#cite_note-1 which explains in detail how you can create your matchups.

    regards

    Jeff
    Last edited by solnajeff; 01-02-2012 at 05:21 PM.

  13. #13
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need Help Generating a List of all Possible Tournament Rounds

    How about just the rounds of a round-robin tournament?

    http://www.box.com/s/z41sn0yrp5lo1cuozke3
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1