#99283 - 2003-03-12 05:14 AM
Re: KiXtart Golf: CD Sorter
|
Lonkero
KiX Master Guru
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
k, thanks jens... here is the results for the code I tried to approve yesterday:
quote:
CD #1 Title = 70's Super Funk Song #s = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,17 CD Length = 44.99 CD Gap = 0.01 CD Gap [%] = 0.02 Opt. Length = 45.00 CD can be further optimized by 0.01% A valid CD has been created
CD #2 Title = Partridge Family Unlimited Song #s = 1,2,3,4,6,7,8,10 CD Length = 44.93 CD Gap = 0.07 CD Gap [%] = 0.16 Opt. Length = 44.94 CD can be further optimized by 0.02% A valid CD has been created
CD #3 Title = Three Tenors in Antarctica, Again! Song #s = 1,2,3,4,5,6,7,9,10,14 CD Length = 44.81 CD Gap = 0.19 CD Gap [%] = 0.42 Opt. Length = 44.96 CD can be further optimized by 0.33% A valid CD has been created
CD #4 Title = Support Your Local KiXGolfer Song #s = 1,37 CD Length = 44.20 CD Gap = 0.80 CD Gap [%] = 1.78 Opt. Length = 44.70 CD can be further optimized by 1.12% A valid CD has been created
CD #5 Title = ABBA Bubba! Song #s = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,18,27 CD Length = 44.97 CD Gap = 0.03 CD Gap [%] = 0.06 Opt. Length = 44.96 CD has been fully optimized A valid CD has been created
CD #6 Title = Songs You Never Wanted Your Teenage Daughter To Know About Song #s = 1,2,4,5,7,8 CD Length = 44.60 CD Gap = 0.40 CD Gap [%] = 0.89 Opt. Length = 44.50 CD has been fully optimized A valid CD has been created
CD #7 Title = Moon Rocks! Song #s = 1,2,3,4,5,6,7,9,10,12,13,14,16,17,27 CD Length = 44.99 CD Gap = 0.01 CD Gap [%] = 0.01 Opt. Length = 45.00 CD can be further optimized by 0.01% A valid CD has been created
CD #8 Title = Ruud's Favs Song #s = 1,2,3,4,5,6,7,8,9,10,11,12,13,14 CD Length = 42.29 CD Gap = 2.71 CD Gap [%] = 6.02 Opt. Length = 44.58 CD can be further optimized by 5.15% A valid CD has been created
CD #9 Title = MTV Presents: KiXtart Rulez! Song #s = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,21,22,23,24,25,26,27,28,30,31,32,33,35,46 CD Length = 45.00 CD Gap = 0.00 CD Gap [%] = 0.00 Opt. Length = 45.00 CD can be further optimized by 0% A valid CD has been created
CD #10 Title = Songs From the Programmer's Abyss Song #s = 25 CD Length = 45.00 CD Gap = 0.00 CD Gap [%] = 0.00 Opt. Length = 45.00 CD has been fully optimized A valid CD has been created
CD #11 Title = Just Noise (100% Pure White Noise) Song #s = 1,51,52,53,54 CD Length = 44.25 CD Gap = 0.75 CD Gap [%] = 1.67 Opt. Length = 44.25 CD can be further optimized by 0% A valid CD has been created
CD #12 Title = Cazy Jens And the KIXGolfers Song #s = 1,2,3,4,5,6,7,8,9,88 CD Length = 44.99 CD Gap = 0.01 CD Gap [%] = 0.02 Opt. Length = 45.00 CD can be further optimized by 0.02% A valid CD has been created
Average CD Length = 44.59 Average Gap = 0.41 Average Gap [%] = 0.92
KiXtart KiXtart Version = 4.21 Release Candidate 1 KiXGolf Script = kixgolf_cd.kix
Computer OS = Windows 2000 Professional CPU = Intel Pentium III Speed = 797 MHz Memory = 375 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: CD Sorter Processing Start = 2003/03/12 06:02:11.312 Processing End = 2003/03/12 06:17:33.659 Duration = 0000/00/00 00:15:22.346 # Loops = 100 # Processed CDs = 12 # Valid CDs = 12 # Optimized CDs = 3 KiXGolf Result = Valid CD Sorter (Room For Improvement) KiXGolf Score = 245 Thank you for participating in KiXtart Golf!
_________________________
!download KiXnet
|
Top
|
|
|
|
#99284 - 2003-03-12 05:54 AM
Re: KiXtart Golf: CD Sorter
|
Lonkero
KiX Master Guru
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
jens, I still get array reference out of bounds. kixgolf_cd.kix line 115. last thing in console: quote:
CD #2 Title = Partridge Family Unlimited Song #s = 1,2,3,4,6,7,8,10 CD Length = 44.93 CD Gap = 0.07 CD Gap [%] = 0.16 Opt. Length = 44.94 CD can be further optimized by 0.02% A valid CD has been created
that error comes due my test code that has added "0" song. should it still crash? could the console say something?
{edit} also, what is this:
code:
CD #11 Title = Just Noise (100% Pure White Noise) Song #s = 1,51,52,53,54 CD Length = 44.25 CD Gap = 0.75 CD Gap [%] = 1.67 Opt. Length = 44.25 CD can be further optimized by 0% A valid CD has been created
eh? how much is 0%? should I read it that I should make my collection better than yours to be approved as optimized? [ 12. March 2003, 07:29: Message edited by: Lonkero ]
_________________________
!download KiXnet
|
Top
|
|
|
|
#99285 - 2003-03-12 10:53 AM
Re: KiXtart Golf: CD Sorter
|
Richard H.
Administrator
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Nuts.
Ran to completion and then no output. Removed the formatnumber and restarted.
May not going to get an opportunity to optimise at this rate
|
Top
|
|
|
|
#99287 - 2003-03-12 11:15 AM
Re: KiXtart Golf: CD Sorter
|
Richard H.
Administrator
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Yep, still using brute force with some speed up techniques.
If I pre-sort the arrays I can make massive improvements in speed, but with a huge overhead in code.
If I convert to integer I can probably make similar improvements, again with code overhead.
At the moment I just want it to run to completion so I can check that the algorithm is OK before optimising.
Run times aren't too bad. Latest run (still active) is:
code:
Loop #1 started @ 09:00:28 CD #1 @ 09:00:28 CD #2 @ 09:02:18 CD #3 @ 09:02:20 CD #4 @ 09:02:25 CD #5 @ 09:02:34 CD #6 @ 09:02:37 CD #7 @ 09:02:37 CD #8 @ 09:02:44 CD #9 @ 09:05:32 CD #10 @ 10:07:56 CD #11 @ 10:08:01
CD#9 is the hardest so far at just over the hour.
I think I may be having rounding problems with the floating point which are causing some comparison problems. For instance, one of my checks halts processing down a tree when the gap become negative (too many tracks).
This is a problem when the values get buggered up internally, so instead of "1" you have "0.99999976234". Substract "1" from it and you will get a negative value which will cause the sequence to be deemed invalid.
Maybe I will have to switch to integer sooner rather than later...
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 896 anonymous users online.
|
|
|