MathematicsPreprintTheory3 min read

A TOKEN, SOME SWITCHES, AND A SHORTCUT THROUGH AN EXPONENTIAL WALK

Imagine a token moving through a network of points joined by one-way arrows. Each point has two exits, like a railway switch. The first time the token leaves a point, it takes the first exit; the second time, the second exit; after that it alternates. The question is simple: starting from a given point, does the token ever reach a given destination?

This is ARRIVAL, a problem introduced by Jérôme Dohrau, Bernd Gärtner, Manuel Kohler, Jiří Matoušek and Emo Welzl. Their paper, dated 2017 in the bibliography, proved that it belongs to a complexity class known as NP ∩ coNP: whether the answer is yes or no, there is a short proof of it that can be checked quickly. The walk is a deterministic cousin of a random walk: nothing is left to chance, yet predicting it is hard.

A walk that can explode

A short example from the paper shows why. Build a chain of n switches. At each one, the first exit sends the token back to the start, and the second moves it on to the next switch — or, at the end of the chain, out to a terminal.

The token leaves the last switch twice, the one before it four times, and the starting point 2ⁿ times. Each switch added to the chain doubles the length of the trip. The counts themselves are short to write in binary, but finding them by following the token step by step takes exponential time.

The road so far

The introduction of the paper, by Chenglin Fan and Jeonseong Kim, retraces the attempts. A randomized algorithm ran in about 1.4143ⁿ steps. The first general algorithm that beat exponential time came from Gärtner, Sebastian Haslebacher and Hung P. Hoang; others refined it. Fast algorithms existed only for special families of networks, such as tree-like ones or “ladders”. A general polynomial-time algorithm — one whose running time grows like a fixed power of the network’s size, such as n⁵ — was missing.

Average first, correct later

The authors’ idea starts by blurring the switches. Instead of alternating strictly, each switch is replaced by an averaged rule that splits its traffic evenly between its exits. After seven departures, a real switch has sent the token 4 times one way and 3 times the other; the averaged rule says 3.5 and 3.5. After eight departures, both say 4 and 4. The two rules agree at the end of every full cycle.

Staircase line of the exact switch and dashed diagonal of the averaged rule, meeting at the corners of grey squares.

Local outflows of a switch with two distinct exits: the exact rule (solid staircase) and the averaged rule (dashed) meet at every common period endpoint; each shaded square contains the outflows of one period. — Figure 1, Fan & Kim (2026), arXiv:2611.33785.

The averaged system can be solved exactly with linear algebra. The algorithm then checks whether the answer also obeys the real alternation. If not, the authors prove there is a point where the current guess and the true answer differ, yet both fall inside the same full round of that point’s exits, a round where the averaged rule is still in use. So, at every point, they switch the exact alternation back on for the round that contains the current guess, and solve again.

At most one correction per point

Each failed check restores a genuine piece of the true walk at a point where this had not yet happened. The number of failed checks is therefore at most the number of points. A mathematical trick — a small “discount” applied to the flow — makes the final numbers easy to round to the exact count of departures.

The resulting bound is about n⁵ arithmetic operations for a network of n binary switches. The same method also tells, on networks where every point has a way out to a terminal, how many times the token leaves each point, and where it stands after any number of moves, even an astronomically large number given in binary.

Still to be checked

The authors present the result as the answer to an open problem. It is a 14-page preprint: the proof has not yet been reviewed by other specialists, and it is a theoretical algorithm, with no program tested in the paper. If it holds, a game whose trips can double with every switch can be settled without ever playing it out.