Page 1 of 1

Problem 220

Posted: Sat Dec 06, 2008 9:11 am
by miodrag.milenkovic
I think it should be specified whether the instructions are read left to right or the other way around (I'm guessing it's left to right, but who knows?)

Re: Problem 220

Posted: Sat Dec 06, 2008 4:20 pm
by elendiastarman
Does a computer read from right to left?

It's left to right, and you could look between the first sequences and the graph and determine which way it is anyway.

Re: Problem 220

Posted: Mon Dec 08, 2008 10:35 pm
by miodrag.milenkovic
To answer your question, a machine will do whatever you ask it to, if you look at the assembly instruction set for your machine you won't find any references to right and left, these notions come into existence when memory contents are mapped to an IO device. And if you're in an Arabic speaking country, you may well be asking it to read right to left.

But the question is not particularly relevant, because it is I, a human, who is reading the statement of the problem. And even though English text is read left to right, certain mathematical expressions are meant to be read the other way around, such as composition of operators, e.g. A B C, if A, B, C are operators, usually means "apply C, then B, then A". And L, R, F look like operators to me.

I may have spent too much ink answering a rude reply, but it's written in hope that the more you learn, the more civilized you become.

Re: Problem 220

Posted: Tue Dec 09, 2008 12:03 am
by elendiastarman
I did not mean to be rude. Anyway, even if you're in an Arabian country, the problem example should clarify which way it is (as well as the language it's written....hmm...I wonder how the sequence would be interpreted in Arabian countries...hmm...).

Re: Problem 220

Posted: Wed Feb 25, 2009 2:48 pm
by ImRe
I think, Dn 3 * 2n - 2 steps long, which will be somewhat longer than 1011. I.e., if we try to do 1012 steps, then we will fall off at the end.

Am I mixing up something here, or there is a mistake in the problem description?

Re: Problem 220

Posted: Wed Feb 25, 2009 2:57 pm
by hk
No there is no mistake in the description. Perhaps you missed the 50 in D50
 

Re: Problem 220

Posted: Wed Feb 25, 2009 3:43 pm
by ImRe
Oops, silly typo in my code. Sorry

Re: Problem 220

Posted: Mon Dec 02, 2013 1:52 am
by quick.dudley
D1 = "FaRbFR",
For the purpose of this problem: should D1 be considered 4 steps long or 6? In other words; In the fully expanded sequence: do "a" and "b" contribute towards the step count?
--edit
The above would be 2 steps: "F" is considered 1 step and everything else is 0.

Re: Problem 220

Posted: Thu Aug 20, 2026 11:22 pm
by vlad_tepesch
My program solves the test case but the answer to the actual problem is not accepted.
can someone please post some reference values (position, orientation) between test and problem case?

Edit:
never mind
Found the bug: the final step in the testcase (abortion due to step count) caused to insert a wrong result in the memoization tables that then was used in the real calculations