Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Round robin tournament problem

by blokhead (Monsignor)
on Oct 22, 2003 at 00:17 UTC ( [id://301122]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
          P1 P2 P3 P4 P5 P6
    
    ...
     P4    3  5  1     2  4
     P5    4  3  5  2     1
     P6    5  2  3  4  1
    
  2. or download this
    Rd 1: (P1,P2), (P3,P4), (P5, P6)
    Rd 2: (P1,P3), (P2,P6), (P4, P5)
    Rd 3: (P1,P4), (P2,P5), (P3, P6)
    Rd 4: (P1,P5), (P2,P3), (P4, P6)
    Rd 5: (P1,P6), (P2,P4), (P3, P5)
    
  3. or download this
      factorial[ ((n/2)-1) * (n-1) ] / [ factorial((n/2)-1) ]^(n-1)
    
  4. or download this
    Round 1:
    match 8 with 1, then pair up the rest
    ...
              5    4    
    
    Round X: ... keep rotating around the circle, etc
    
  5. or download this
    my @players = qw/Frodo Sam Merry Pippin Strider Gandalf Legolas Gimli/
    +;
    
    ...
        print "  $players[$p1] vs $players[$p2]\n";
      }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://301122]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-24 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found