Page 7 of 11 « First<56789>Last »
Topic Options
#164901 - 2006-07-25 10:18 PM Re: KiXgolf: Mayan Number Converter - Public Phase
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, here is 191 of your rogier-code:
Code:

Function m($)

dim $b

if $=$+0
$m = iif($ mod 20,split(' . : .: ::')[$ mod 5],'-') + left('|||',$ mod 20/5)
$=$/20
if $
$m = m($) + ' ' + $m
endif
else
for each $ in split($)
dim $a
while m($a)<>$
$a = $a + 1
loop
$m = $m * 20 + $a
EndFunction


Top
#164902 - 2006-07-25 10:19 PM Re: KiXgolf: Mayan Number Converter - Public Phase
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Rogier 188

Code:

Function m($)

dim $a

if $=$+0
$m = iif($ mod 20,split(' . : .: ::')[$ mod 5],'-') + left('|||',$ mod 20/5)
$=$/20
if $
$m = m($) + ' ' + $m
endif
else
for each $ in split($)
$a = -1
do
$a=$a+1
until m($a)=$
$m = $m * 20 + $a
;next
;endif

EndFunction


Top
#164903 - 2006-07-25 10:19 PM Re: KiXgolf: Mayan Number Converter - Public Phase
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
wtf, here is 186:
Code:

Function m($)

if $=$+0
$m = iif($ mod 20,split(' . : .: ::')[$ mod 5],'-') + left('|||',$ mod 20/5)
$=$/20
if $
$m = m($) + ' ' + $m
endif
else
for each $ in split($)
dim $a
while m($a)<>$
$a = $a + 1
loop
$m = $m * 20 + $a
EndFunction


Top
#164904 - 2006-07-25 10:21 PM Re: KiXgolf: Mayan Number Converter - Public Phase
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
come on, I don't got all night...
Top
#164905 - 2006-07-25 10:25 PM Re: KiXgolf: Mayan Number Converter - Public Phase
Lonkero Administrator Offline
KiX Master Guru
*****

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

Function m($)

if $<$+0
for each $ in split($)
dim $a
while m($a)<>$
$a = $a + 1
loop
$m = $m * 20 + $a
next
else
$m = iif($ mod 20,split(' . : .: ::')[$ mod 5],'-') + left('|||',$ mod 20/5)
$=$/20
if $
$m = m($) + ' ' + $m
EndFunction


Top
#164906 - 2006-07-25 10:32 PM Re: KiXgolf: Mayan Number Converter - Public Phase
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
wonder where is the latest score table...

Top
#164907 - 2006-07-25 10:46 PM Re: KiXgolf: Mayan Number Converter - Public Phase
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Hehehe, this isn't rogier-code. This is freaky jooel-shawn voodoo, and I'm not having any part of it!
Top
#164908 - 2006-07-25 11:11 PM Re: KiXgolf: Mayan Number Converter - Public Phase
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
Rogier and I can play this game, here is Jooel code 149 :

Code:

Function m($)
If $<$+0
$m=-1
Do
$m=$m+1
Until $=m($m)
Else
$m = IIf($ mod 20,Split(' . : .: ::')[$ mod 5],'-') + Left('|||',$ mod 20/5)
$=$/20
If $
$m = m($) + ' ' + $m
EndFunction

_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#164909 - 2006-07-25 11:17 PM Re: KiXgolf: Mayan Number Converter - Public Phase
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
ROFLMAO - what do we do now ?

Seriously - I want to give Benny credit for this new round of Rogier code ... he was the one that suggested trying a double-sided recursive technique.

Top
#164910 - 2006-07-25 11:19 PM Re: KiXgolf: Mayan Number Converter - Public Phase
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
... a double-sided recursive technique that doesn't take three days to run I mean.
Top
#164911 - 2006-07-25 11:19 PM Re: KiXgolf: Mayan Number Converter - Public Phase
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
by my estimation it would take about 7 days to run, but it is all in good fun
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#164912 - 2006-07-26 04:23 AM Re: KiXgolf: Mayan Number Converter - Public Phase - 170
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Arrrrr ... 170

Code:

Function m($b)

dim $,$a

for $ = 1 to 16
$a = split("- . : .: :: " + $m)
$m = $m + "| " + $a[$]
next

for each $ in split($b)
$m = ascan($a,$) + 20 * $m
if $m<0
$m = $a[$ mod 20]
$ = $b/20
if $
$m = m($) + " " + $m
;endif
;endif
;next

EndFunction


Top
#164913 - 2006-07-26 06:44 AM Re: KiXgolf: Mayan Number Converter - Public Phase - 170
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
why did I miss that!
sweet.

Top
#164914 - 2006-07-26 09:13 AM Re: KiXgolf: Mayan Number Converter - Public Phase - 170
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
O.o geebus. that's bloody nuts I say. Good work you guys.
Top
#164915 - 2006-07-26 11:04 AM Re: KiXgolf: Mayan Number Converter - Public Phase - 170
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Well then 170 appears to be the lowest working code that operates within mili-seconds.

Top
#164916 - 2006-07-26 01:04 PM Re: KiXgolf: Mayan Number Converter - Public Phase - 170
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
How about this proposal, we'll create two rankings, one for the algorithmic approach and a second one for the brute-force approach? From a scoring perspecitve, I am considering to award points to the first five people on either list, with brute-force solutions being penalized by a one point reduction. Scoring would then be:
Code:

Participation (code posted):
1 point

Private round:
1. 7 points
2. 6 points
3. 5 points
4. 4 points
5. 3 points

Public round:
1. 5 points
2. 4 points
3. 3 points
4. 2 points
5. 1 points


A private round place is thus worth two more points than a public round one.

Comments welcome.
_________________________
There are two types of vessels, submarines and targets.

Top
#164917 - 2006-07-26 01:14 PM Re: KiXgolf: Mayan Number Converter - Public Phase - 170
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
For me it sounds like no big change. Dunno how good the common knowledge about brute force coding is here, but I'll give for the time being give my 'vote' to this proposal
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!

Top
#164918 - 2006-07-26 01:27 PM Re: KiXgolf: Mayan Number Converter - Public Phase - 170
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
first solution doesn't get any more extra points?

hmm...
one catch point could be given, so ppl don't hold on to their results for days before the first gets posted.
imho.

Top
#164919 - 2006-07-26 02:10 PM Re: KiXgolf: Mayan Number Converter - Public Phase - 170
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
I dont like the idea of keeping two rankings - one for algorithmic and one for brute-force. Reason - no matter what the challenge is - even if the brute-force approach takes more code - someone will submit one just to get the easy points.

Having said that, I dont have a good answer for this brute-force versus algorithmic thing either.

Top
#164920 - 2006-07-26 02:11 PM Re: KiXgolf: Mayan Number Converter - Public Phase - 170
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
How about limiting a contestant to one of the rankings?
Top
Page 7 of 11 « First<56789>Last »


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

Who's Online
0 registered and 530 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.038 seconds in which 0.013 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