\documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage[hmargin=0.87in,vmargin=0.77in]{geometry} \usepackage{amsmath,amssymb,amsthm,booktabs,microtype,xcolor,hyperref} \usepackage{tikz} \usetikzlibrary{arrows.meta} \definecolor{ink}{HTML}{174D78} \hypersetup{colorlinks=true,linkcolor=ink,citecolor=ink,urlcolor=ink, pdfauthor={Elazar Gershuni}, pdftitle={An exponential lower bound for max-plus Howard iteration}} \newtheorem{theorem}{Theorem} \newtheorem{lemma}[theorem]{Lemma} \setlength{\parindent}{1em} \newcommand{\repo}{https://github.com/elazarg/multitubes/blob/77af76ca0a611fab2cc407d55435b57fb92f0c04} \begin{document} \begin{center} {\Large\bfseries An exponential lower bound for max-plus Howard iteration}\\[5pt] Elazar Gershuni \quad {\small\href{mailto:elazarg@gmail.com}{\nolinkurl{elazarg@gmail.com}}} \end{center} \begin{abstract} Cochet-Terrasson, Cohen, Gaubert, Mc Gettrick and Quadrat asked whether their max-plus version of Howard's algorithm takes polynomially many iterations in the number of arcs. A family with $55d$ vertices and $146d$ arcs forces exactly $6\cdot2^d+3$ improvements from a prescribed initial policy, for every permitted tie-breaking rule. Two rings encode a binary counter. A private gate at each exit from the first ring forces the algorithm to carry out every increment. \end{abstract} \section{The algorithm and the lower bound} Each finite entry $A_{vt}$ gives an arc $v\to t$ of weight $A_{vt}$. On a strongly connected graph the max-plus eigenvalue is the largest cycle mean. On a graph with $E$ arcs, each iteration of the Cochet-Terrasson et al.\ (CCGMQ) algorithm uses $O(E)$ arithmetic operations and comparisons. They conjectured an iteration count polynomial in $E$~\cite{ccgmq}. A policy chooses one outgoing arc at each vertex. Following it from $v$ reaches a cycle. Write $\eta(v)$ for that cycle's mean. A bias $h$ satisfies \[ h(v)=w(v,t)-\eta(v)+h(t) \qquad\text{on each policy arc }v\to t. \] At the initial evaluation, each cycle's reference vertex receives an arbitrary bias. After each policy change, evaluation copies the previous bias at a reference vertex of every cycle in the new policy, including newly formed cycles. The policy equations then determine the other biases~\cite[Algorithms 4.1 and 4.4]{ccgmq}. If some vertex has a successor with strictly greater gain, every such vertex switches to a successor of largest gain, and all others keep their arcs. Otherwise each vertex maximizes $w(v,t)-\eta(t)+h(t)$ over successors of equal gain, switching only for a strict improvement. The algorithm stops when neither case changes the policy. The first case permits arbitrary choices among successors of largest gain. \begin{theorem}[Multitubes, gated lower bound~\cite{mt}] For every integer $d\ge2$ there is a strongly connected max-plus matrix with $55d$ rows, $146d$ finite entries and a specified initial policy such that every admissible run makes exactly $6\cdot2^d+3$ strict policy improvements. All finite entries can be positive integers with $O(d)$ bits. \end{theorem} CCGMQ allow an arbitrary initial policy. The specified one therefore refutes their conjecture even with at most three finite entries per row. For both the multigraph and its max-plus matrix, the Lean development proves that a terminating run exists, every run from the specified start follows the same policy sequence, and termination occurs at the stated count~\cite{mt}. We state the forced-passage lemma below and sketch its decisive comparisons. Zhong and Ye's two-ring counter uses a lexicographic rule~\cite{zy}. At a vertex with two exits into a higher-gain ring, that rule compares the exits' bias appraisals. CCGMQ permits either exit. We give the vertex one exit to a private gate and put the two destinations at the gate. A bias step settles the gate's choice before the gain step sends the vertex through it. \paragraph{The two-bit run.} With $d=2$ there are 110 vertices and 292 finite entries. The table gives the unique policy cycle after each group of three improvements. The bits are written most significant first. \begin{center}\small \begin{tabular}{@{}lrrrrrrrr@{}} \toprule Improvements & 0 & 3 & 6 & 9 & 12 & 15 & 18 & 21\\ Cycle & $A_{00}$ & $B_{00}$ & $A_{01}$ & $B_{01}$ & $A_{10}$ & $B_{10}$ & $A_{11}$ & $B_{11}$\\ Mean in units of $1/96$ & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7\\ \bottomrule \end{tabular} \end{center} At improvement 10 the counter carries from $01$ to $10$, opening a lap in $A$. Improvement 11 closes the twelve-arc lap with bias advantage $12(4/96-3/96)=1/8$. Improvement 12 sends $B$ to the new cycle. Six further improvements after $B_{11}$ give 27 in all. \newpage \section{The counter} Ring $A$ has $d$ blocks and ring $B$ has $3d$. A block consists of a head and two lanes $p=0,1$ of five vertices $j=0,\ldots,4$, with root $j=0$. A lane vertex can reset to its head for weight $-24$ or advance along its lane for weight zero. The last advance goes to the head and pays $r^p$. A head can enter either root of the next block for zero. Block indices wrap in their own ring. For $0\le i=Stealth, every node/.style={font=\small}, flow/.style={->,thin}] \node (in) at (0,0) {$H_{i-1}$}; \node (out) at (5,0) {$H_i$}; \foreach \p/\y in {0/.49,1/-.49}{ \foreach \j in {0,...,4}{ \node[circle,draw=ink,fill=white,inner sep=1.5pt,font=\scriptsize] (s\p\j) at (1+.73*\j,\y) {$\j$}; } \draw[flow] (in)--(s\p0); \foreach \j/\k in {0/1,1/2,2/3,3/4}{\draw[flow] (s\p\j)--(s\p\k);} \draw[flow] (s\p4)--(out); } \node (lane) at (6.2,0) {$(p,j)$}; \node[draw=ink,rounded corners=2pt,inner sep=3pt] (gate) at (7.65,0) {gate}; \node[anchor=west] (b) at (8.8,.49) {$B_{d+i}$, root $p$}; \node[anchor=west] (a) at (8.8,-.49) {$B_i$, root $1-p$}; \draw[flow] (lane)--node[above,font=\scriptsize] {$0$}(gate); \draw[flow] (gate)--(b.west); \draw[flow] (gate)--(a.west); \end{tikzpicture} {\small Left, advancing through block $i$ on either lane. Each circled vertex can also reset to $H_i$. Right, the exit from a single lane vertex in $A_i$.} \end{center} Initially the $A$ heads choose lane zero, lane-zero vertices advance, and lane-one vertices reset. All $B$ vertices exit and every gate takes its first move. To form the matrix, retain the heavier of parallel arcs and map the initial policy by successor. There are $44d$ ring vertices and $11d$ gates. The multigraph's $154d$ moves give $146d$ matrix entries because reset and last advance have the same successor in both lanes of every block. The merge changes the initial evaluation. At $j=4$ in lane one of each $A_i$, the initial reset of weight $-24$ becomes the advance of weight $f_i$. Thus the advancing suffix in each such lane has lengths $1,2,3$ through the first two improvements, versus $0,1,2$ in the multigraph. The roots still reset at both evaluations that build $B$, preserving its lane and gate comparisons. At the first gain step all $A$ vertices exit. From then on the policies agree by successor, and every last lane vertex that stays in its ring advances. For a binary word of value $l=\sum_i2^i b_i$, cycle $C_{2l}$ follows lane $b_i$ in $A_i$. Cycle $C_{2l+1}$ follows that lane in all three copies of bit $i$ in $B$. A selected lane takes six moves per block. Summing the table gives \[ \mu(C_{2l})=\frac{l\,2^{-d}}{6d},\qquad \mu(C_{2l+1})=\frac{(l+1/2)\,2^{-d}}{6d}. \] In the multigraph, at each passage boundary, all vertices of the inactive ring exit. In the active ring the final two vertices of each opposite lane advance and the others reset (initially all reset). When $B$ is active each gate has already chosen a destination of maximum bias appraisal. \begin{lemma}[Forced passage and termination~\cite{mt}] In the multigraph run, after $3k$ improvements the unique policy cycle is $C_k$, for $0\le k\le 2^{d+1}-1$. Between consecutive such policies there are two forced bias improvements and one forced gain improvement. After the last encoded cycle there are precisely six further forced improvements, ending at a stationary policy. Every switching vertex has a unique maximizing move. At a tie for the best bias appraisal the current move is retained. The matrix has the same passages and tail length. \end{lemma} \newpage \section{Why the counter advances} Every bias step starts with a single policy cycle. Changing its reference bias adds the same constant at every vertex, preserving all comparisons. Two cycles coexist only before a gain step, where the rule compares successor means alone. This accounts for normalization independence throughout the run. Suppose $B$ carries word $b$ with cycle mean $\mu$, and $A$ is about to be built. Let $X_k$ be the bias at the selected root of $B_k$ and $r_k$ its last-advance weight. The bias equation around one block gives $X_{k+1}-X_k=6\mu-r_k$. If $z_i$ is the number of zero bits below $i$ and $u=6d\mu\in(0,1)$, summing over $d$ consecutive blocks gives \[ X_{d+i}-X_i=u+16z_i. \] A resetting opposite root lies $P_k=24+r_k-4\mu>7$ below the selected root. Substitution gives the best gate score on lane $b_i$ of $A_i$ minus the best on its opposite, \[ \min\{P_{d+i},\;16z_i+u-8\}. \] This is negative exactly when $z_i=0$. Hence bit $i$ flips exactly when every lower bit is one. In the reverse passage, the direct exits from $B$ to $A$ copy each selected bit to its three $B$ blocks. \paragraph{Gate choices at closure.} The first bias improvement opens a lap along the selected lanes. The second closes it with advantage $s(\mu_{\rm new}-\mu_{\rm old})>0$, by summing the bias equation around the $s$-arc lap. When the new lap is in $B$, each $A$ gate chooses its move using the open-lap biases. That choice must still be optimal after closure. Let $\nu$ denote the old mean on the open lap and the new mean after closure. Substitution of the exit weights gives the difference between the first and second gate appraisals at either evaluation~\cite{mt}. \[ \begin{array}{ll} \text{lane }p=b_i & 16z_i+6d\nu+16-4\nu,\\ \text{lane }p\ne b_i & 16(z_i-1-b_i)+(6d+4)\nu,\\ \text{head of }A_i,\ i>0 & 16z_i+6d\nu-8 . \end{array} \] Here $0\le6d\nu<1$ and $0\le(6d+4)\nu<2$. The first row is positive, and the sign of the third depends only on whether $z_i=0$. At the head of $A_0$ the closed-lap expression is $6d\nu-8$. On the open lap it has an additional term $18d(\mu_{\rm new}-\mu_{\rm old})=3/2^{d+1}<1$. Both are negative. In the second row a tie is possible only in the initial passage, where $\nu=0$ and $z_i=1+b_i$. The gate retains its first move, which the positive new mean makes strictly best. Thus every gate's choice on the open lap is optimal after closure. Each vertex in the old ring now has a unique exit into the higher-gain basin, forcing the gain step. At the all-ones word, the next $A$ cycle would have mean zero, so the closing move loses and the lap stays open. Three improvements complete the opposite lanes of $B$. The fourth selects its optimal cycle, of mean $(16+\varepsilon)/18$. Its new biases determine the gate choices on the fifth improvement and the remaining $A$-head switches on the sixth. \begin{proof}[Proof of Theorem 1] There are $2^{d+1}$ encoded cycles and hence $2^{d+1}-1$ passages. Lemma~2 gives $3(2^{d+1}-1)+6=6\cdot2^d+3$ improvements. Replace each weight $w$ by $Q(w+256d)+2$, where $Q=d2^{d+1}$. This gives integers of $O(d)$ bits, all at least two. A common positive scaling and shift preserve every comparison. An explicit sparse arc list storing each weight separately has length $L=\Theta(d^2)$ bits, since $\Theta(d)$ formerly zero weights now use $\Theta(d)$ bits apiece. The count is therefore $2^{\Theta(\sqrt L)}$. \end{proof} \newpage \section{Weight magnitude and further consequences} \paragraph{How many weight bits suffice?} Take $d=k^2$, $k\ge2$, and attach a directed cycle of unit-weight arcs at a gate $v$, adding $q$ vertices to reach $N=55d\,2^k$. Number the new vertices last and start with the original policy. Each new vertex has one outgoing arc, so it never switches. While $v$ uses an original arc, all original policy walks stay in the original graph. The new vertices lead back to $v$ with gain $\eta(v)\ge2$. The new arc at $v$ therefore offers the same gain, and its bias appraisal is $h(v)+(q+1)(1-\eta(v))