Search found 43 matches

by a.goth
Sat May 13, 2017 3:03 pm
Forum: Challenges Solved
Topic: Surely Smallester Mouse
Replies: 23
Views: 40010

Uniform distribution

I have inspected 5,000 test cases and here is how the maximum was distributed over the first 20 locations in memory: cell || 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 ------++-----+-----+-----+-----+-----+-----+-----+-----+-----+---- ... count || 260 | 259 | 242 | 253 | 251 | 240 | 253 | 237 | 254 | 238...
by a.goth
Tue May 09, 2017 5:12 pm
Forum: Challenges Solved
Topic: Surely Smallester Mouse
Replies: 23
Views: 40010

Surely Smallesterest Mouse

It would be nice to get some information from the five solvers, but I do not count on it. On the other hand, except for Enodo, all solvers seem to be still active. Perhaps it makes sense to send them a PM to draw their attention to the thread? I have to think about it.
by a.goth
Fri Apr 21, 2017 11:04 am
Forum: Challenges Solved
Topic: Surely Smallester Mouse
Replies: 23
Views: 40010

Surely Smallesterest Mouse

Since challenge 'Surely Smallesterest Mouse' apparently can only be solved with incredible luck, I would like to discuss potential solution ideas openly. Do you agree with that? The most general solution which I have so far, returns max{cell[ r ± 1], cell[ s ]}, where 0 < r < 9 and 0 ≤ s ≤ 9:     ( ...
by a.goth
Mon Apr 10, 2017 7:59 am
Forum: Challenges Solved
Topic: Surely Smallest Mouse
Replies: 19
Views: 13611

Routine-blinded

Oh boy! I did not see the forest for the trees. Stupid me.
by a.goth
Thu Apr 06, 2017 11:57 am
Forum: Challenges Solved
Topic: Surely Smallest Mouse
Replies: 19
Views: 13611

Computing power

Hmmm, I have a feeling the snibril constraint solution does not exist :(. I have decided to run bruteforce search for it ... looks like several years of machine time would suffice to prove the nonexistence of it ... . (I am not searching for 20 op code, but 21 without > ...) Hmmm, the estimate time...
by a.goth
Mon Feb 27, 2017 2:48 pm
Forum: Challenges Solved
Topic: String Reversal
Replies: 19
Views: 37477

String Reversal

One-liners are often the key to shorter solutions. The following program of size 21 passes all the test cases: 0@@@@@@@@=,x?$+x?s!P$ Even smaller and without restrictions: !:^1=/?@\ $P/%0s\,x/ Just felt like posting it, because using an '@' instruction within a loop is such a nice and hugely useful...
by a.goth
Sun Feb 12, 2017 6:42 pm
Forum: Challenges Solved
Topic: Growing Bacteria
Replies: 24
Views: 17322

Closed-form solution

The problem can even be solved in terms of a closed-form expression:

The population size N ≥ 4 is reached after

    log(N - ½) / log(φ)

days, where φ is the golden ratio and x denotes the ceiling function.

Math is your friend!
by a.goth
Thu Jan 12, 2017 8:56 pm
Forum: Challenges Solved
Topic: Jeux du Sort
Replies: 52
Views: 25453

Tiny Sort

I was able to reduce the number of cycles, but not the instructions:

Code: Select all

1@0@¬@@@@@@@ ,,x?$<x1+00>vx2^dxdv00<^?$p04gP100>1^?$p!
Does no one have any better idea?
by a.goth
Thu Jan 12, 2017 7:23 pm
Forum: Challenges Solved
Topic: Jeux du Sort
Replies: 52
Views: 25453

On hacking

Honestly, I think that when an answer has been rejected as wrong once, it should be rejected always. A correct solution should be a solution that always produces a correct result, not just very rarely. It depends. I agree, if it was sheer coincidence that the solution was accepted and therefore is ...
by a.goth
Tue Jan 10, 2017 9:44 pm
Forum: Challenges Solved
Topic: Jeux du Sort
Replies: 52
Views: 25453

Re: Tiny Sort

OK ... another aproach ... there are 16! permutations, your algorithm does 29 comparisons. So it distinguish at most 2^29 of 16! of them so I hope success probability is less than 2^29/16!<1/38971. If I have not miscounted, the probability of success is 49,926,400 / 20,922,789,888,000 = 2.38622e-6....
by a.goth
Mon Jan 09, 2017 5:12 pm
Forum: Challenges Solved
Topic: Jeux du Sort
Replies: 52
Views: 25453

Re: Tiny Sort

I don't think you could wait till such small probability happens. ... I am still waiting for something like 1/13000 and it takes years ;). Of course, that was just an example. The idea is to find an algorithm whose probability of success, for the applied test cases, is sufficiently large. Currently...
by a.goth
Sun Jan 08, 2017 6:09 pm
Forum: Challenges Solved
Topic: Jeux du Sort
Replies: 52
Views: 25453

Tiny Sort

Since the SuperHack program is checked with only one test case, I now believe that the solution is an algorithm that does not always sort correctly. Like the one here , although its probability of success is vanishingly small at 35,357,670 / 20,922,789,888,000 = 1.68991e-6 (if the test cases are cho...
by a.goth
Fri Dec 30, 2016 5:38 pm
Forum: Challenges Solved
Topic: Jeux du Sort
Replies: 52
Views: 25453

Tiny Sort

I am now down to 54 instructions:

Code: Select all

0@2@¬@@@@@@@ ,1v1^?$+xv2vx2^dxdv2v1+x^?$?p04gP22^?$?p!
I wish you all a Happy New Year!
by a.goth
Fri Dec 30, 2016 12:07 am
Forum: Challenges Solved
Topic: Jeux du Sort
Replies: 52
Views: 25453

Re: Tiny Sort

Hippo wrote:Do you mean

Code: Select all

@0@@@@@@ ,x?$+p08gP1^?$p!
?
Yes, almost exactly the same source code, however, yours separates the integers mistakenly by a space:

Code: Select all

0@@@@@@@ ,x?$[p09gP1^?$p!
Could it be done with fewer instructions?
by a.goth
Thu Dec 29, 2016 7:09 am
Forum: Challenges Solved
Topic: Jeux du Sort
Replies: 52
Views: 25453

Tiny Sort

It really bothers me that even for the simpler exercise of printing the integers in reverse order, I already need 25 instructions. Heck, how can you sort the sequence of numbers with only 12 additional or 37 instructions? Currently, it is only exploited that the list contains exactly 16 positive num...