3
$\begingroup$

There is a crazy circuit board with three kinds of elements which can change the signal value. All intersecting paths are connected (but paths touching by a single point are disconnected).

There is an input line (marked blue) and an output line (marked red).

The circuit can operate with decimal numbers for your convenience. The input value is shown in the left corner. The actions peformed on the signal $s$ by each kind of elements are shown in the right corner.

Choose the path from the input to the output, which gives the largest positive number in the end. Show the path and the resulting value.

enter image description here


Believe it or not, this crazy board is created by a simple cellular automaton with the following rule:

enter image description here

(this has nothing to do with the problem, but this way you can create your own picture if you want).

$\endgroup$
7
  • $\begingroup$ Does the board continue beyond the edge of the picture (following the rules of the cellular automata) or is it finite? $\endgroup$ Commented Sep 28, 2016 at 21:53
  • $\begingroup$ @2012rcampion, it continues infinitely, but there are disconnected 'levels' of finite height, and the two points are located whithin one such level $\endgroup$
    – Yuriy S
    Commented Sep 28, 2016 at 21:55
  • $\begingroup$ @2012rcampion, in other words, try to go down from any of the two marked points. You will not be able to go lower than a certain height $\endgroup$
    – Yuriy S
    Commented Sep 28, 2016 at 21:57
  • $\begingroup$ OK, I see now. Another question: can the path cross itself, take the same 'wire' twice, or turn around (exit an element the same way it entered)? $\endgroup$ Commented Sep 28, 2016 at 22:33
  • $\begingroup$ @2012rcampion, I think no to all of these, except crossing. Crossing is fine $\endgroup$
    – Yuriy S
    Commented Sep 28, 2016 at 22:36

2 Answers 2

4
$\begingroup$

My highest value is

43425



I alternated between red and blue for the path to make the path clearer when the path took the same crossing twice.
To find the solution I started with the great simplification by 2012rcampion. I joined more and more elements into bigger and more complex elements when there was only one path in and out of the group. For example the repeating group of 3 elements can do a 4s+1 or 4s+2 calculation depending on whether you enter by the negator or doubler. This compressed the 16 elements on the bottom half into 256s+616.
This just left the question if I use the start to get to a negative value so I can use the first doubler in the lower half twice or start with a positive value but can only use the first doubler once. The best negative start gives -2 while the best positive start gives 20, so I went with the latter.

$\endgroup$
5
$\begingroup$

(No solution, only some simplifications for other puzzlers.)

We can simplify the circuit by removing all unconnected elements:

enter image description here

Then removing all dead ends, straightening some curves, and removing some useless loops:

enter image description here

And finally, recognizing that:

Two successive negate-and-decrement blocks are a no-op
$-(-x-1)-1=x+1-1=x$

We can remove a few blocks altogether:

enter image description here

$\endgroup$
2
  • 1
    $\begingroup$ That's very helpful. I thought about doing this myself, but thought it would simplify the problem too much. Still, isn't it curious that a simple CA generates a set of complex closed curcuits... $\endgroup$
    – Yuriy S
    Commented Sep 29, 2016 at 6:26
  • $\begingroup$ Many simple 2-state turmites also generate closed circuits like this. $\endgroup$
    – Anon
    Commented Sep 30, 2016 at 15:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.