Home > Soccer Forum > World of Soccer > The Beautiful Game

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 20 Aug 2002, 04:42 AM   #1
charlgerber
BigSoccer Member
 
Join Date: Apr 2000
Location: Amsterdam
Default Calculating fixtures

Can someone please provide me with a good algorythm for calculating league fixtures? I know Ken Butler used to have a good one that could be applied to a league of any number of teams.... anyone out there? Thanks!
charlgerber is offline   Quote 

TRY BIGSOCCER
NOW!
NEWS, SCORES & TABLES FOR 1,300 CLUBS

Connect in the web's largest forums.
Blog about soccer from your point of view.
Shop 17,000 authentic soccer items.




On sale for $29.99
at our soccer store

On sale for $24.99
or buy soccer jerseys

Old 20 Aug 2002, 08:42 AM   #2
IASocFan
BigSoccer Moderator
 
Join Date: Aug 2000
Location: IOWA

Supporter: Des Moines Menace, Kansas City Wizards
Default

Say you have 8 teams. Start with
1-2
3-4
5-6
7-8.
Then keep 1 stationary and rotate the rest:
1-3
5-2
7-4
8-6
week 3
1-5
7-3
8-2
6-4
etc. for weeks 4-7. This works for any number of teams. If you have an odd number, one number becomes the bye team. Hope this was what you were looking for.
IASocFan is offline   Quote 
Old 20 Aug 2002, 08:55 AM   #3
IASocFan
BigSoccer Moderator
 
Join Date: Aug 2000
Location: IOWA

Supporter: Des Moines Menace, Kansas City Wizards
Default

My objective was to provide a round robin schedule for a given number of teams. The teams are placed randomly. I'm not sure what you're trying to accomplish.
IASocFan is offline   Quote 
Old 20 Aug 2002, 08:56 AM   #4
charlgerber
BigSoccer Member
 
Join Date: Apr 2000
Location: Amsterdam
Default

Thanks, this is a big help... I just need to tweak the algorythm a bit to ensure teams play home/away in alternate weeks. Is this the algorythm based on th graph theory?
charlgerber is offline   Quote 
Old 20 Aug 2002, 08:59 AM   #5
charlgerber
BigSoccer Member
 
Join Date: Apr 2000
Location: Amsterdam
Default

Sorry, I initially misunderstood what you meant by rotating, but then I see you physically rotated them clockwise, ignoring 1.... it is now clear. Thanks again.
charlgerber is offline   Quote 
Old 20 Aug 2002, 09:01 AM   #6
IASocFan
BigSoccer Moderator
 
Join Date: Aug 2000
Location: IOWA

Supporter: Des Moines Menace, Kansas City Wizards
Default

Quote:
Originally posted by charlgerber
Is this the algorythm based on th graph theory?
I don't think so.
IASocFan is offline   Quote 
Old 20 Aug 2002, 11:12 AM   #7
Dr. Wankler
BigSoccer Member+
 
Join Date: May 2001
Location: Appalachia
Smile

It was my understanding that there would be no math required for membership on bigsoccer.
Dr. Wankler is offline   Quote 
Old 21 Aug 2002, 04:49 AM   #8
charlgerber
BigSoccer Member
 
Join Date: Apr 2000
Location: Amsterdam
Default fixtures

I wrote a Java program (with some tweaks) and this works very well. You should see the code - now that is a mathematical nightmare at first glance! But the result is great. The tweaks I made was alternating the home/away teams every second week, so now you get a "real" schedule with teams playing every 2nd game home/away. Only once in the season will a team play two consecutive home games and two consecutive away games.

But I'm also still looking for the other algorythm to compare the two.....
charlgerber is offline   Quote 
Old 21 Aug 2002, 07:57 AM   #9
IASocFan
BigSoccer Moderator
 
Join Date: Aug 2000
Location: IOWA

Supporter: Des Moines Menace, Kansas City Wizards
Default

does your proram work with any number of teams?
IASocFan is offline   Quote 
Old 21 Aug 2002, 08:10 AM   #10
charlgerber
BigSoccer Member
 
Join Date: Apr 2000
Location: Amsterdam
Default

I've tested it for 4,6,8,10 and 18 teams and it worked fine. I haven't checked for uneven numbers, but I am using it for specificly 18 teams, so my problem is solved.

I'll write JUnit test code to test the fixtures thoroughly for all sorts of criteria.
charlgerber is offline   Quote 
Share

Reply

  Home > Forums > World of Soccer > The Beautiful Game


On sale for $26.99
at our soccer store

On sale for $49.99
or buy soccer jerseys

Share
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Forum Jump



World of Soccer
On The Pitch
Equipment & Gear
Soccer Store
England
Europe
USA
Americas
Asia, Oceania & Africa
Women's Soccer
Not Soccer Related
Customer Service







All times are GMT -5. The time now is 10:22 AM.



 

Copyright © 2009 Big Internet Group, LLC. All rights reserved. PRIVACY POLICY. TERMS OF USE.
The BigSoccer name and logo and 'Share the Passion!' are service marks of Big Internet Group, LLC.
The BIG Network: Soccer | Aussie Rules Football | Travel | Cricket | Lacrosse | Music
Views expressed by the bloggers and users of BigSoccer do not represent the views of Big Internet Group, LLC.