Jens,
Shawns code is about 850 times as fast as the winning code
Eventhough Shawns code is way faster and uses less memory it still loose in the Extended KiXGolf Score
I don’t belive it is possible to make a weighted score, so maybe you should omit the Extended KiXGolf Score
I like the other stat’s, but i agrre with Jack, the only thing we can compare during the competition is the size.
To check Shawn’s very fast script, change kixgolf_bwt.udf to:
code:
; begin Burrows-Wheeler Transfrom Decoder SHAWNS CODE
;!
Function bwtdecode($s, $x)
Dim $,$j,$k,$n
$n = Len($s) - 1
Dim $t[$n],$l[$n],$c[255]
For $ = 0 To $n
$l[$] = Asc(SubStr($s,$ + 1,1))
$j = $l[$]
$t[$] = $c[$j]
$c[$j] = $c[$j] + 1
Next
For $ = 0 To 126
$k = $k + $c[$]
$c[$] = $k - $c[$]
Next
For $ = 0 To $n
$x = $t[$x] + $c[$l[$x]]
$bwtdecode = Chr($l[$x]) + $bwtdecode
Next
EndFunction
;!
;!
-Erik