Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Round robin tournament problem

by blokhead (Monsignor)
on Oct 22, 2003 at 00:17 UTC ( #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
Node Status?
node history
Node Type: note [id://301122]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2015-07-04 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls