Hard Light Productions Forums

Off-Topic Discussion => General Discussion => Topic started by: aldo_14 on January 17, 2004, 04:01:57 pm

Title: I need some help with a league schedule
Post by: aldo_14 on January 17, 2004, 04:01:57 pm
Its for a project...i need to work out an 18 team (home and away) schedule.  I either need to hard code it, or work out an autogen algorithm.  Any advice is welcome*

*(well, obviously :))
Title: I need some help with a league schedule
Post by: aldo_14 on January 17, 2004, 06:37:33 pm
help?

Should say, if anyone can just give me a method, i can get started.  i have ideas, but the last time i did this (for a 5-a-sides league at uni), it was a bit of a disaster :)
Title: I need some help with a league schedule
Post by: kasperl on January 18, 2004, 02:20:56 am
if i get this right all you need is a table, with the names of the teams on both axes, and just put dates in the right places. you could probably make something that checks in each cell if on some date either of the affected teams is already playing, and then put in the first possible date. just let that program run and see if it comes up with something usefull.
Title: I need some help with a league schedule
Post by: aldo_14 on January 18, 2004, 05:52:53 am
Quote
Originally posted by kasperl
if i get this right all you need is a table, with the names of the teams on both axes, and just put dates in the right places. you could probably make something that checks in each cell if on some date either of the affected teams is already playing, and then put in the first possible date. just let that program run and see if it comes up with something usefull.


That's kind of what i am doing... the problem is trying to avoid the linear ( O(n) ) methods for working out what matches are to played, because it would lead to bit of a long running time.... I've been trying to develop a design that will maximise array index references, rather than linear array searches, but it's a pain in the arse.

Although....., thinking about it, that may be a bit more efficient than what i'm doing.....

I think i have a better idea now for what i'm doing, cheers :)
Title: I need some help with a league schedule
Post by: comic on January 22, 2004, 11:10:31 am
has anyone got the GVF Reshef, could you post a link where i can get it. thanks
Title: I need some help with a league schedule
Post by: aldo_14 on January 22, 2004, 11:30:26 am
Quote
Originally posted by comic
has anyone got the GVF Reshef, could you post a link where i can get it. thanks


(wow.... now that's OT :D)

http://www.3dap.com/hlp/hosted/reciprocity/mods_standalone.html