Surely Smallester Mouse
Posted: Wed Nov 18, 2009 8:16 pm
Code: Select all
10>1>::>p
Did you take into account that there is a time penalty of 30s after 20 trials and one of 1h after 200? Nevertheless, my 19 instructions mouse has a success rate of (3/20)**5 ...harvestsnow wrote:Out of curiosity, teebee, what is the success rate of your 19 instructions mouse?
I have one that could theoretically pass the tests once in two days, but I'm a bit reluctant about poundering the server.
Code: Select all
00 1+21^<3^<1^3?:-cp
Code: Select all
; we store max index on stack
0 ; [ max_ix ]
0 ; [ ix, max_ix ]
.Lnext:
nop
1
add ; [ ++ix, max_ix ]
2 ; [ 2, ++ix, max_ix ]
1
dup
peek ; [ m<ix>, 2, ix, max_ix ]
3
dup
peek ; [ m<max_ix>, m<ix>, 2, ix, max_ix ]
1
dup
gotoeq .Lfinish
cmp ; [<-1, 0, 1>, 2, ix, max_ix ]
sub
; call to '.Lnext - 1' for new max
; otherwise to '.Lnext'
naked c
.Lfinish: ; [ m<max_ix>, m<ix>, 2, ix, max_ix ]
print
You have meantharvestsnow wrote:Code: Select all
10>1>::>p
Code: Select all
10<1<::<p
Do I understand the penalty system well that (3/20)^5 solution ... which has expected number of attempts roughly 13170 would gain expected 12970 hours of penalties so roughly 1.5 years of penalties?teebee wrote:Did you take into account that there is a time penalty of 30s after 20 trials and one of 1h after 200? Nevertheless, my 19 instructions mouse has a success rate of (3/20)**5 ...harvestsnow wrote:Out of curiosity, teebee, what is the success rate of your 19 instructions mouse?
I have one that could theoretically pass the tests once in two days, but I'm a bit reluctant about poundering the server.
Frankly speaking, the challenge where you need 19 instructions and you need to try ever so often until you get through should not exist.Hippo wrote:Maybe this is why there are only 3 lucky solvers out of 25.
That would reduce expected number of tries to roughly 46%.harvestsnow wrote:I didn't know about the 1 hour penalty, I based my estimations on 30s/try.
And there is a slightly better 19 solution (roughly (7/40)**5), with a "nop" instruction that I don't know how to drop or use.
Thanks for confirming that this is the expected solution. After all, it's less intensive that the Cavern master.