Algorithm for the CSR expansion of max-plus matrices using the characteristic polynomial
Yuki Nishida
TL;DR
This work addresses the CSR expansion for max-plus matrices and introduces an $O(n(m+n\log n))$ algorithm that leverages the roots of the characteristic polynomial $\chi_A(t)$ as growth rates in the CSR terms. The core theoretical contribution is that each growth rate $\lambda_k$ in the CSR expansion is a root of $\chi_A(t)$, enabling a decomposition guided by the maximal multi-circuit sequence (MMCS). The method combines the Gassner–Klinz root-finding for $\chi_A(t)$ with graph-visualization and a graph-extension technique to efficiently compute the CSR components $C_k$, $S_k$, and $R_k$, improving on the previous $O(n^4\log n)$ algorithm. An illustrative example demonstrates the workflow and confirms the identified growth rates and CSR factors, highlighting the practical impact for long-horizon max-plus dynamics and discrete-event systems.
Abstract
Max-plus algebra is a semiring with addition $a\oplus b = \max(a,b)$ and multiplication $a\otimes b = a+b$. It is applied in cases, such as combinatorial optimization and discrete event systems. We consider the power of max-plus square matrices, which is equivalent to obtaining the all-pair maximum weight paths with a fixed length in the corresponding weighted digraph. Each $n$-by-$n$ matrix admits the CSR expansion that decomposes the matrix into a sum of at most $n$ periodic terms after $O(n^{2})$ times of powers. In this study, we propose an $O(n(m+n \log n))$ time algorithm for the CSR expansion, where $m$ is the number of nonzero entries in the matrix, which improves the $O(n^{4} \log n)$ algorithm known for this problem. Our algorithm is based on finding the roots of the characteristic polynomial of the max-plus matrix. These roots play a similar role to the eigenvalues of the matrix, and become the growth rates of the terms in the CSR expansion.
