Page 7 of 10 « First<56789>Last »
Topic Options
#178885 - 2007-08-08 01:23 PM Re: KiXgolf: Top Secret [Re: DrillSergeant]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Case added:
 Code:
[Test 9]
Blocksize=4
Permutation=3,1,4,2
Input =Is a circonflex (^) considered punctuation?
Output=aI c sciorlnefo (^) xncdseidrp ecutntuiaon?
_________________________
The Code is out there

Top
#178888 - 2007-08-08 01:59 PM Re: KiXgolf: Top Secret [Re: DrillSergeant]
DrillSergeant Offline
MM club member
*****

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

[Test 10]
Blocksize=100
Permutation=15,99,7,12,51,39,62,25,34,59,69,92,31,58,40,16,57,52,18,70,100,6,47,20,74,35,83,77,41,66,
80,42,33,36,73,29,45,56,27,32,2,98,28,95,65,4,79,46,11,63,38,13,93,67,88,22,96,76,89,85,19,84,61,43,97,53,86,
94,60,37,50,24,48,23,78,5,87,68,14,1,49,64,9,91,81,17,54,82,90,44,10,30,21,75,3,55,71,8,26,72

Input =Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we can not dedicate -- we can not consecrate -- we can not hallow -- this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us -- that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion -- that we here highly resolve that these dead shall not have died in vain -- that this nation, under God, shall have a new birth of freedom -- and that government of the people, by the people, for the people, shall not perish from the earth.

Output=vaod hutor ntn tiget iyitc hao sne hwetebc frnuhoc reerv tn aosd nrsdctieL, n fis bdertg, oaiseaeFn ne adnciyo, aar nuooronto eo eeg leivtedqiee nirh whr ahs utn artaaog ecdnn. tao iw prd sncrtie tt t ealon haner lea, tteiiea eragogw hNor attalp, mw cii croaod ge maanenevf cte dd crtgtteea, liu oetn ddoana. ro tlo etv nd f eeeWe nemhtr-nasWd ha alna ebn. ow ieac dsca oy tiodehar o wltatav ir gaae hfelo, he a iihcr nesnhar riets nIi attnh pfv lgdt thni oefio mevge soaa piit aseila thtto ollt. ee st ftgnetrtct ueetssh ang ddohnr tlte io nsodaw te ahon. ten, ea i taoiet epcwc, op ceB aen wwdaraec -- ts dnt lnf annroruieo -- eg sir hcu dwglec -- egaa wvhane. eTt ooret aor, deownn ils reih, dnt slbtsodre coro, arrh uehadprvdgv ua, alo rotgn hov dhep oiibf ae etm dl rcweeil. lbv enemd rsie uahlro hten, amr notr enodooia thwe tr oIn dise, hyl et bfa dtugw tatwri errt cTrt wyt eehe. lg eh rte fe eva ruwcth, hyetnr, hk ot dieeeofvf ohie tr dsc trtcevfeth rhet aunea aorb ayn nwsdeh oidd elog hswo nlu th sbigh dhhihiae. sa to irueoo rke fe te nb osar hetdhaaot th has bidte cnhs nkfsgretw rceeee de -- tria irea deeor dfuImte aron et arte sigmhdtae toahtwge tt hdet fsawa ols raeil tlay vehf oie ddce nehu tittthe fs htousose -- ulhv ee rlog vvahem ooaycrr htnt eedee ihhi lnvhn tht bets wdee ai delh -- vnie hefg raoahd, ntnsp tpf, atsah uehr n iet tnnrr Go vmeinlt -- ana leed dlotfodevo oh iad haooam, te frh rtohpp, roi mte snelpy, lhaef ole hhstee rbhp eel optoa.


ok, it's outside the requirements... but it still works!

The permutation should be on one line, I've split it into three lines because it would have mucked up the layout.


Edited by DrillSergeant (2007-08-08 02:03 PM)
_________________________
The Code is out there

Top
#178892 - 2007-08-08 02:16 PM Re: KiXgolf: Top Secret [Re: DrillSergeant]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
your solution failed 2 of 16 tests.
hmm...
need to recheck.
_________________________
!

download KiXnet

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

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
I am back in the race!

Got the encoding part working rock solid with a score of 416 (non-optimized). The decoding should be only a matter of a few strokes (hopefully).

Need a rest of a couple hrs ... brain hurts too much
_________________________



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

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Can we REALLY consider numbers as punctuation (escape chars) ?
If so, I would save 10 strokes :p


[edit: gone reading the first post ;\)


Edited by Jochen (2007-08-08 02:21 PM)
Edit Reason: checking...
_________________________



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

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Jochen, the only valid characters are a-z and A-Z.

This means that numbers definately do not have to be included in the encoding - decoding.

My question is if numbers are valid in a message because, as far as i can find in the rules, the message can only contain valid characters and punctuation (eg: no numbers).
_________________________
The Code is out there

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

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Right, 10 strokes saved then.

I think that if anything except A-Z and a-z is punctuation, then numbers are as well punctuation, it's only a matter of shifting them around or not, aye?
_________________________



Top
#178902 - 2007-08-08 03:09 PM Re: KiXgolf: Top Secret [Re: Jochen]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Ehm... not really, Jochen, but I'll show you why in the public round ;\)



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
Running Test 7 Encoding...Decoding...Done
Running Test 8 Encoding...Decoding...Done
Running Test 9 Encoding...Decoding...Done
Running Test 10 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 = 2261 MHz
Memory = 1024 MB

KiXGolf Scoring Engine
Scoring Engine = 3.3

KiXtart Golf Score
Tournament = Top Secret
Processing Start = 2007/08/08 15:06:12.406
Processing End = 2007/08/08 15:06:12.812
Duration = 0000/00/00 00:00:00.405
KiXGolf Score = 369

Thank you for participating in KiXtart Golf!
_________________________
The Code is out there

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

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
OMG, IT WORKS !!!1!

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.53
KiXGolf Script = KIXGOL~1.KIX

Computer
OS = Windows 2000 Professional
CPU = Intel(R) Pentium(R) 4 CPU 2.80GHz
Speed = 2793 MHz
Memory = 504 MB

KiXGolf Scoring Engine
Scoring Engine = 3.3

KiXtart Golf Score
Tournament = Top Secret
Processing Start = 2007/08/08 15:23:15.375
Processing End = 2007/08/08 15:23:15.390
Duration = 0000/00/00 00:00:00.014
KiXGolf Score = 421

Thank you for participating in KiXtart Golf!
_________________________



Top
#178909 - 2007-08-08 03:40 PM Re: KiXgolf: Top Secret [Re: Jochen]
DrillSergeant Offline
MM club member
*****

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

DrillSergeant   369
Jooel/Jochen    421
Sixdoubleo      461
Howard          473


The scores are based on test case 1-4.
Cases 5 - 9 are not (yet) official tests.
Case 10 is outside the requirements, it's just for fun.

Test cases 1-10:
 Quote:
[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
[Test 7]
Blocksize=7
Permutation=6,3,5,1,7,2,4
Input =And it's 1, 2, 3, what are we fightin' for?
Output=sdt Aw'n 1, 2, 3, ietr hwa at iheifgo' nfr?
[Test 8]
Blocksize=2
Permutation=2,1
Input = A,
Output= A,
[Test 9]
Blocksize=4
Permutation=3,1,4,2
Input =Is a circonflex (^) considered punctuation?
Output=aI c sciorlnefo (^) xncdseidrp ecutntuiaon?
[Test 10]
Blocksize=100
Permutation=15,99,7,12,51,39,62,25,34,59,69,92,31,58,40,16,57,52,18,70,100,6,47,20,74,35,83,77,41,
66,80,42,33,36,73,29,45,56,27,32,2,98,28,95,65,4,79,46,11,63,38,13,93,67,88,22,96,76,89,85,19,84,61,43,97,53,86,
94,60,37,50,24,48,23,78,5,87,68,14,1,49,64,9,91,81,17,54,82,90,44,10,30,21,75,3,55,71,8,26,72

Input =Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we can not dedicate -- we can not consecrate -- we can not hallow -- this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us -- that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion -- that we here highly resolve that these dead shall not have died in vain -- that this nation, under God, shall have a new birth of freedom -- and that government of the people, by the people, for the people, shall not perish from the earth.

Output=vaod hutor ntn tiget iyitc hao sne hwetebc frnuhoc reerv tn aosd nrsdctieL, n fis bdertg, oaiseaeFn ne adnciyo, aar nuooronto eo eeg leivtedqiee nirh whr ahs utn artaaog ecdnn. tao iw prd sncrtie tt t ealon haner lea, tteiiea eragogw hNor attalp, mw cii croaod ge maanenevf cte dd crtgtteea, liu oetn ddoana. ro tlo etv nd f eeeWe nemhtr-nasWd ha alna ebn. ow ieac dsca oy tiodehar o wltatav ir gaae hfelo, he a iihcr nesnhar riets nIi attnh pfv lgdt thni oefio mevge soaa piit aseila thtto ollt. ee st ftgnetrtct ueetssh ang ddohnr tlte io nsodaw te ahon. ten, ea i taoiet epcwc, op ceB aen wwdaraec -- ts dnt lnf annroruieo -- eg sir hcu dwglec -- egaa wvhane. eTt ooret aor, deownn ils reih, dnt slbtsodre coro, arrh uehadprvdgv ua, alo rotgn hov dhep oiibf ae etm dl rcweeil. lbv enemd rsie uahlro hten, amr notr enodooia thwe tr oIn dise, hyl et bfa dtugw tatwri errt cTrt wyt eehe. lg eh rte fe eva ruwcth, hyetnr, hk ot dieeeofvf ohie tr dsc trtcevfeth rhet aunea aorb ayn nwsdeh oidd elog hswo nlu th sbigh dhhihiae. sa to irueoo rke fe te nb osar hetdhaaot th has bidte cnhs nkfsgretw rceeee de -- tria irea deeor dfuImte aron et arte sigmhdtae toahtwge tt hdet fsawa ols raeil tlay vehf oie ddce nehu tittthe fs htousose -- ulhv ee rlog vvahem ooaycrr htnt eedee ihhi lnvhn tht bets wdee ai delh -- vnie hefg raoahd, ntnsp tpf, atsah uehr n iet tnnrr Go vmeinlt -- ana leed dlotfodevo oh iad haooam, te frh rtohpp, roi mte snelpy, lhaef ole hhstee rbhp eel optoa.


* Permutation of case 10 should be on one line, it's divided in three segments to preserve html layout


Edited by DrillSergeant (2007-08-08 03:49 PM)
Edit Reason: corrected howard's score
_________________________
The Code is out there

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

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

Howards 473 score on page 3 should be rewarded, nay?
_________________________



Top
#178912 - 2007-08-08 03:49 PM Re: KiXgolf: Top Secret [Re: Jochen]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
oops... corrected
_________________________
The Code is out there

Top
#178916 - 2007-08-08 04:56 PM Re: KiXgolf: Top Secret [Re: DrillSergeant]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hey, if no numbers, then I will have:
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
Running Test 7 Encoding...failed. Decoding...failed.
Running Test 8 Encoding...Decoding...Done
Running Test 9 Encoding...Decoding...failed.

Your solution failed 3 of 18 tests.

KiXtart
KiXtart Version  = 4.53
KiXGolf Script   = kixgolf_ts.kix

Computer
OS               = Windows XP Professional
CPU              = Intel Pentium Model 13
Speed            = 797 MHz
Memory           = 1014 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Top Secret
Processing Start = 2007/08/08 17:55:09.109
Processing End   = 2007/08/08 17:55:09.250
Duration         = 0000/00/00 00:00:00.141
KiXGolf Score    = 409

Thank you for participating in KiXtart Golf!
Press any key to continue...

and that's fine with the first 4 and puts me back to second place \:\)
_________________________
!

download KiXnet

Top
#178917 - 2007-08-08 05:01 PM Re: KiXgolf: Top Secret [Re: Lonkero]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
I demand Jens to update the test cases to the ones Rogier supposed (except 10) and make clear if Numbers can be inside the input (probably ammending case 7 if not) ... I don't know yet why, but my code denies to shift characters before a number in a block ... This is just annoying!


Plus maybe add some extra time to the private round


Edited by Jochen (2007-08-08 05:02 PM)
Edit Reason: Oh, I forgot
_________________________



Top
#178921 - 2007-08-08 05:21 PM Re: KiXgolf: Top Secret [Re: Jochen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
can't really see what's so different in the test 7 that makes my code fail both enc and decode.
weird.

or why two of the new tests are so different that they fail on decode.
_________________________
!

download KiXnet

Top
#178925 - 2007-08-08 05:40 PM Re: KiXgolf: Top Secret [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
think I found it...
either need to add strokes or redesing the udf.

think the latter is more fun \:D
_________________________
!

download KiXnet

Top
#178930 - 2007-08-08 07:14 PM Re: KiXgolf: Top Secret [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I did it. reworked the udf to work with all 9 cases:
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
Running Test 7 Encoding...Decoding...Done
Running Test 8 Encoding...Decoding...Done
Running Test 9 Encoding...Decoding...Done
Your solution passed all tests

KiXtart
KiXtart Version  = 4.53
KiXGolf Script   = kixgolf_ts.kix

Computer
OS               = Windows XP Professional
CPU              = Intel Pentium Model 13
Speed            = 797 MHz
Memory           = 1014 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.3

KiXtart Golf Score
Tournament       = Top Secret
Processing Start = 2007/08/08 20:04:46.078
Processing End   = 2007/08/08 20:04:46.203
Duration         = 0000/00/00 00:00:00.125
KiXGolf Score    = 453

Thank you for participating in KiXtart Golf!
Press any key to continue...
_________________________
!

download KiXnet

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

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Hmmm...

Using my 473 code and the 10 tests, I get:

 Quote:
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
Running Test 7 Encoding... Failed Decoding...Done
Running Test 8 Encoding... Failed Decoding... Failed Done
Running Test 9 Encoding... Failed Decoding...
ERROR : array reference out of bounds!
Script: C:\Data\Scripts\Golf\kixgolf_ts\KIXGOLF_TS.udf
Line : 60



Using mt 538 code:

 Quote:
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
Running Test 7 Encoding... Failed Decoding...Done
Running Test 8 Encoding...Decoding...Done
Running Test 9 Encoding...Decoding...Done
Running Test 10 Encoding... Failed Decoding... Failed Done
Your solution failed 3 of 20 tests.

KiXtart
KiXtart Version = 4.52
KiXGolf Script = kixgolf_ts.kix

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

KiXGolf Scoring Engine
Scoring Engine = 3.3

KiXtart Golf Score
Tournament = Top Secret
Processing Start = 2007/08/08 13:34:58.813
Processing End = 2007/08/08 13:34:58.984
Duration = 0000/00/00 00:00:00.170
KiXGolf Score = 538


I guess I have a little fixing to do, but I can not seem to get anywhere near the scores IU have seen posted.

All of my code is supposed to be capable of processing numbers.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#178933 - 2007-08-08 07:44 PM Re: KiXgolf: Top Secret [Re: Howard Bullock]
DrillSergeant Offline
MM club member
*****

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

Test 5, 6, 8 and 9 meet current requirements and should work.
Test 7 is questionable because we need a ruling if a message can contain numbers.
Test 10 is outside of the requirements (1 <= block size <= 10) so you do not have to worry about that one.


Jooel,

Nice going, now take out the putter and stroke away! \:\)


Edited by DrillSergeant (2007-08-08 07:48 PM)
_________________________
The Code is out there

Top
#178934 - 2007-08-08 07:52 PM Re: KiXgolf: Top Secret [Re: DrillSergeant]
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I take the failures of #7 and #10 as a personal failure to author proper and robust code. My design should have been able to accomodate these cases. I need to first validate the INI file test data in case it is not properly constructed. Secondly I need to fix the code.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 7 of 10 « 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 370 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.117 seconds in which 0.091 seconds were spent on a total of 14 queries. Zlib compression enabled.

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