arXiv:2610.28573cs.DSOct 2026

Manuscript Offprint

arXiv:2610.28573

Dynamic Distances Without Matrix Inverse

Jan van den Brand, Adam Karczmarz, Aryan Patel

Abstract

We study the fully dynamic exact distance problem in unweighted directed graphs, where the graph undergoes edge insertions and deletions, and the distance between two query vertices must be reported. Under the combinatorial Boolean matrix multiplication conjecture, any subquadratic-time algorithm for this problem must use algebraic techniques. All prior work uses the polynomial matrix inverse as its algebraic tool, but within subquadratic time, this technique can only maintain distances up to a small-polynomial hop bound. So larger distances must be reassembled from short-range pieces by a combinatorial layer. This hybrid algebraic-combinatorial construction has led to a substantial slowdown for dynamic distances compared to other dynamic graph problems relying on algebraic techniques.

We give the first subquadratic-time dynamic distance algorithm built on dynamically maintaining a different algebraic object than the matrix inverse. By maintaining the Frobenius form A=KCK−1\mathbf{A} = \mathbf{K}\mathbf{C}\mathbf{K}^{-1} of a dynamic generic (i.e., cyclic/non-derogatory) matrix A\mathbf{A}, we can query all the powers Aℓ=KCℓK−1\mathbf{A}^\ell = \mathbf{K}\mathbf{C}^\ell\mathbf{K}^{-1} efficiently. For adjacency matrix A\mathbf{A}, the smallest ℓ\ell with (Aℓ)s,t≠0(\mathbf{A}^\ell)_{s,t} \neq 0 is the st-distance in the associated graph. So, unlike dynamic matrix inverse, we get distance information directly without hop truncation, and we no longer need to perform any combinatorial reassembly. This purely algebraic approach to dynamic distances leads to the fastest dynamic distance algorithm with O(n1.58)O(n^{1.58}) update time.

The earlier use of the Frobenius form maintained the dense change of basis K explicitly and required O~(n2)\widetilde{O}(n^{2}) time per update [KS23]. Our key observation is that this change of basis is highly structured, which lets us maintain it implicitly. This gives the first subquadratic fully dynamic algorithm for the Frobenius normal form and characteristic polynomial for generic matrices.

*Georgia Institute of Technology. Supported by NSF-2504994 and NSF-2338816.

†^{\dagger}University of Warsaw. Supported by the National Science Centre (NCN) grant no. 2022/47/D/ST6/02184.

1^{1}Georgia Institute of Technology

i

Contents

1 Introduction 1
1.1 Our Results 3
1.2 Further Related Work 5
2 Preliminaries 5
3 Technical Overview 6
3.1 Main Technical Barriers and Ideas 6
3.2 Toeplitz-like Matrices, Generators, and Displacement Rank (Section 4) 8
3.3 Dynamic Frobenius Form (Sections 5 and 6) 9
3.3.1 Warm-up: Quadratic Time Updates 9
3.3.2 Subquadratic Time Updates 10
4 Toeplitz-like Matrices 11
4.1 Toeplitz-like Matrix Products 12
5 Updating the Frobenius Form 17
5.1 Rank-1 Update to Companion Matrix 18
5.2 Low-Rank Update 20
6 Dynamic Algorithms 22
6.1 Dynamic Matrix Powers and Frobenius Form 22
6.2 Dynamic and Sensitivity Distances via Dynamic Matrix Powers 24

ii

References (72)