Page 4 of 10 « First<23456>Last »
Topic Options
#178779 - 2007-08-07 09:18 AM Re: KiXgolf: Top Secret [Re: Jochen]
sixdoubleo Offline
Starting to like KiXtart

Registered: 2004-02-06
Posts: 118
Loc: California, US
I had working code (testing with my own scripts) until I copied my function into kixgolf_udf. I failed all the tests.

After checking the ini, it turns out you are passing permutation as a comma-delimited string. In the examples on page one it shows "35214" as a string. So I had written my code to accept a flat string for permutation.

In practice, I think this would be cleaner... "35214" instead of "3,5,2,1,4"

So needless to say I have a little rewriting to do. \:\)

Top
#178780 - 2007-08-07 09:43 AM Re: KiXgolf: Top Secret [Re: sixdoubleo]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Ok, I did a rewrite...

I've tested it with this ini:
 Code:
[Test 1]
Blocksize=5
Permutation=3,5,2,1,4
Input =Collegiate Programming Contest
Output=leoClaeigt orrPgmnmaio tCgntse
[test 2]
Blocksize=5
Permutation=3,5,2,1,4
Input =G, ,B
Output=B, ,G
[Test 3]
Blocksize=5
Permutation=3,5,2,1,4
Input ="ACM"
Output="MCA"
[Test 4]
Blocksize=5
Permutation=3,5,2,1,4
Input =Springfield, MA
Output=rnpSiilfgeA, Md
[Test 5]
Blocksize=5
Permutation=5,3,4,2,1
Input =Springfield, MA
Output=nripSliefgA, Md
[Test 6]
Blocksize=10
Permutation=3,5,2,1,4,6,10,9,8,7
Input =This is a very long text, something I hope will work
Output=iihT ss r evao glyn tstx, eehmotihI g neip owlr owlk

(changed permutation order in test 5, increased block-size in test 6)

and the result is:

 Code:

KiXtart
KiXtart Version  = 4.52
KiXGolf Script   = kixgolf_ts.kix

Computer
OS               = Windows XP Professional
CPU              = Intel Pentium Model 13
Speed            = 2261 MHz
Memory           = 1024 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Top Secret
Processing Start = 2007/08/07 09:37:43.312
Processing End   = 2007/08/07 09:37:43.328
Duration         = 0000/00/00 00:00:00.016
KiXGolf Score    = 441
 
Thank you for participating in KiXtart Golf!


\:D \:D \:D
_________________________
The Code is out there

Top
#178781 - 2007-08-07 10:14 AM Re: KiXgolf: Top Secret [Re: DrillSergeant]
sixdoubleo Offline
Starting to like KiXtart

Registered: 2004-02-06
Posts: 118
Loc: California, US
OK, are any points given out for "Most Brute-Force Implementation" ???

\:\)

Too many unneeded variables, too many if/else/endifs, multiple passes through input string, long variable names, redundant debug steps, console display of variable contents...but it works...

 Code:
Running Test 1 Encoding...Decoding...Done
Running Test 2 Encoding...Decoding...Done
Running Test 3 Encoding...Decoding...Done
Running Test 4 Encoding...Decoding...Done
Your solution passed all tests

KiXtart
KiXtart Version  = 4.50
KiXGolf Script   = kixgolf_ts.kix

Computer
OS               = Windows 2000 Professional
CPU              = AMD Athlon(tm) 64 X2 Dual Core Processor 5600+
Speed            = 2798 MHz
Memory           = 2046 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Top Secret
Processing Start = 2007/08/07 01:05:22.008
Processing End   = 2007/08/07 01:05:22.024
Duration         = 0000/00/00 00:00:00.016
KiXGolf Score    = 969

Thank you for participating in KiXtart Golf!


Guess I'll start stripping it down tomorrow....

I can't believe this was considered easy!

Top
#178782 - 2007-08-07 10:18 AM Re: KiXgolf: Top Secret [Re: DrillSergeant]
sixdoubleo Offline
Starting to like KiXtart

Registered: 2004-02-06
Posts: 118
Loc: California, US
 Originally Posted By: DrillSergeant

[Test 6]
Blocksize=10
Permutation=3,5,2,1,4,6,10,9,8,7
Input =This is a very long text, something I hope will work
Output=iihT ss r evao glyn tstx, eehmotihI g neip owlr owlk


Damn you! \:\) I just realized that two-digit position number will break my code.


Edited by sixdoubleo (2007-08-07 10:19 AM)

Top
#178783 - 2007-08-07 10:37 AM Re: KiXgolf: Top Secret [Re: sixdoubleo]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
that's why I had to rewrite mine too ;\)
_________________________
The Code is out there

Top
#178784 - 2007-08-07 10:38 AM Re: KiXgolf: Top Secret [Re: DrillSergeant]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands

 Code:

KiXtart
KiXtart Version  = 4.52
KiXGolf Script   = kixgolf_ts.kix

Computer
OS               = Windows XP Professional
CPU              = Intel Pentium Model 13
Speed            = 2261 MHz
Memory           = 1024 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Top Secret
Processing Start = 2007/08/07 10:38:59.390
Processing End   = 2007/08/07 10:38:59.406
Duration         = 0000/00/00 00:00:00.016
KiXGolf Score    = 425
 
Thank you for participating in KiXtart Golf!
_________________________
The Code is out there

Top
#178786 - 2007-08-07 10:40 AM Re: KiXgolf: Top Secret [Re: Jochen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
OMFG!!!!

I got case 2 working now, but then case 1 decoding fails
_________________________



Top
#178791 - 2007-08-07 12:38 PM Re: KiXgolf: Top Secret [Re: Sealeopard]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
To clarify:

 Originally Posted By: Sealeopard
Characters are a-z and A-Z


 Originally Posted By: Sealeopard
Anything that is not a letter or number would fall under the "punctuation" category.


So we can assume that there will never be a message with numbers in it?
_________________________
The Code is out there

Top
#178798 - 2007-08-07 02:03 PM Re: KiXgolf: Top Secret [Re: DrillSergeant]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Eh ?

I read that punctuation is anything except a-z, A-Z and 0-9
_________________________



Top
#178799 - 2007-08-07 02:13 PM Re: KiXgolf: Top Secret [Re: Jochen]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
yes, but in the first post it's stated that valid characters are a-z and A-Z (not 0-9)
_________________________
The Code is out there

Top
#178801 - 2007-08-07 02:41 PM Re: KiXgolf: Top Secret [Re: DrillSergeant]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Right,

I will start over from scratch, the way I try to do this thing contains too much traps ... Even created a test case where encoding fails. Forget the scores I posted so far
_________________________



Top
#178804 - 2007-08-07 03:52 PM Re: KiXgolf: Top Secret [Re: Jochen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I got an hour but never got that darn waste-piece code working.
need to do some work now.
_________________________
!

download KiXnet

Top
#178805 - 2007-08-07 04:20 PM Re: KiXgolf: Top Secret [Re: Lonkero]
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
DrillSergeant, I added your tests #5 and #6 just to verify my code works as yours. It does but I do not seem to be able to trim very much at this time. I guess I need to ponder my approach and looping structure a little. Hopefully I can give you a little competition.

Running Test 1 Encoding...Decoding...Done
Running test 2 Encoding...Decoding...Done
Running Test 3 Encoding...Decoding...Done
Running Test 4 Encoding...Decoding...Done
Running Test 5 Encoding...Decoding...Done
Running Test 6 Encoding...Decoding...Done
Your solution passed all tests

KiXtart
KiXtart Version = 4.52
KiXGolf Script = kixgolf_ts.kix

Computer
OS = Windows XP Professional
CPU = Intel Pentium Model 13
Speed = 1798 MHz
Memory = 1024 MB

KiXGolf Scoring Engine
Scoring Engine = 3.3

KiXtart Golf Score
Tournament = Top Secret
Processing Start = 2007/08/07 10:16:25.996
Processing End = 2007/08/07 10:16:26.016
Duration = 0000/00/00 00:00:00.020
KiXGolf Score = 473

Thank you for participating in KiXtart Golf!
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#178806 - 2007-08-07 04:24 PM Re: KiXgolf: Top Secret [Re: Howard Bullock]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
As it seems to be right now you'll be at least second anyway
_________________________



Top
#178807 - 2007-08-07 04:36 PM Re: KiXgolf: Top Secret [Re: Jochen]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
Thanks Jochen... I didn't realize it ended on Wed... I don't know if I will have enough time to mess with this anymore...
Top
#178817 - 2007-08-07 09:36 PM Re: KiXgolf: Top Secret [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yihaa.
finally got my encoding working. 482. uhm.
_________________________
!

download KiXnet

Top
#178818 - 2007-08-07 10:04 PM Re: KiXgolf: Top Secret [Re: Lonkero]
sixdoubleo Offline
Starting to like KiXtart

Registered: 2004-02-06
Posts: 118
Loc: California, US
Im really anxious to see these solutions. I've got my code "down to" 589 and you guys are 470-490 right off the bat. There must be something I'm missing. Although I'm working fine with Drill Sargeant's latest tests...so that's good.

I have a couple ideas for optimizing but as soon as I start hammering out code my brain locks up. Must be getting old.


Edited by sixdoubleo (2007-08-07 10:05 PM)

Top
#178819 - 2007-08-07 10:19 PM Re: KiXgolf: Top Secret [Re: sixdoubleo]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
sixdoubleo, if you have working code you should post your score asap.

You get points for being in the top 5 first posters, and as far as i can see you're the third one with woking code (because Jochen retracted his scores)



Edited by DrillSergeant (2007-08-07 10:22 PM)
Edit Reason: typo's
_________________________
The Code is out there

Top
#178820 - 2007-08-07 10:23 PM Re: KiXgolf: Top Secret [Re: DrillSergeant]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
top5 as in rank.
there is no points for speed per jens' last rule change.

back to the basics...
shouldn't this qualify as ok result:
 Quote:

failed: Collegiate Programming Contest =! Collegiate Programming Contets


it's soooo close :p
_________________________
!

download KiXnet

Top
#178821 - 2007-08-07 10:38 PM Re: KiXgolf: Top Secret [Re: Lonkero]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
 Originally Posted By: Jooel
top5 as in rank.
there is no points for speed per jens' last rule change.


Ah, that's indeed more honest with the global time zones and all...
_________________________
The Code is out there

Top
Page 4 of 10 « First<23456>Last »


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

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

Generated in 0.08 seconds in which 0.027 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