Hard Light Productions Forums
Off-Topic Discussion => General Discussion => Topic started 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 :))
-
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 :)
-
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.
-
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 :)
-
has anyone got the GVF Reshef, could you post a link where i can get it. thanks
-
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