Page 8 of 9 « First<56789>
Topic Options
#99351 - 2003-03-14 03:32 PM Re: KiXtart Golf: CD Sorter
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
quote:

Average CD Length = 44.57
Average Gap = 0.43
Average Gap [%] = 0.97

KiXtart
KiXtart Version = 4.20
KiXGolf Script = kixgolf_cd.kix

Computer
OS = Windows XP Professional
CPU = Intel Pentium III
Speed = 730 MHz
Memory = 126 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: CD Sorter
Processing Start = 2003/03/14 09:36:34.537
Processing End = 2003/03/14 09:37:19.350
Duration = 0000/00/00 00:00:44.813
# Loops = 1
# Processed CDs = 12
# Valid CDs = 12
# Full CDs = 0
KiXGolf Result = Valid CD Filling
KiXGolf Score = 239

Thank you for participating in KiXtart Golf!

_________________________
Eric

Top
#99352 - 2003-03-14 03:37 PM Re: KiXtart Golf: CD Sorter
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
maciep, I want to know...
how generic is your code?
like, if the songlist has only 2 five-minute songs, does it work?
or is it specific for this task?
just want to know [Wink]
_________________________
!

download KiXnet

Top
#99353 - 2003-03-14 04:01 PM Re: KiXtart Golf: CD Sorter
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
Jooel,

It is specific for this task in that if the given gap of one minute is not attainable, the function would fail.

So, if there were only two five-minute songs in a list, then the function would not work. But if there were only two 27-minute songs in a list, it would work.
_________________________
Eric

Top
#99354 - 2003-03-14 04:04 PM Re: KiXtart Golf: CD Sorter
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yeah, just like I quessed.
no wonder I have hard time competing [Big Grin]

well, I try to keep up but I have great suspicion will I get any strokes of this without loosing the generic nature.
well, will try to improve the crypting.
_________________________
!

download KiXnet

Top
#99355 - 2003-03-14 04:08 PM Re: KiXtart Golf: CD Sorter
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
So, If I would test it with gap=2, your function would fail? What happens if I change the media length?

Hmm, the whole gap-business could have lead to the introduction of a third calling parameter CD_Sorter(SongList, MediaLength, Gap) but that's too late now.
_________________________
There are two types of vessels, submarines and targets.

Top
#99356 - 2003-03-14 04:11 PM Re: KiXtart Golf: CD Sorter
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
jens, the gap thingie could have been with percent ruling.
but what comes to medialength, wonder why you wanted to use the same.

could have collected the info together from multiple loops with multiple media-lengths...

well, think that it's too late for this also.
_________________________
!

download KiXnet

Top
#99357 - 2003-03-14 04:17 PM Re: KiXtart Golf: CD Sorter
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Yes, I know, two loops, one for media lengths between e.g. 0 and max(sum(Songlist)), the other one for a gap of 0.05%-20% of media length.

But, as you said, this is too late now. Unless we modify the goal of the second (public) coding round. I'm not going to make any changes to the current setup.
_________________________
There are two types of vessels, submarines and targets.

Top
#99358 - 2003-03-14 04:29 PM Re: KiXtart Golf: CD Sorter
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
Guys,

Media length is not a factor in my function. If it's changed, the function will still work.

Personally, I agree that CDSorter() should have a third parameter for the gap. Right now, I have it hardcoded as 1 minute.

Anyway,

quote:

Average CD Length = 44.47
Average Gap = 0.53
Average Gap [%] = 1.18

KiXtart
KiXtart Version = 4.20
KiXGolf Script = kixgolf_cd.kix

Computer
OS = Windows XP Professional
CPU = Intel Pentium III
Speed = 730 MHz
Memory = 126 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: CD Sorter
Processing Start = 2003/03/14 10:27:32.231
Processing End = 2003/03/14 10:27:43.074
Duration = 0000/00/00 00:00:10.843
# Loops = 1
# Processed CDs = 12
# Valid CDs = 12
# Full CDs = 0
KiXGolf Result = Valid CD Filling
KiXGolf Score = 230

Thank you for participating in KiXtart Golf!



[ 14. March 2003, 16:30: Message edited by: maciep ]
_________________________
Eric

Top
#99359 - 2003-03-14 04:31 PM Re: KiXtart Golf: CD Sorter
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
not saying that medialength is a factor but it would bring up real-world usage example.

that is the reason the parameter was added in first place.
_________________________
!

download KiXnet

Top
#99360 - 2003-03-14 06:53 PM Re: KiXtart Golf: CD Sorter
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
btw, jens...

think that we could make a cycle counter for next golf tournament.
purely kix-solution and not perfect I have in mind but anyway.
_________________________
!

download KiXnet

Top
#99361 - 2003-03-14 07:33 PM Re: KiXtart Golf: CD Sorter
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK

Average CD Length = 44.83
Average Gap = 0.17
Average Gap [%] = 0.39

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/14 19:58:48.046
Processing End = 2003/03/14 20:38:02.722
Duration = 0000/00/00 00:39:14.675
# Loops = 1
# Processed CDs = 12
# Valid CDs = 12
# Full CDs = 2
KiXGolf Result = Valid CD Filling
KiXGolf Score = 245

Thank you for participating in KiXtart Golf!
_________________________
!

download KiXnet

Top
#99362 - 2003-03-14 08:12 PM Re: KiXtart Golf: CD Sorter
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I don't actually like the Idea of gap as arg.

it's then no more real-life situation.
who knows before hand the best solution without testing?
and who needs to know anything anymore when he knows the ideal?

that is stupid in that way.
but the gap could have been percent of the media length IF POSSIBLE or little lower etc.

this way the task would have double harder too.
_________________________
!

download KiXnet

Top
#99363 - 2003-03-14 08:26 PM Re: KiXtart Golf: CD Sorter
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
I understand what you're saying, but I still like the gap. It gives us a set of rules. I mean after all, this is a golf tournament. So with no rules, whose the winner? Would it be lowest score, smallest gap or fastest function?

Gap % would work too, but it would just add strokes to my score, it wouldn't change my algorithm at all.

And as far as real world goes, I don't think a function that takes 40 minutes to fill 12 CD's with songs would be very acceptable.
_________________________
Eric

Top
#99364 - 2003-03-15 12:42 AM Re: KiXtart Golf: CD Sorter
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
I am not sure about the gap being the key variable. Rounding is raising its ugly head in all my tests. Several of Jens' examples can give multiple answers that differ in the 3rd or 4th decimal. For example, I have derived 2 very different answers for CD1 that give lengths of 44.9998 & 44.9999 for an improvement of 0.0001 in the gap. Small changes in logic can drastically change the derived results.

Rounding & data conversion in kixtart can be bizarre & unpredictable.
_________________________
Jack

Top
#99365 - 2003-03-15 02:34 AM Re: KiXtart Golf: CD Sorter
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Theoretically, you wouldn't have any rounding issues as all datasets have foru decimal places and simple add/subtract operations won't change the number of significant decimal places.

However, since the numbers are displayed in binary fashion, you incur +/- EPS in precision for each number. EPS is the smallest number that can be expressed in the number format used. EPS for integers is e.g. 1. So, even add/subtract introduce very small round-off errors whcih should be in the order of maybe 1E-16. I would not expect to see round-off errors in the fourth digit.
_________________________
There are two types of vessels, submarines and targets.

Top
#99366 - 2003-03-15 03:39 AM Re: KiXtart Golf: CD Sorter
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
Average CD Length = 44.83
Average Gap = 0.17
Average Gap [%] = 0.39

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/14 20:46:06.287
Processing End = 2003/03/14 21:25:02.276
Duration = 0000/00/00 00:38:55.989
# Loops = 1
# Processed CDs = 12
# Valid CDs = 12
# Full CDs = 2
KiXGolf Result = Valid CD Filling
KiXGolf Score = 244

Thank you for participating in KiXtart Golf!
_________________________
!

download KiXnet

Top
#99367 - 2003-03-15 09:45 AM Re: KiXtart Golf: CD Sorter
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Trying to track this down:

On the 12th CD:
quote:

CDSorter = 3,6,26,33,39,40,46,50,88,92

ERROR : array reference out of bounds!
Script: C:\Data\Scripts\Golf\kixgolf_cd\kixgolf_cd.kix
Line : 127

Not sure what's up.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#99368 - 2003-03-15 10:38 AM Re: KiXtart Golf: CD Sorter
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
My first good code. Why are you guys NOT looping 100x?

code:
Average CD Length = 44.39
Average Gap = 0.61
Average Gap [%] = 1.36

KiXtart
KiXtart Version = 4.21 Release Candidate 1
KiXGolf Script = kixgolf_cd.kix

Computer
OS = Windows 2000 Professional
CPU = Intel Pentium III
Speed = 848 MHz
Memory = 511 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: CD Sorter
Processing Start = 2003/03/15 04:06:35.974
Processing End = 2003/03/15 04:42:04.287
Duration = 0000/00/00 00:35:28.313
# Loops = 100
# Processed CDs = 12
# Valid CDs = 12
# Full CDs = 0
KiXGolf Result = Valid CD Filling
KiXGolf Score = 360

Thank you for participating in KiXtart Golf!



[ 15. March 2003, 11:09: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#99369 - 2003-03-15 11:12 AM Re: KiXtart Golf: CD Sorter
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Yahoo! [Big Grin] Was 244 the best so far?

code:
Average CD Length = 44.38
Average Gap = 0.62
Average Gap [%] = 1.37

KiXtart
KiXtart Version = 4.21 Release Candidate 1
KiXGolf Script = kixgolf_cd.kix

Computer
OS = Windows 2000 Professional
CPU = Intel Pentium III
Speed = 848 MHz
Memory = 511 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: CD Sorter
Processing Start = 2003/03/15 05:14:08.576
Processing End = 2003/03/15 05:14:21.365
Duration = 0000/00/00 00:00:12.789
# Loops = 1
# Processed CDs = 12
# Valid CDs = 12
# Full CDs = 0
KiXGolf Result = Valid CD Filling
KiXGolf Score = 222

Thank you for participating in KiXtart Golf!

_________________________
Home page: http://www.kixhelp.com/hb/

Top
#99370 - 2003-03-15 11:25 AM Re: KiXtart Golf: CD Sorter
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
code:
Average CD Length = 44.39
Average Gap = 0.61
Average Gap [%] = 1.36

KiXtart
KiXtart Version = 4.21 Release Candidate 1
KiXGolf Script = kixgolf_cd.kix

Computer
OS = Windows 2000 Professional
CPU = Intel Pentium III
Speed = 848 MHz
Memory = 511 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: CD Sorter
Processing Start = 2003/03/15 05:53:43.338
Processing End = 2003/03/15 05:53:54.075
Duration = 0000/00/00 00:00:10.737
# Loops = 1
# Processed CDs = 12
# Valid CDs = 12
# Full CDs = 0
KiXGolf Result = Valid CD Filling
KiXGolf Score = 214

Thank you for participating in KiXtart Golf!



[ 15. March 2003, 11:48: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 8 of 9 « First<56789>


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 628 anonymous users online.
Newest Members
Raoul, Timothy, Jojo67, MaikSimon, kvn317
17875 Registered Users

Generated in 0.042 seconds in which 0.016 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org