Manuscript Offprint
arXiv:2610.28573Dynamic Distances Without Matrix Inverse
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 of a dynamic generic (i.e., cyclic/non-derogatory) matrix , we can query all the powers efficiently. For adjacency matrix , the smallest with 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 update time.
The earlier use of the Frobenius form maintained the dense change of basis K explicitly and required 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.
University of Warsaw. Supported by the National Science Centre (NCN) grant no. 2022/47/D/ST6/02184.
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
Among dynamic graph problems, maintaining shortest paths is one of the most extensively studied, with a long history spanning the incremental, incremental, and fully dynamic settings in the st/arbitrary-pair query, e.g., [RZ11, KS24, BNS19, BHG 21, KS23, AB24, BFN22, BCK 24, Chu21, DFNdV24, CZ23b, FGNS23, KMG24, FNG23, HLS24, Che18, LN22], single-source, e.g., [BK23, ES81, BN19, GWW20, KMG22, Liu26, BGW20, BGS21, BGS20, HKN14], and all-pairs [Kin99, AIMN91, BHS07, DI04, Tho04, ACK17, CZ23a, GW20, Mao24, EFGW21, BN19, Ber16, KL20] variants. We focus on the fully dynamic setting on unweighted directed graphs undergoing edge updates and exact distance queries between arbitrary pairs of vertices. In particular, we aim for data structures with subquadratic worst-case update and query time. Subquadratic time is the natural benchmark, since a single breadth-first search on an n-vertex graph recomputes distances from scratch in time, and the motivation of dynamic algorithms is to beat naïve recomputation.
This quadratic barrier is natural and likely cannot be beaten with combinatorial techniques. Abboud and Vassilevska Williams [AV14] showed that under the combinatorial Boolean Matrix Multiplication conjecture, no combinatorial fully dynamic algorithm can achieve update and query time. The only known approach to achieving subquadratic update time therefore runs through fast matrix multiplication, treating the graph as an algebraic object. The question is then not whether to be algebraic, but which algebraic paradigm to maintain.
Dynamic Matrix Inverse The algebraic approach traces back to the path-counting algorithms of King-Sagert [KS02] and Demetrescu-Italiano [DI05] for reachability, and was refined by Sankowski, who reduced dynamic reachability [San04], matching [San07], and distances [San05] to a single algebraic primitive: the dynamic matrix inverse. Every subsequent algebraic distance algorithm is built on this matrix inversion approach [BNS19, BN19, BHG 21, BFN22, BK23, KS23, AB24].
However, maintaining distances algebraically is structurally quite different from the other dynamic graph problems. For most dynamic algebraic graph algorithms, the maintained algebraic object is already the answer. The rank of the Tutte-matrix corresponds to the size of a maximum matching. Whether for adjacency matrix corresponds to st-reachability. Dynamic rank and matrix inverse are purely algebraic problems, and their dynamic algorithms are correspondingly efficient. Dynamic distance is different in kind and requires the combination of both algebraic and combinatorial techniques, resulting in hybrid algorithms. When solving distances via matrix inversion, the matrix inverse only returns distances up to a hop bound . To extend the algorithm to larger distances, one must reassemble hop-bounded path pieces. This reassembly is the combinatorial layer that the entire line of work makes use of. The most prevalent combinatorial method is the hitting-set trick [UY91] . Trading off between the algebraic layer (inefficient for large hop-bound ) and the combinatorial layer (inefficient for small hop-bound ) results in a substantial slowdown for dynamic distances compared to the other dynamic graph problems. The algebraic-combinatorial hybrid can be made efficient, but only by relaxing the problem to approximation and undirected graphs. For example, using spanners or emulators for the combinatorial
One inverts a polynomial matrix modulo , i.e., each entry of the matrix inverse is a polynomial of degree .
The same idea is used in static algebraic all-pairs shortest paths algorithms [AGM97, Zwi02] and numerous combinatorial dynamic shortest paths algorithms, e.g., [Kin99, BHS07, ACK17].
layer [BHG 21, BFN22] is efficient but these results are -approximate and hold only for undirected graphs. Needing an additional combinatorial layer thus always weakened the algorithm substantially, either slowing it down or confining it to a much weaker model.
Dynamic Frobenius Form We completely remove the combinatorial part by maintaining a different algebraic primitive than matrix inversion. The Frobenius normal form (also called the rational canonical form) is a type of matrix decomposition where we express a given matrix as . Here, the matrix has a special structure that allows computing efficiently, allowing us to efficiently query entries of . To see why this is useful for distance problems, recall that for adjacency matrix of an unweighted graph, equals the number of st-walks using steps, so the smallest with is the st-distance. Hence, a dynamic algorithm maintaining the Frobenius form implies a dynamic distance algorithm for graphs.
This Frobenius form has been reached for before in static [SW19, KS23] and dynamic [KS23] distance problems but never maintained in subquadratic time. Every prior algebraic data structure that achieves subquadratic update time for exact distance uses dynamic inverse maintenance to some extent. Even the one work [KS23] that turns to the Frobenius form does not escape the inverse, but rather shows how firmly it holds. In the state-of-the-art data structure, [KS23, Section 9.1] uses the Frobenius form only as a static subroutine, accelerating periodic rebuilds of the full polynomial matrix inverse. Their second data structure [KS23, Section 9.2] that avoids full matrix inverse maintenance leverages Frobenius form recomputation (from scratch) combined with matrix inverse arguments for maintaining selected entries of the h first powers of the adjacency matrix A. Summing up, for the current subquadratic distance algorithms, the Frobenius form never becomes the dynamic object but merely a scaffolding inside the matrix inverse machinery, and is always a part of an algebraic-combinatorial hybrid algorithm.
For distance problems, it suffices to focus on Frobenius forms of so-called generic matrices . Generic matrices allow for a particularly simple shape of and a transform built from iterates for some , see, e.g., [Kel85]. The only prior approaches for maintaining the Frobenius form in a dynamic setting resulted in update time [KS23, FS11] in the generic case, and even higher bounds in the non-generic case [FS11]. The reason is structural: an update to matrix produces a new form and the new basis-change matrices , are dense matrices that can differ from , significantly , so naively the form cannot be repaired in subquadratic time. This raises the question whether a truly dynamic Frobenius form, fast enough to beat the inverse, is achievable at all, or whether the dense update to change-of-basis is a barrier.
We show that maintenance of the Frobenius form in subquadratic time is possible. We prove that the update to for some transform matrix is a so-called “Toeplitz-like” matrix [KKM79, KS95]. Toeplitz-like matrices allow implicit representation via smaller ( ) dimensional matrices , called generators. By maintaining these generators of explicitly, we implicitly maintain and thus the Frobenius form. This allows us to achieve update time and query time for dynamic distances, resulting in the fastest algorithm yet. Unlike all prior work, our improvement does not come from a better dynamic matrix inverse data structure or a better tradeoff with the combinatorial layer. Instead, we maintain a completely different algebraic object that yields distances directly, removing the combinatorial layer entirely.
Also called cyclic matrices. Genericity means that some vector v exists where form a basis. It is not a strong restriction as adjacency matrices can be made generic via randomization (Theorem 6.2).
We have for some transform and original basis-change . However, is a dense full-rank matrix, so implicit maintenance of by explicitly storing and does not work either.
There is a tradeoff parameter that can be chosen to reduce query complexity.
1.1 Our Results
As our algorithms are algebraic and use fast matrix multiplication, we use to denote the complexity of multiplying an matrix by an matrix. We state our results both in generality (using ) and for current upper bounds on fast rectangular matrix multiplication . We use to hide polylog.
Dynamic Distance Our main result is the following dynamic distance algorithm.
Theorem 1.1. Let be a directed unweighted graph. There is a Monte Carlo randomized dynamic data structure maintaining subject to edge insertions and deletions, and supporting st-distance queries for any . For a tradeoff parameter , the update time is and query time is . The produced answers are correct with high probability. The data structure uses space.
Choosing the parameter to minimize the update time results in update and query time [Bra]. This improves upon all prior subquadratic update times; see Figure 1. We remark that [San05] has comparably small query time but our update-query tradeoff is better; e.g., we can choose a different such as and get update and query time, beating both the update and query times of [San05].
| Reference | Update | Query | Space |
|---|---|---|---|
| [San05] | |||
| [BNS19] | |||
| [KS23] | |||
| Ours | |||
| Ours |
Figure 1: Subquadratic upper bounds for exact distances
In addition to being much faster than prior work, an additional benefit of our purely algebraic approach is improved space complexity. Theorem 1.1 uses space (i.e., linear for dense graphs) whereas the prior hybrid data structures used super-quadratic space where is their hop-bound after which longer paths are reassembled via the combinatorial layer.
The Frobenius form approach to distance problems is tailored to unweighted digraphs. However, a simple reduction (see, e.g., [KS23]) shows that dynamic distances with weights can be reduced to dynamic distances in unweighted digraphs with vertices. Consequently, Theorem 1.1 yields update and query time in that case. It should be noted that the combination of polynomial matrix inverse and hitting sets, as used in, e.g., [San05, BNS19, BHG21], can still be advantageous for graphs with small nonnegative integer weights: unlike the reduction above, it can handle zero-weight edges, and the obtained dependence on can be linear (but is still pseudo-polynomial).
We obtain our dynamic distance result (Theorem 1.1) via the following algebraic data structure providing fast access to powers of a dynamic matrix, which may be of independent interest. In the following, let be a field of size , where is a sufficiently large constant controlling success probability.
Theorem 1.2. Let . There is a Monte Carlo randomized dynamic data structure maintaining subject to single-element updates and supporting queries that return, for any , all for . Provided the matrix remains generic throughout all updates, the update time is and query time is , where can be chosen freely. The produced answers are correct with high probability. The data structure uses space.
I.e., with probability at least over updates for a chosen constant (dependent on q).
In [San05] there is a typo, leading to an incorrectly stated query time. On page 469, the equation should have been . The additional overhead for a polynomial matrix of degree was missed.
Low-Rank Update to Frobenius Form Given the inverse , the Woodbury identity computes the inverse of for sized , in time. This is also referred to as a rank-k update since we add a rank-k matrix to , and it can be interpreted as a single batch of smaller updates. This is a crucial algorithmic tool in dynamic graph algorithms [DI05, San05, San07, BNS19, BHG 21, KS23, BK23, KMS22, AB24], failure sensitive distance oracles [BS19, KS23, GR21], and static optimization algorithms (e.g., [LS15, Bra20, CLS21, JKL 20, Bra21]). No equivalent update is known for the Frobenius form. The only route to updating it under a rank-k change was to apply separate rank-1 updates in sequence without fast matrix multiplication, each costing , for a total of . In particular, for any one may as well just recompute the Frobenius form from scratch in time [Kel85]. Indeed, this was a path taken in [KS23, Section 9.2], and a more efficient rank-k update algorithm could immediately improve their dynamic distance data structure (though not as much as our Theorem 1.1). We show that a non-trivial rank-k update is indeed possible, and the algorithm may be of independent interest.
Theorem 1.3 (Rank-k update to Frobenius form). Given are a Frobenius form of a generic matrix and a rank-k update such that (i.e., using only the first columns of ) is generic for all . There is a Monte Carlo randomized algorithm computing w.h.p. the Frobenius form in operations.
Note that the above bound is in particular, so it improves upon the aforementioned naive bound for any with (unless ).
We remark that the techniques for computing a single rank-k update extend to sensitivity distance oracles as studied in, e.g., [BK09, DP09, WY13, DZ17, BS19, GV20, CC20, GR21, Ren22, KS23, BCC 24, DG24]. These are data structures that, after preprocessing an input graph, receive a single batch of edge updates (failures) and a vertex-pair query , and then answer the st-distance subject to the edge failures. A batch of k edge updates/failures can be modeled as a rank-k update to the adjacency matrix. Using the techniques that yield Theorem 1.3 in such a way that they support query access rather than explicitly computing the entire Frobenius form, we obtain the following sensitivity distance oracle for directed graphs and edge failure batches.
Theorem 1.4. Let be a directed unweighted graph. We can preprocess in time to enable the following. Given a batch of failed edges , we can process in time, so that queries about st-distances in are supported in time for any . The produced answers are correct with high probability. The data structure uses space.
This matches the state-of-the-art bounds for large failures F obtained by [KS23], who used a more complex hybrid algebraic-combinatorial data structure relying on dynamic matrix inverse methods and the small-hop/large-hop distinction.
Dynamic Characteristic Polynomial The characteristic polynomial of a matrix A is . It is computable in time [Kel85]. Prior work [FS11] gave a dynamic algorithm maintaining the characteristic polynomial of generic matrices under rank-1 updates (i.e., ) in time. They also provided an lower bound for rank-1 updates. When the updates change only single entries of , then the lower bound becomes . It was explicitly asked in [FS11] if subquadratic update time is possible when supporting only entry updates.
The Woodbury identity states .
Here, is the matrix multiplication exponent, i.e., . It is known that [ADV 25].
We answer this question positively for generic matrices. The Frobenius form and the characteristic polynomial are closely related (see Definition 2.1 for details). In particular, one can read the polynomial directly from the Frobenius form, leading to Theorem 1.5.
Theorem 1.5. Let . There is a Monte Carlo randomized dynamic algorithm that maintains (with high probability) the characteristic polynomial of subject to element updates, provided that remains generic. Each update takes operations.
Our algebraic techniques currently apply to generic (cyclic) matrices, which suffice for the distance application and permit simpler and more elegant algorithms. At the same time, we believe our results constitute the essential first step towards dynamic Frobenius form and characteristic polynomial algorithms for general matrices over fields.
1.2 Further Related Work
Our work focuses on exact distances, which likely require algebraic techniques [AV14]. This also holds for -approximate distances. However, when allowing for large approximation errors on undirected graphs, then one can use purely combinatorial methods. E.g., subquadratic time is achieved by maintaining a dynamic spanner such as [BFH21, ADK 16] and running BFS to answer queries. There are also other faster dynamic distance algorithms for large approximation errors on undirected graphs, such as [ADK 16, HLS24, FGH21, ACT14, FGNS23, CZ23b, Ber09, KMG24].
On the lower bound side, there is an conditional lower bound for reachability and distances, conditional on the OMv-conjecture [HKNS15]. Conditional on triangle detection, there is also an lower bound [AV14]. Our work focuses on unweighted graphs, because subquadratic-time dynamic algorithms for weighted graphs are ruled out by the APSP conjecture [AV14, RZ11].
2 Preliminaries
Fields and Complexity Let denote a finite field. All our algebraic lemmas for matrices undergoing updates state their complexity as the number of arithmetic operations performed over of size , where is a constant controlling the success probability. For the graph application, we will use the finite field for a prime . In the standard Word-RAM model, each arithmetic operation over for takes time.
For the matrix product of an and matrix, we write for the complexity of matrix multiplication. Here we have , i.e., the arguments can be permuted, and because one can split a matrix product into several smaller ones. Precise upper bounds are given in .
We write for the ring of polynomials with coefficients in . Two polynomials of degree can be multiplied in operations via fast Fourier transform-type algorithms [CK91]. Other polynomial operations (addition, subtraction, division) are all bounded by as well.
Shift-Matrix We use to denote the -th standard unit vector. We use to denote the shift-down matrix, i.e., for all and . In particular, for any vector , the product is the vector shifted down by one, i.e., becomes .
Allowing integral weights in for some sufficiently large .
Frobenius Form and Generic Matrices Following [KS23], we call a matrix generic if there exists a vector such that are linearly independent, i.e., form a basis. In particular, the matrix (where we stack these vectors next to each other) is invertible. Using these concepts, we define the Frobenius form as follows. (We give more discussion in the overview section 3.1 to build further intuition.)
Definition 2.1 (Frobenius form of a generic matrix). For a generic matrix , let be the negated coefficients of the characteristic polynomial, i.e., . Then for and invertible we call the Frobenius form and the companion matrix. The basis-transform is not necessarily unique. A valid choice is for any such that is invertible. We call such cyclic.
The Frobenius form also exists for non-generic matrices (see, e.g., textbooks [Gan00, FIS97]), but then the structure of matrix C is more complicated and consists of multiple blocks. Matrix K also needs to be constructed differently. The simplified structure for generic matrices makes algorithms simpler and more efficient. Further, for the application of dynamic distances, the matrices we study in this work can be assumed generic (see Theorem 6.2). That is why we use the simplified definition of Frobenius form, restricted to generic matrices.
Finding an appropriate v to construct K is simple, as we can just pick a random vector:
Lemma 2.2. Let be a generic matrix and be a uniformly random vector. Then with probability at least , matrix is invertible, i.e., is cyclic.
Proof. The polynomial is of degree . Matrix is generic, so there exists with , i.e., is a non-zero polynomial. By the Schwartz-Zippel lemma [Sch80, Zip79] we thus have for random that .
Since in all our algorithms (including the graph applications) we use a field of size , the matrix is invertible with high probability .
3 Technical Overview
In this section we outline our main dynamic distance result Theorem 1.1. The main difficulty in understanding the algorithm is that it builds heavily on machinery from computer algebra and structured linear algebra, which readers from the dynamic graph community may not be familiar with. As such, a large part of our overview focuses on explaining these algebraic tools. Section 3.1 goes further into the Frobenius form and the difficulties for maintaining it dynamically. Section 3.2 explains the concept of Toeplitz-like matrices. Equipped with these algebraic tools, Section 3.3 shows how to use them to maintain the Frobenius form (and thus distances) in a dynamic setting.
3.1 Main Technical Barriers and Ideas
Distances via Matrix Powers: Given the adjacency matrix of a directed graph , is the number of walks from to using steps, i.e., if and only if there exists an st-walk with steps. Thus, the smallest such that is precisely the st-distance in graph . Maintaining distances in graph thus reduces to the data structure task
In the literature, such matrices are also called cyclic [NP95], single-invariant-factor, or non-derogatory [HJ12].
where we update matrix (an edge update changes one entry in adjacency matrix ) and support queries where for any given , we return all .
In general, may not be generic and may contain -bit numbers, but via randomization (see Theorem 6.2) we can perform computation in a finite field , i.e., compute everything modulo some prime , and still focus (w.h.p.) on finding the smallest with . Hence, for simplicity of this overview, one may think of as the classical adjacency matrix.
Matrix Powers via Frobenius Form: A common approach for computing powers is matrix decomposition, e.g., writing for some basis transform such that matrix allows for efficient computation of and thus . A well-known example would be diagonalization (e.g., eigendecomposition) because taking powers of a diagonal matrix is trivial. However, maintaining this particular decomposition is difficult since even just maintaining the eigenvalues or eigenvectors is not known in subquadratic time (see [AS25] for a discussion of the state-of-the-art). Instead, we make use of the Frobenius form (Definition 2.1) where for a generic , matrix is of the form , i.e., has 1s directly below the diagonal (due to ), and one dense column on the right (due to ).
This almost diagonal shape of C makes it easy to compute powers (proven in Section 5):
Lemma 3.1. Given , let where is the shift-down matrix. We can compute for all in operations.
We have when picking as the s-th row of and as the t-th column of . This allows us to compute for all via Lemma 3.1. Recall that the smallest where is the sought st-distance in our graph. So given the Frobenius form , we can query the distance between any vertex pair in time.
Bottleneck for Dynamic Setting: For the purpose of dynamic distances under edge updates, the remaining task is to maintain this Frobenius form while supporting entry updates to matrix A. Here the bottleneck is computing basis-transforms K and , which are dense matrices. As stated in Definition 2.1, is given by repeated matrix vector products with A. In the dynamic setting, when an entry of A changes, then in general changes in all entries for all . In particular, matrix K is also densely changing in entries. Maintaining this new K is the main bottleneck of prior work [KS23, FS11] and is the reason why dynamically maintaining the Frobenius form ran only in quadratic time.
Idea for new implicit maintenance: Consider matrix which is A after a sequence of k entry updates (e.g., k edge updates). Assume we have the Frobenius form of the original matrix so we now need to compute/maintain the new Frobenius form . The main bottleneck is the computation of the new . There is a matrix T representing the transformation . In general, this T is a dense and full-rank matrix, so working with it directly takes time. However, we show that T has a special structure and is a so-called “Toeplitz-like matrix” (details in the next subsection). Such Toeplitz-like matrices of size can be represented in just space using so-called “generators” which are matrices U, V for
Figure 2: Upper triangular Toeplitz matrices have displacement rank 1. In general, Toeplitz matrices have displacement rank at most 2.
. So rather than updating the Frobenius form explicitly, we maintain transform T implicitly by maintaining its generators U, V. This then gives query access to . Likewise, we have access to by maintaining generators of . Before we can explain this in detail, we must first define Toeplitz-like matrices and their generators.
3.2 Toeplitz-like Matrices, Generators, and Displacement Rank (Section 4)
Before defining Toeplitz-like matrices, let us first recap the structurally simpler Toeplitz matrices. For Toeplitz matrices, the entries are constant in the diagonal direction [GVL13]. For example,
Since every row is a shift of the preceding row, a matrix vector product corresponds to a convolution and can be performed in time via fast Fourier transform [GVL13, CK91]. Also, rather than writing down all entries of the matrix, one can represent these matrices via an dimensional vector. Thus, Toeplitz matrices can be handled much more efficiently than general matrices.
To generalize Toeplitz matrices, in structured linear algebra and computer algebra (e.g., [KKM79]), one defines the displacement operator :
Matrix M, shifted one position down and to the right.
where Z shifts the matrix down, and shifts it to the right, i.e., takes matrix M, shifts it down and right, and then subtracts it from itself. Since a Toeplitz matrix M is the same row repeatedly shifted, the matrix is mostly 0 and of rank at most 2; see Figure 2 for an example.
Toeplitz-like matrices: A Toeplitz-like matrix is a matrix where has low rank, i.e., we can write for some matrices for . We call such generators of , and say that has displacement rank when has rank .
Definition 3.2 (Toeplitz-like and displacement rank [KKM79]). Matrix is said to be Toeplitz-like of displacement rank if . We call any pair with generators of . When are , then they are a minimal generator pair.
Due to the higher rank of , Toeplitz-like matrices can be structurally a lot more complicated than Toeplitz matrices. When , any matrix can be represented this way. However, as long as a matrix has a lower displacement rank , we can represent via generators with numbers rather than storing the dense entries of .
Computation with Toeplitz-like matrices: For efficiency, we want to never write down any Toeplitz-like matrix, and instead, we work with its generators exclusively. First, given a Toeplitz-like matrix M via generators, we want to construct generators of without constructing M or explicitly. [BJS08] gave such a procedure for the purpose of solving structured linear systems.
Lemma 3.3 ([BJS08, Lemma 14 & Proposition 5]). Let . Given generators of an invertible Toeplitz-like , there is a randomized algorithm that with probability computes generators , of in operations.
Next, in addition to inversion, we must also be able to multiply Toeplitz-like matrices efficiently. In Section 4 we show the following algorithm, which makes use of fast matrix multiplication.
Theorem 4.1 (Product of Toeplitz-like matrices). Given generators of matrices of displacement ranks , respectively, the product has displacement rank at most and we can compute the generators of in operations.
In particular, (i) when , then this is operations; (ii) when using combinatorial matrix multiplication, then this is operations.
One can show that an matrix also has displacement rank at most . So the above Theorem 4.1 extends to products with arbitrary matrices, e.g., an displacement rank-k matrix can be multiplied with a general matrix in operations. In particular, multiplying a Toeplitz-like matrix with a vector (i.e., ) takes time, and multiplying it with a general matrix takes time.
Corollary 3.4. Given generators of matrix with displacement rank , we can compute and for any in operations. We can compute and for any in operations.
3.3 Dynamic Frobenius Form (Sections 5 and 6)
Now equipped with tools for Toeplitz-like matrices, let us see how to use them for maintaining the Frobenius form. For simplicity, we will start by giving an algorithm that maintains the Frobenius form explicitly in time per entry update to . Afterward, we explain how to modify it so it runs in subquadratic time per update.
3.3.1 Warm-up: Quadratic Time Updates
Let be the Frobenius form of the original matrix computed during initialization.
Assume we perform an entry update . Note that is all zero except for the entry at position , so this update adds 1 to , which corresponds to an edge insertion to the adjacency matrix. Deletions are handled the same way via subtraction. Then we have
Here we defined to be the -th column of and as the -th row of . Since we know the original Frobenius form of , we have explicitly stored in memory and thus we can just read these vectors in time.
Next, let us compute the Frobenius form of , i.e., . Then we have
In particular, computing and assigning , and gives the new Frobenius form of . Here, the computational bottlenecks are (i) computation of the Frobenius form , and (ii) computation of the products and .
Part (i) is given by Lemma 3.5 below. That lemma also states that , are Toeplitz-like with displacement rank , so we can compute (ii) in time via Corollary 3.4, yielding the new Frobenius form for in time.
Lemma 3.5 (Frobenius Form of Companion Matrix + rank-1). Let be a companion matrix and let be such that is generic with cyclic (e.g., a uniformly random vector by Lemma 2.2). Then we can compute w.h.p. the Frobenius form
where matrices and are Toeplitz-like with displacement ranks and , respectively. In particular, , are not explicitly computed but we return the generators , , , of and . The time complexity is .
A full proof of Lemma 3.5 is given in Section 5. Here we only explain why matrices , have small displacement rank.
Displacement rank of , : Recall that matrix for some vector (Definition 2.1). To argue that the matrix has low displacement rank, we need to show that has low rank. For , consider the -th column of which, due to shifting columns one to the right, is
(1)
where we used that . Here, and are scalars. In particular, (1) is a linear combination of vector and vector . Thus, every column of is a linear combination of 3 vectors: , , and (the first column is equal to ). Hence, the displacement rank of is at most 3. The inverse has displacement rank at most 5 by Lemma 3.3.
3.3.2 Subquadratic Time Updates
Observe that in the Frobenius update procedure we outlined above (Section 3.3.1), the only quadratic time bottleneck is due to the products and . These products take time, but all other operations (e.g., computing the new companion matrix ) take only time.
So instead of computing these expensive products explicitly, we introduce an additional matrix T accumulating the change of basis and maintain the Frobenius form in the form
and is the matrix constructed during preprocessing/initialization. As we update matrix , the companion matrix and transform are updated. We show that after updates to , matrix has displacement rank at most , and we store only via its generators.
Update Procedure Assume we have another entry update to matrix A. Then, as before,
The products and take time, by first reading a column of (and row of ), then computing the matrix-vector-product with (and ). The latter takes time by Corollary 3.4, as and have displacement rank at most .
Once we have these , we compute the Frobenius form of as before in time (Lemma 3.5). At last, we maintain the invariant (i.e., Frobenius form) as in (2)
where generators of the matrices and can both be computed in operations via Theorem 4.1, because are of displacement rank and are of displacement rank . The displacement rank of grows by by Theorem 4.1.
Reset As the displacement rank of T grows by with each update to A, we must eventually reset our data structure after k updates, so that the displacement rank of T is bounded by . Instead of restarting from scratch to get a new , we compute and and reset T to an identity matrix. These products take time by Corollary 3.4. As this reset happens every k updates, we obtain amortized update time
This can be made worst-case via standard techniques (e.g., [ACK17, BNS19]).
Query Let us quickly state the query complexity of our dynamic Frobenius algorithm. Via the maintained Frobenius form, we can answer queries that for any return for all . (This yields the -distance for adjacency matrix .) We need to compute
for and . Here are computable in time as we just read a row/column of , and then multiply the corresponding vector with a displacement rank matrix or , respectively (Corollary 3.4). The values for all can be computed in time via Lemma 3.1. So overall, processing a query takes time.
4 Toeplitz-like Matrices
The main result of this section is the complexity of multiplying two Toeplitz-like matrices. The concept of Toeplitz-like matrices and generators has been defined in Definition 3.2.
Theorem 4.1 (Product of Toeplitz-like matrices). Given generators of matrices of displacement ranks , respectively, the product has displacement rank at most and we can compute the generators of in operations.
In particular, (i) when , then this is operations; (ii) when using combinatorial matrix multiplication, then this is operations.
A key ingredient for proving Theorem 4.1 is the product of a Toeplitz-like and a general matrix.
Theorem 4.2. Given any matrix and the generators of a displacement rank-k Toeplitz-like matrix , we can compute and in .
An algorithm for a product as in Theorem 4.2 has been previously given by [BJS08], who showed a displacement rank-k Toeplitz-like matrix can be multiplied by an matrix in operations. Via blocking, this would imply a bound (for ) when multiplying a displacement rank-k matrix by an matrix. Since the exponent of rectangular matrix multiplication is convex, their algorithm is slower than Theorem 4.2 for . We obtain Theorem 4.2 by reanalyzing their algorithm using rectangular matrix multiplication and also analyze the case .
4.1 Toeplitz-like Matrix Products
Toeplitz matrices can be multiplied efficiently using fast Fourier transform, i.e., polynomial multiplication (see, e.g., [GVL13]). We state the following two lemmas because we require the precise details about the indexing.
Lemma 4.3. Let U be an upper triangular Toeplitz-matrix for vector , i.e.,
Let be some vector. Define polynomials and . Then
We remark that polynomial is defined in reverse order compared to vector , and that the output polynomial is also in reverse order of vector .
Proof. We have . Thus, the coefficient of collects all terms with , i.e., it equals .
Lemma 4.4. Let U be a lower triangular Toeplitz-matrix for vector , i.e.,
Let be some vector. Define , . Then, for ,
where means to read the coefficient of .
We remark that polynomials are defined in reverse order compared to vectors , and that the output polynomial is also in reverse order of vector .
Proof. . So the coefficient of collects all terms with , i.e., it equals .
Just like Toeplitz matrices, Toeplitz-like matrices can also be multiplied efficiently via fast Fourier transform. The following Lemma 4.5 states that connection formally. It shows how, when we are given the generators U, V of some Toeplitz-like matrix A, the product AB can be computed via polynomial multiplication.
Lemma 4.5. Let , and let be generators of a Toeplitz-like matrix , i.e., , with the down-shift matrix. Define , , entrywise by
i.e., stem from interpreting the ith columns of and the jth column of as polynomials, though the coefficient order is reversed for u and b. Then
where means to read the coefficient of , and the mod is applied entrywise to the polynomial matrix .
Proof. We have and thus . Repeatedly substituting results in
because . Interpreting as a sum of outer products, we can write
The last step uses that shifts vectors down by . Now consider multiplying vector from the right, which requires computing for each the following matrix vector products
These products and can be performed via Lemma 4.3 (upper triangular) and Lemma 4.4 (lower triangular), respectively. Since polynomial represents column in reversed order, by Lemma 4.3 the coefficients of in the product correspond precisely to the vector in reverse order. Since we defined polynomial in reverse order and vector is given as a polynomial in reverse order, this matches exactly the orders needed to compute via Lemma 4.4. Thus the product is given by , i.e., for all we have
Computing the -th column of thus reduces to computing . Therefore, the full product reduces to computing .
The main difficulty in computing in Lemma 4.5 is that the modulo operation enforces multiplication from right to left. To see why that is an issue, consider the case where there is no modulo. Then we could use associativity and compute from left to right.
Left-to-right (if there were no modulo): The first product is a dot-product and computable in time because have degree . Then multiplying by takes another time.
Right-to-left (enforced by modulo): Because of the modulo, the multiplication order must be right to left: , where results in a polynomial matrix of degree at most 2n. Thus multiplying with then takes time.
The following Lemma 4.6 allows us to remove the modulo, allowing us to use associativity, at the cost of needing several smaller polynomial products.
Lemma 4.6 ([BJS08, Lemma 12]). Given polynomials with , define as follows:
and likewise define . Then for n a power of 2,
Getting rid of the modulo operation allows us to use associativity, leading to the following corollary:
Corollary 4.7. Given polynomials and a power of two, we have
We can now prove Theorem 4.2. Recall that it states we can multiply a displacement rank-k matrix by an matrix in operations.
Proof of Theorem 4.2. First, observe , so the generators of are also the generators of . In particular, by , the product can be done in the same time complexity as , which is the same time complexity as computing . So for the remainder of the proof, let us focus on computing .
Further, let us assume that n is a power of 2, as otherwise we can simply add 0-columns and rows, which increases the complexity by at most a constant factor.
By Lemma 4.5 it suffices to compute for and . Consider computing the -th column of that product.
(Corollary 4.7)
where we define and for , , , i.e., and , both of degree .
So to compute , we need to compute for all . Here , have degrees at most , but has degree at most . To balance that, we express as
i.e., each polynomial in is split into polynomials of degree and then we stack them on top of each other, resulting in . We must now compute
There are two options for computing this product: multiplying right-to-left or left-to-right, which have different time complexities.
Option 1: right-to-left If we multiply from right to left, we have time complexity
This complexity is increasing for increasing due to (i.e., perform a matrix product by splitting it into 2 smaller products) and thus . Note that the final product by a length- vector of monomials is essentially reverting the polynomial split, so it takes negligible time.
We use option 1 for all where . Since the complexity increases for increasing , the complexity is bounded by the largest , i.e.,
Option 2: left-to-right If we first multiply and then multiply by , then the time complexity is
Since we can reorder the arguments, only one of the two terms above dominates, depending on whether or is larger. Assume for now without loss of generality that (otherwise switch and in the analysis below). We use option 2 only when , so we can write for . Next, we write
where is the complexity exponent of multiplying a matrix by a matrix. It is known that this exponent is a convex function [LR83], so we can bound the exponent by
where the first step uses convexity, the second step uses , and step three uses that the sum of the two largest arguments. Thus when then the time complexity of option 2 is bounded by
For the case that , the complexity of option 2 is bounded by (switch all and in the above analysis).
Overall complexity By choosing option 1 when and option 2 when , the time complexity for each is bounded by
Proof of Theorem 4.1. Let and likewise be the generators of A and B. Then we have
Next, we use that , and plug in , to get
So we have our new generators for the matrix product .
Time Complexity A matrix-vector product with A or B takes and time, respectively, by Theorem 4.2, allowing us to compute and .
We can compute and in time using Theorem 4.2. This is because has displacement rank and has columns. Likewise, has displacement rank and has columns.
5 Updating the Frobenius Form
In this section, we present the algorithm for maintaining the Frobenius form under low-rank updates (Theorem 1.3). For the prior dynamic algebraic primitive of matrix inverse, this was known via the Woodbury identity. We now show an equivalent for our new primitive, the Frobenius form. In the context of dynamic algorithms, we will use this result in Section 6 to reset our data structure after every k updates.
Theorem 5.1 (Theorem 1.3, Low-rank update to Frobenius form). Given are the Frobenius form of , where are explicitly given, and matrices . Assuming all prefix updates (i.e., using only the first columns of ) for are generic, we can compute w.h.p. the new Frobenius form
in operations. Here , are explicitly computed.
Proof and Section outline: To prove Theorem 5.1, we first reduce the problem of computing the Frobenius form of to computing the Frobenius form of for some . The latter is much easier to handle.
Let and suppose we have an update . We have
Thus after computing , , we now have a rank-k update to the companion matrix . We compute the Frobenius form
\mathbf{C}+\mathbf{U}^{\prime}\mathbf{V}^{\prime}^{\top}=\mathbf{K}^{\prime}\mathbf{C}^{\prime}\mathbf{K}^{\prime}^{-1}.Then we have
\mathbf{A}+\mathbf{U}\mathbf{V}^{\top}=\mathbf{K}(\mathbf{C}+\mathbf{K}^{-1}\mathbf{U}\mathbf{V}^{\top}\mathbf{K})\mathbf{K}^{-1}=(\mathbf{K}\mathbf{K}^{\prime})\mathbf{C}^{\prime}(\mathbf{K}^{\prime}^{-1}\mathbf{K}^{-1}).So we get our new Frobenius form for by (i) computing , , (ii) computing the Frobenius form of , and (iii) multiplying and .
Here (i) is done with rectangular matrix multiplication, and (iii) uses the fact that and have low displacement rank, so we can compute the product via the algorithms from Section 4.
So the only remaining task is (ii), computing the Frobenius form of . We do this via a divide-and-conquer approach. In Section 5.1 we handle the base case where , specify a rank-1 update, i.e., , are a single column vector each. In Section 5.2 we extend the result to rank-k updates via recursion. There, we also combine everything to prove Theorem 5.1.
5.1 Rank-1 Update to Companion Matrix
We start by giving an algorithm for computing the Frobenius form of a matrix where is a companion matrix.
Lemma 3.5 (Frobenius Form of Companion Matrix + rank-1). Let be a companion matrix and let be such that is generic with cyclic (e.g., a uniformly random vector by Lemma 2.2). Then we can compute w.h.p. the Frobenius form
where matrices and are Toeplitz-like with displacement ranks and , respectively. In particular, , are not explicitly computed but we return the generators , , , of and . The time complexity is .
Proof. Let us start by computing , the companion matrix of . To compute it, we need the characteristic polynomial of .
Computing characteristic polynomial Applying the determinant lemma to leads to
Note that the characteristic polynomial of is given by the last column of , since it is a generic companion matrix.
Now the main computational task is to compute . Here
Further, we know that and are degree polynomials, so it suffices to compute up to degree . Next,
where for all can be computed in time since is a companion matrix (Lemma 3.1). Thus we can compute the new characteristic polynomial in time.
Computing generators of K Matrix K is given by .
Write (i.e., the th column of ) and using we get for
So every column of for is a linear combination of and (and for the first column). Thus is a rank matrix, meaning has displacement rank . Further, generators of are given by and
Here and can be computed for all by computing the polynomials
since . To compute this efficiently in operations, we use the Sherman-Morrison identity, focusing on the pair (the pair works analogously).
As all computations are performed modulo , the products with are computable in operations via Lemma 3.1 because and is a companion matrix.
Computing generators of Given the generators of , we can get the generators of the inverse in operations via Lemma 3.3. The size of the inverse generators is at most 5, since the generators of have size 3 and Lemma 3.3 increases it by at most 2.
The above proof for Lemma 3.5 made use of Lemma 3.1. We now give its proof.
Lemma 3.1. Given , let where is the shift-down matrix. We can compute for all in operations.
The proof is based on techniques from [BM21].
Proof. Observe that . So to compute for all we can compute and read off the coefficients of that polynomial. All remaining calculations in this proof are done modulo , i.e., over the ring .
We define ; thus, , implying for any
Here, we assume . Below, for convenience, we also set and for . Unrolling the recursion yields
which for i = n gives
with the division being performed modulo , allowing us to compute this in time.
Plugging this into our desired calculation yields
Above, in the last step, we unrolled the recurrence. Note that the inner sums are convolutions of u, v and u, c and can be computed for all at once in via fast Fourier transform [CK91]. Multiplying by and adding the polynomials is also bounded by operations.
5.2 Low-Rank Update
Section 5.1 considered computing the Frobenius form of . We now generalize it to . The following Lemma 5.2 is proven via divide-and-conquer, where Lemma 3.5 from Section 5.1 forms the base case.
Lemma 5.2. Let be a companion matrix and let such that all prefix updates (i.e., using only the first columns of ) for are generic. Then we can compute w.h.p. the Frobenius form
where matrices are Toeplitz-like with displacement rank . In particular, are not explicitly computed but we return the generators of and . The time complexity is .
Proof. We solve this via divide-and-conquer, splitting the rank-k update in half. We may assume k is a power of two by appending 0 columns to U and V. This increases the time complexity by only a constant factor.
Base Case: When , we simply use Lemma 3.5. It runs in time and returns generators for with displacement rank .
Recursion: Let , , so a rank-k update becomes two rank-k/2 updates. We can compute via recursion:
Perform rank-k/2 update to
compute .
Perform rank-k/2 update to
compute .
Compute
and .
.
Note that the prefix genericity property is guaranteed in the recursive calls by the fact that genericity is invariant under similarity. Here computing , takes operations via Theorem 4.2 because by the inductive hypothesis , have displacement rank , and , have columns. Computing , takes operations via Theorem 4.1 because , , , have displacement rank at most . Further, , have displacement rank , so the claimed bound in Lemma 5.2 holds.
Time Complexity The time complexity of this recursive algorithm is described by and , leading to as .
We now have all the tools available to prove Theorem 5.1, i.e., the low-rank update to Frobenius forms.
Theorem 5.1 (Theorem 1.3, Low-rank update to Frobenius form). Given are the Frobenius form of , where are explicitly given, and matrices . Assuming all prefix updates (i.e., using only the first columns of ) for are generic, we can compute w.h.p. the new Frobenius form
in operations. Here , are explicitly computed.
Proof. First, observe that
(\mathbf{A}+\mathbf{U}\mathbf{V}^{\top})=\mathbf{K}(\mathbf{C}+\underbrace{\mathbf{K}^{-1}\mathbf{U}\mathbf{V}^{\top}\mathbf{K}}_{=:\mathbf{U}^{\prime}}=\mathbf{V}^{\prime}^{\top})\mathbf{K}^{-1}.Computing , takes operations. Since genericity is invariant under similarity, the prefix update property is preserved for and the rank-k update . So we can apply Lemma 5.2 to compute the Frobenius form of in operations and obtain
We can compute and in operations via Theorem 4.2. , have displacement rank and we have their generators by Lemma 5.2.
6 Dynamic Algorithms
In this section, we prove our main results: Theorem 1.1 (dynamic distances) and the algebraic equivalent Theorem 1.2 (dynamic matrix powers). We also prove the other results from Section 1.1 (Theorems 1.4 and 1.5).
Theorem 1.1. Let be a directed unweighted graph. There is a Monte Carlo randomized dynamic data structure maintaining subject to edge insertions and deletions, and supporting st-distance queries for any . For a tradeoff parameter , the update time is and query time is . The produced answers are correct with high probability . The data structure uses space.
We first prove the algebraic result in Section 6.1. Then in Section 6.2 we prove our graph results by reducing them to our algebraic data structures.
6.1 Dynamic Matrix Powers and Frobenius Form
We start by proving our dynamic algorithm for maintaining matrix powers via dynamic Frobenius form.
Theorem 1.2. Let . There is a Monte Carlo randomized dynamic data structure maintaining subject to single-element updates and supporting queries that return, for any , all for . Provided the matrix remains generic throughout all updates, the update time is and query time is , where can be chosen freely. The produced answers are correct with high probability. The data structure uses space.
This is update and query time for and bounds from .
Calculation: We write . Via convexity of we can bound where the bounds come from . Thus, the update time is .
Proof. We compute the Frobenius form during initialization in operations [Kel85]. We maintain it in implicit form
where are the transforms from the initialization (or reset), are matrices with displacement rank , and we have their generators.
Update For an entry update that adds to position , we have
We can compute in time because we just take a column of and multiply it with a displacement rank matrix via Theorem 4.2. The same holds for but taking a row of .
We can now apply Lemma 3.5 to get and in operations with
We multiply and in via Theorem 4.1 because they have displacement rank and . Then set .
I.e., with probability at least over updates for a chosen constant (dependent on ).
Query Given i, j, we want to compute for all
Here and are a row and a column, respectively, and thus they can be read from memory in time. The product of these vectors with and takes time because have displacement rank and their generators are stored. At last, we can compute the product of the vectors with for all in time using Lemma 3.1. In total, the query time is thus .
Reset Every updates, we reset and use Theorem 5.1 to obtain a new Frobenius form, interpreting the past updates as a rank update. The genericity requirement of Theorem 5.1 is given since those are precisely the states of matrix over the past updates. This takes operations. The amortized update time is thus
This can be made worst-case via standard techniques (e.g., [ACK17, BNS19]).
Space Throughout, the algorithm stored A, K, , C and the generators of T, . The explicit matrices need space and the generators use space.
Proof of Theorem 1.5. Observe that by Definition 2.1, the matrix C of the Frobenius form corresponds to the characteristic polynomial. Thus, the proof above for Theorem 1.2, which maintains the Frobenius form, directly implies that we also maintain the characteristic polynomial.
If we want to support a single batch update rather than a sequence of updates, the following theorem is more efficient. This result will be used for sensitivity distance oracles.
Theorem 6.1. We can preprocess a generic matrix in operations. Then, given a batch of entry updates such that applying each prefix of these updates keeps the matrix generic, we can process it in operations. Finally, we can support queries that w.h.p. for any in operations return all for . The data structure uses space.
Proof. During initialization we compute the Frobenius form
Batch Update Then, when a batch of entry updates is given, we encode it using matrices that have only one non-zero entry per column. That is, represents the batch of entry updates.
Next, we have
where we can compute and in time, since they are just columns of and rows of . We compute the Frobenius form of
in via Lemma 5.2. Here, we use the fact that all prefix updates of preserve genericity.
Query When receiving i, j, we have
where and are computable in operations, as we just read a row/column of and then multiply with a displacement rank-k matrix via Theorem 4.2. Then computing the product with for all takes operations via Lemma 3.1. Thus we obtain for all in operations.
6.2 Dynamic and Sensitivity Distances via Dynamic Matrix Powers
In this section, we explain how Theorems 1.1 and 1.4 follow from Theorems 1.2 and 6.1, respectively. It is well-known that the powers of a standard adjacency matrix representation of a directed graph encode distances. However, an adjacency matrix is not necessarily generic. To make use of the algebraic algorithms and data structures developed in this paper in distance problems, we refer to the following result of [KS23].
Theorem 6.2 ([KS23, Theorem 7.1]). Let be an unweighted directed graph with vertices. Let be a weighted adjacency matrix obtained as follows. Let be a collection of random elements of , sampled uniformly and independently. Define:
Then, with probability :
(1) is generic,
(2) For all and , if and only if there exists a path in of length at most .
We can now prove our main dynamic graph results.
Theorem 1.1. Let be a directed unweighted graph. There is a Monte Carlo randomized dynamic data structure maintaining subject to edge insertions and deletions, and supporting st-distance queries for any . For a tradeoff parameter , the update time is and query time is . The produced answers are correct with high probability . The data structure uses space.
Proof. Suppose we want to support updates to so that the produced query answers are all correct with high probability, that is, with probability at least for some desired constant . Let denote the subsequent versions of .
Let the field be of poly(n) size, where the polynomial will be chosen later. Let a collection of field elements be sampled as described in Theorem 6.2. Note that as long as the performed updates are independent of the sampled values, the same collection guarantees the desired properties (1) and (2) of Theorem 6.2 for weighted adjacency matrices of all graph versions . That is, the matrices obtained from are all generic, and their powers encode distances in the evolving graph with probability at least . If we pick for a prime number , we get the desired success probability.
I.e., with probability at least over updates for a chosen constant (dependent on ).
The required independence of updates and sampled values holds for any output-adaptive adversary, since we return the distance which is a deterministically defined property.
The data structure starts by sampling a collection X of Theorem 6.2. The sampled values are fixed for the entire operation of the data structure. Then, the weighted adjacency matrix of Theorem 6.2 is set up using X, and a dynamic matrix powers data structure of Theorem 1.2 is initialized. Observe that updating the matrix upon insertion or deletion of an edge uv requires only changing a single element . As a result, updating costs time. By Theorem 6.2, an st-distance query about the current graph G can be answered, with high probability, by inspecting the values . By Theorem 1.2, these values can be computed using in time. Note that the required independence of X and the updates is guaranteed since our graph data structures only reveal distance information encoded in a specific graph version itself, excluding the randomness behind the choice of X, except perhaps in the low-probability event of failure. Theorem 1.1 follows.
Our result for sensitivity distance oracles follows the same overall method, but rather than a sequence of updates, we perform a single batch update.
Theorem 1.4. Let be a directed unweighted graph. We can preprocess in time to enable the following. Given a batch of failed edges , we can process in time, so that queries about st-distances in are supported in time for any . The produced answers are correct with high probability. The data structure uses space.
Proof. To obtain Theorem 1.4, we proceed similarly to the dynamic setting in Theorem 1.1, exploiting the fact that the sample X can be reused for many different graph versions. We set up a data structure D of Theorem 6.1 for the initial matrix . To enable efficient distance access in the graph obtained by applying a batch of k edge updates to G, we issue the corresponding k-element update to D. Note that the prefix-genericity property required by Theorem 6.1 can be guaranteed with high probability analogously to the proof of Theorem 1.1: if we impose an arbitrary order on the k edge updates, we can view the prefix updates as k intermediate graph versions. Hence, at the cost of batch-preprocessing time, we can access the elements in time for any . Again, Theorem 6.2 implies that an st-distance query in can be answered in time with high probability.
AI Disclosure
When asked for a rank-k update for the Frobenius form (i.e., as our Theorem 1.3), GPT-5.2 Pro (February 2026) produced a proof leading to time, making the connection to displacement rank evident. After we became aware of this connection, we proved the more efficient Theorem 1.3 from scratch and developed the dynamic algorithms (e.g., implicit maintenance of Frobenius form).
References
[AB24] Anastasiia Alokhina and Jan van den Brand. Fully dynamic shortest path reporting against an adaptive adversary. In David P. Woodruff, editor, Proceedings of the 2024 ACM-SIAM Symposium on Discrete Algorithms, SODA 2024, Alexandria, VA, USA, January 7-10, 2024, pages 3027–3039. SIAM, 2024.
[ACK17] Ittai Abraham, Shiri Chechik, and Sebastian Krinninger. Fully dynamic all-pairs shortest paths with worst-case update-time revisited. In Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2017, Barcelona, Spain, January 16-19, 2017, pages 440–452. SIAM, 2017.
[ACT14] Ittai Abraham, Shiri Chechik, and Kunal Talwar. Fully dynamic all-pairs shortest paths: Breaking the o(n) barrier. In Klaus Jansen, José D. P. Rolim, Nikhil R. Devanur, and Cristopher Moore, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, APPROX/RANDOM 2014, Barcelona, Spain, September 4-6, 2014, volume 28 of LIPIcs, pages 1–16. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2014.
[ADK 16] Ittai Abraham, David Durfee, Ioannis Koutis, Sebastian Krinninger, and Richard Peng. On fully dynamic graph sparsifiers. In Irit Dinur, editor, IEEE 57th Annual Symposium on Foundations of Computer Science, FOCS 2016, Hyatt Regency, New Brunswick, New Jersey, USA, October 9-11, 2016, pages 335–344. IEEE Computer Society, 2016.
[ADV 25] Josh Alman, Ran Duan, Virginia Vassilevska Williams, Yinzhan Xu, Zixuan Xu, and Renfei Zhou. More asymmetry yields faster matrix multiplication. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2025, New Orleans, LA, USA, January 12-15, 2025, pages 2005–2039. SIAM, 2025.
[AGM97] Noga Alon, Zvi Galil, and Oded Margalit. On the exponent of the all pairs shortest path problem. J. Comput. Syst. Sci., 54(2):255–262, 1997.
[AIMN91] Giorgio Ausiello, Giuseppe F. Italiano, Alberto Marchetti-Spaccamela, and Umberto Nanni. Incremental algorithms for minimal length paths. J. Algorithms, 12(4):615–638, 1991.
[AS25] Deeksha Adil and Thatchaphol Saranurak. Decremental -approximate maximum eigenvector: Dynamic power method. In Keren Censor-Hillel, Fabrizio Grandoni, Joël Ouaknine, and Gabriele Puppis, editors, 52nd International Colloquium on Automata, Languages, and Programming, ICALP 2025, Aarhus, Denmark, July 8-11, 2025, volume 334 of LIPIcs, pages 6:1–6:19. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2025.
[AV14] Amir Abboud and Virginia Vassilevska Williams. Popular conjectures imply strong lower bounds for dynamic problems. In 55th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2014, Philadelphia, PA, USA, October 18-21, 2014, pages 434–443. IEEE Computer Society, 2014.
[BCC 24] Davide Bilò, Shiri Chechik, Keerti Choudhary, Sarel Cohen, Tobias Friedrich, and Martin Schirneck. Improved distance (sensitivity) oracles with subquadratic space. In 65th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2024, Chicago, IL, USA, October 27-30, 2024, pages 1550–1558. IEEE, 2024.
[BCK 24] Jan van den Brand, Li Chen, Rasmus Kyng, Yang P. Liu, Simon Meierhans, Maximilian Probst Gutenberg, and Sushant Sachdeva. Almost-linear time algorithms for incremental graphs: Min-cost flow and more via duality. In 65th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2024, Chicago, IL, USA, October 27-30, 2024, pages 2010–2032. IEEE, 2024.
[Ber09] Aaron Bernstein. Fully dynamic approximate all-pairs shortest paths with fast query and close to linear update time. In 50th Annual IEEE Symposium on Foundations of Computer Science, FOCS 2009, Atlanta, Georgia, USA, October 25-27, 2009, pages 693–702. IEEE Computer Society, 2009.
[Ber16] Aaron Bernstein. Maintaining shortest paths under deletions in weighted directed graphs. SIAM J. Comput., 45(2):548–574, 2016. Announced at STOC'13.
[BFH21] Aaron Bernstein, Sebastian Forster, and Monika Henzinger. A deamortization approach for dynamic spanner and dynamic maximal matching. ACM Trans. Algorithms, 17(4):29:1–29:51, 2021.
[BFN22] Jan van den Brand, Sebastian Forster, and Yasamin Nazari. Fast deterministic fully dynamic distance approximation. In 63rd IEEE Annual Symposium on Foundations of Computer Science, FOCS 2022, Denver, CO, USA, October 31 - November 3, 2022, pages 1011–1022. IEEE, 2022.
[BGS20] Aaron Bernstein, Maximilian Probst Gutenberg, and Thatchaphol Saranurak. Deterministic incremental reachability, scc, and shortest paths via directed expanders and congestion balancing. In Sandy Irani, editor, 61st IEEE Annual Symposium on Foundations of Computer Science, FOCS 2020, Durham, NC, USA, November 16-19, 2020, pages 1123–1134. IEEE, 2020.
[BGS21] Aaron Bernstein, Maximilian Probst Gutenberg, and Thatchaphol Saranurak. Deterministic incremental SSSP and approximate min-cost flow in almost-linear time. In FOCS, pages 1000–1008. IEEE, 2021.
[BGW20] Aaron Bernstein, Maximilian Probst Gutenberg, and Christian Wulff-Nilsen. Near-optimal incremental SSSP in dense weighted digraphs. In FOCS, pages 1112–1122. IEEE, 2020.
[BHG 21] Thiago Bergamaschi, Monika Henzinger, Maximilian Probst Gutenberg, Virginia Vassilevska Williams, and Nicole Wein. New techniques and fine-grained hardness for dynamic near-additive spanners. In Dániel Marx, editor, Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms, SODA 2021, Virtual Conference, January 10 - 13, 2021, pages 1836–1855. SIAM, 2021.
[BHS07] Surender Baswana, Ramesh Hariharan, and Sandeep Sen. Improved incremental algorithms for maintaining transitive closure and all-pairs shortest paths. J. Algorithms, 62(2):74–92, 2007.
[BJS08] Alin Bostan, Claude-Pierre Jeannerod, and Éric Schost. Solving structured linear systems with large displacement rank. Theor. Comput. Sci., 407(1-3):155–181, 2008.
[BK09] Aaron Bernstein and David R. Karger. A nearly optimal oracle for avoiding failed vertices and edges. In Michael Mitzenmacher, editor, Proceedings of the 41st Annual
ACM Symposium on Theory of Computing, STOC 2009, Bethesda, MD, USA, May 31 - June 2, 2009, pages 101–110. ACM, 2009.
[BK23] Jan van den Brand and Adam Karczmarz. Deterministic fully dynamic SSSP and more. In 64th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2023, Santa Cruz, CA, USA, November 6-9, 2023, pages 2312–2321. IEEE, 2023.
[BM21] Alin Bostan and Ryuhei Mori. A simple and fast algorithm for computing the N-th term of a linearly recurrent sequence. In Hung Viet Le and Valerie King, editors, 4th Symposium on Simplicity in Algorithms, SOSA 2021, Virtual Conference, January 11-12, 2021, pages 118–132. SIAM, 2021.
[BN19] Jan van den Brand and Danupon Nanongkai. Dynamic approximate shortest paths and beyond: Subquadratic and worst-case update time. In David Zuckerman, editor, 60th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2019, Baltimore, Maryland, USA, November 9-12, 2019, pages 436–455. IEEE Computer Society, 2019.
[BNS19] Jan van den Brand, Danupon Nanongkai, and Thatchaphol Saranurak. Dynamic matrix inverse: Improved algorithms and matching conditional lower bounds. In David Zuckerman, editor, 60th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2019, Baltimore, Maryland, USA, November 9-12, 2019, pages 456–480. IEEE Computer Society, 2019.
[Bra] Jan van den Brand. Complexity term balancer. jvdbrand.com/complexity/. Tool to balance complexity terms depending on fast matrix multiplication.
[Bra20] Jan van den Brand. A deterministic linear program solver in current matrix multiplication time. In Shuchi Chawla, editor, Proceedings of the 2020 ACM-SIAM Symposium on Discrete Algorithms, SODA 2020, Salt Lake City, UT, USA, January 5-8, 2020, pages 259–278. SIAM, 2020.
[Bra21] Jan van den Brand. Unifying matrix data structures: Simplifying and speeding up iterative algorithms. In Hung Viet Le and Valerie King, editors, 4th Symposium on Simplicity in Algorithms, SOSA 2021, Virtual Conference, January 11-12, 2021, pages 1–13. SIAM, 2021.
[BS19] Jan van den Brand and Thatchaphol Saranurak. Sensitive distance and reachability oracles for large batch updates. In David Zuckerman, editor, 60th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2019, Baltimore, Maryland, USA, November 9-12, 2019, pages 424–435. IEEE Computer Society, 2019.
[CC20] Shiri Chechik and Sarel Cohen. Distance sensitivity oracles with subcubic preprocessing time and fast query time. In Konstantin Makarychev, Yury Makarychev, Madhur Tulsiani, Gautam Kamath, and Julia Chuzhoy, editors, Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, STOC 2020, Chicago, IL, USA, June 22-26, 2020, pages 1375–1388. ACM, 2020.
[Che18] Shiri Chechik. Near-optimal approximate incremental all pairs shortest paths. In 59th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2018, Paris, France, October 7-9, 2018, pages 170–181. IEEE Computer Society, 2018.
[Chu21] Julia Chuzhoy. Decremental all-pairs shortest paths in deterministic near-linear time. In STOC, pages 626–639. ACM, 2021.
[CK91] David G. Cantor and Erich Kaltofen. On fast multiplication of polynomials over arbitrary algebras. Acta Informatica, 28(7):693–701, 1991.
[CLS21] Michael B. Cohen, Yin Tat Lee, and Zhao Song. Solving linear programs in the current matrix multiplication time. J. ACM, 68(1):3:1–3:39, 2021.
[CZ23a] Shiri Chechik and Tianyi Zhang. Faster deterministic worst-case fully dynamic all-pairs shortest paths via incremental hop-restricted shortest paths. In Proceedings of the 2023 ACM-SIAM Symposium on Discrete Algorithms, SODA 2023, Florence, Italy, January 22-25, 2023, pages 87–99. SIAM, 2023.
[CZ23b] Julia Chuzhoy and Ruimin Zhang. A new deterministic algorithm for fully dynamic all-pairs shortest paths. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, STOC 2023, Orlando, FL, USA, June 20-23, 2023, pages 1159–1172. ACM, 2023.
[DFNdV24] Michal Dory, Sebastian Forster, Yasamin Nazari, and Tijn de Vos. New tradeoffs for incremental approximate all-pairs shortest paths. In 51st International Colloquium on Automata, Languages, and Programming, ICALP 2024, July 8-12, 2024, Tallinn, Estonia, volume 297 of LIPIcs, pages 58:1–58:19. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2024.
[DG24] Dipan Dey and Manoj Gupta. Nearly optimal fault tolerant distance oracle. In Bojan Mohar, Igor Shinkar, and Ryan O'Donnell, editors, Proceedings of the 56th Annual ACM Symposium on Theory of Computing, STOC 2024, Vancouver, BC, Canada, June 24-28, 2024, pages 944–955. ACM, 2024.
[DI04] Camil Demetrescu and Giuseppe F. Italiano. A new approach to dynamic all pairs shortest paths. J. ACM, 51(6):968–992, 2004.
[DI05] Camil Demetrescu and Giuseppe F. Italiano. Trade-offs for fully dynamic transitive closure on dags: breaking through the barrier. J. ACM, 52(2):147–156, 2005.
[DP09] Ran Duan and Seth Pettie. Dual-failure distance and connectivity oracles. In Claire Mathieu, editor, Proceedings of the Twentieth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2009, New York, NY, USA, January 4-6, 2009, pages 506–515. SIAM, 2009.
[DZ17] Ran Duan and Tianyi Zhang. Improved distance sensitivity oracles via tree partitioning. In Faith Ellen, Antonina Kolokolova, and Jörg-Rüdiger Sack, editors, Algorithms and Data Structures - 15th International Symposium, WADS 2017, St. John's, NL, Canada, July 31 - August 2, 2017, Proceedings, volume 10389 of Lecture Notes in Computer Science, pages 349–360. Springer, 2017.
[EFGW21] Jacob Evald, Viktor Fredslund-Hansen, Maximilian Probst Gutenberg, and Christian Wulff-Nilsen. Decremental APSP in unweighted digraphs versus an adaptive adversary. In 48th International Colloquium on Automata, Languages, and Programming, ICALP 2021, Glasgow, Scotland (Virtual Conference), July 12-16, 2021, volume 198 of LIPIcs, pages 64:1–64:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2021.
[ES81] Shimon Even and Yossi Shiloach. An on-line edge-deletion problem. J. ACM, 28(1):1–4, 1981.
[FGH21] Sebastian Forster, Gramoz Goranci, and Monika Henzinger. Dynamic maintenance of low-stretch probabilistic tree embeddings with applications. In Dániel Marx, editor, Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms, SODA 2021, Virtual Conference, January 10 - 13, 2021, pages 1226–1245. SIAM, 2021.
[FGNS23] Sebastian Forster, Gramoz Goranci, Yasamin Nazari, and Antonis Skarlatos. Bootstrapping dynamic distance oracles. In Inge Li Gørtz, Martin Farach-Colton, Simon J. Puglisi, and Grzegorz Herman, editors, 31st Annual European Symposium on Algorithms, ESA 2023, Amsterdam, The Netherlands, September 4-6, 2023, volume 274 of LIPIcs, pages 50:1–50:16. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2023.
[FIS97] Stephen H Friedberg, Arnold J Insel, and Lawrence E Spence. Linear algebra. Prentice Hall, 1997.
[FNG23] Sebastian Forster, Yasamin Nazari, and Maximilian Probst Gutenberg. Deterministic incremental APSP with polylogarithmic update time and stretch. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, STOC 2023, Orlando, FL, USA, June 20-23, 2023, pages 1173–1186. ACM, 2023.
[FS11] Gudmund Skovbjerg Frandsen and Piotr Sankowski. Dynamic normal forms and dynamic characteristic polynomial. Theor. Comput. Sci., 412(16):1470–1483, 2011.
[Gan00] F.R. Gantmakher. The Theory of Matrices. Number t. 1 in AMS Chelsea Publishing Series. Chelsea Publishing Company, 2000.
[GR21] Yong Gu and Hanlin Ren. Constructing a distance sensitivity oracle in time. In Nikhil Bansal, Emanuela Merelli, and James Worrell, editors, 48th International Colloquium on Automata, Languages, and Programming, ICALP 2021, Glasgow, Scotland (Virtual Conference), July 12-16, 2021, volume 198 of LIPIcs, pages 76:1–76:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2021.
[GV20] Fabrizio Grandoni and Virginia Vassilevska Williams. Faster replacement paths and distance sensitivity oracles. ACM Trans. Algorithms, 16(1):15:1–15:25, 2020.
[GVL13] Gene H Golub and Charles F Van Loan. Matrix computations. JHU press, 2013.
[GW20] Maximilian Probst Gutenberg and Christian Wulff-Nilsen. Fully-dynamic all-pairs shortest paths: Improved worst-case time and space bounds. In Proceedings of the 2020 ACM-SIAM Symposium on Discrete Algorithms, SODA 2020, Salt Lake City, UT, USA, January 5-8, 2020, pages 2562–2574. SIAM, 2020.
[GWW20] Maximilian Probst Gutenberg, Virginia Vassilevska Williams, and Nicole Wein. New algorithms and hardness for incremental single-source shortest paths in directed graphs. In STOC, pages 153–166. ACM, 2020.
[HJ12] Roger A Horn and Charles R Johnson. Matrix analysis. Cambridge university press, 2012.
[HKN14] Monika Henzinger, Sebastian Krinninger, and Danupon Nanongkai. Sublinear-time incremental algorithms for single-source reachability and shortest paths on directed graphs. In STOC, pages 674–683. ACM, 2014.
[HKNS15] Monika Henzinger, Sebastian Krinninger, Danupon Nanongkai, and Thatchaphol Saranurak. Unifying and strengthening hardness for dynamic problems via the online matrix-vector multiplication conjecture. In STOC, pages 21–30. ACM, 2015.
[HLS24] Bernhard Haeupler, Yaowei Long, and Thatchaphol Saranurak. Dynamic deterministic constant-approximate distance oracles with worst-case update time. In 65th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2024, Chicago, IL, USA, October 27-30, 2024, pages 2033–2044. IEEE, 2024.
[JKL 20] Haotian Jiang, Tarun Kathuria, Yin Tat Lee, Swati Padmanabhan, and Zhao Song. A faster interior point method for semidefinite programming. In Sandy Irani, editor, 61st IEEE Annual Symposium on Foundations of Computer Science, FOCS 2020, Durham, NC, USA, November 16-19, 2020, pages 910–918. IEEE, 2020.
[Kel85] Walter Keller-Gehrig. Fast algorithms for the characteristic polynomial. Theor. Comput. Sci., 36:309–317, 1985.
[Kin99] Valerie King. Fully dynamic algorithms for maintaining all-pairs shortest paths and transitive closure in digraphs. In 40th Annual Symposium on Foundations of Computer Science, FOCS 1999, New York, NY, USA, October 17-18, 1999, pages 81–91. IEEE Computer Society, 1999.
[KKM79] Thomas Kailath, Sun-Yuan Kung, and Martin Morf. Displacement ranks of matrices and linear equations. Journal of Mathematical Analysis and Applications, 68(2):395–407, 1979.
[KL20] Adam Karczmarz and Jakub Lacki. Simple label-correcting algorithms for partially dynamic approximate shortest paths in directed graphs. In Martin Farach-Colton and Inge Li Görtz, editors, 3rd Symposium on Simplicity in Algorithms, SOSA 2020, Salt Lake City, UT, USA, January 6-7, 2020, pages 106–120. SIAM, 2020.
[KMG22] Rasmus Kyng, Simon Meierhans, and Maximilian Probst Gutenberg. Incremental SSSP for sparse digraphs beyond the hopset barrier. In Proceedings of the 2022 ACM-SIAM Symposium on Discrete Algorithms, SODA 2022, Virtual Conference / Alexandria, VA, USA, January 9 - 12, 2022, pages 3452–3481. SIAM, 2022.
[KMG24] Rasmus Kyng, Simon Meierhans, and Maximilian Probst Gutenberg. A dynamic shortest paths toolbox: Low-congestion vertex sparsifiers and their applications. In Bojan Mohar, Igor Shinkar, and Ryan O'Donnell, editors, Proceedings of the 56th Annual ACM Symposium on Theory of Computing, STOC 2024, Vancouver, BC, Canada, June 24-28, 2024, pages 1174–1183. ACM, 2024.
[KMS22] Adam Karczmarz, Anish Mukherjee, and Piotr Sankowski. Subquadratic dynamic path reporting in directed graphs against an adaptive adversary. In Stefano Leonardi and Anupam Gupta, editors, STOC '22: 54th Annual ACM SIGACT Symposium on Theory of Computing, Rome, Italy, June 20 - 24, 2022, pages 1643–1656. ACM, 2022.
[KS95] Thomas Kailath and Ali H Sayed. Displacement structure: theory and applications. SIAM review, 37(3):297–386, 1995.
[KS02] Valerie King and Garry Sagert. A fully dynamic algorithm for maintaining the transitive closure. J. Comput. Syst. Sci., 65(1):150–167, 2002.
[KS23] Adam Karczmarz and Piotr Sankowski. Sensitivity and dynamic distance oracles via generic matrices and frobenius form. In 64th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2023, Santa Cruz, CA, USA, November 6-9, 2023, pages 1745–1756. IEEE, 2023.
[KS24] Adam Karczmarz and Piotr Sankowski. Fully dynamic shortest paths in sparse digraphs. CoRR, abs/2408.14406, 2024.
[Liu26] Yang P. Liu. Incremental shortest paths in almost linear time via a modified interior point method. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing, STOC 2026, Salt Lake City, UT, USA, June 22-26, 2026, pages 118–127. ACM, 2026.
[LN22] Jakub Lacki and Yasamin Nazari. Near-optimal incremental hopsets with applications. In 49th International Colloquium on Automata, Languages, and Programming, ICALP 2022, Paris, France, July 4-8, 2022, volume 229 of LIPIcs, pages 86:1–86:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2022.
[LR83] Grazia Lotti and Francesco Romani. On the asymptotic complexity of rectangular matrix multiplication. Theoretical Computer Science, 23(2):171–185, 1983.
[LS15] Yin Tat Lee and Aaron Sidford. Efficient inverse maintenance and faster algorithms for linear programming. In Venkatesan Guruswami, editor, IEEE 56th Annual Symposium on Foundations of Computer Science, FOCS 2015, Berkeley, CA, USA, 17-20 October, 2015, pages 230–249. IEEE Computer Society, 2015.
[Mao24] Xiao Mao. Fully dynamic all-pairs shortest paths: Likely optimal worst-case update time. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, STOC 2024, Vancouver, BC, Canada, June 24-28, 2024, pages 1141–1152. ACM, 2024.
[NP95] Peter M Neumann and Cheryl E Praeger. Cyclic matrices over finite fields. Journal of the London Mathematical Society, 52(2):263–284, 1995.
[Ren22] Hanlin Ren. Improved distance sensitivity oracles with subcubic preprocessing time. J. Comput. Syst. Sci., 123:159–170, 2022.
[RZ11] Liam Roditty and Uri Zwick. On dynamic shortest paths problems. Algorithmica, 61(2):389–401, 2011.
[San04] Piotr Sankowski. Dynamic transitive closure via dynamic matrix inverse (extended abstract). In 45th Symposium on Foundations of Computer Science, FOCS 2004, Rome, Italy, October 17-19, 2004, Proceedings, pages 509–517. IEEE Computer Society, 2004.
[San05] Piotr Sankowski. Subquadratic algorithm for dynamic shortest distances. In Lusheng Wang, editor, Computing and Combinatorics, 11th Annual International Conference,
COCOON 2005, Kunming, China, August 16-29, 2005, Proceedings, volume 3595 of Lecture Notes in Computer Science, pages 461–470. Springer, 2005.
[San07] Piotr Sankowski. Faster dynamic matchings and vertex connectivity. In SODA, pages 118–126. SIAM, 2007.
[Sch80] Jacob T. Schwartz. Fast probabilistic algorithms for verification of polynomial identities. J. ACM, 27(4):701–717, 1980.
[SW19] Piotr Sankowski and Karol Wegrzycki. Improved distance queries and cycle counting by frobenius normal form. Theory Comput. Syst., 63(5):1049–1067, 2019.
[Tho04] Mikkel Thorup. Fully-dynamic all-pairs shortest paths: Faster and allowing negative cycles. In Algorithm Theory - SWAT 2004, 9th Scandinavian Workshop on Algorithm Theory, Humlebaek, Denmark, July 8-10, 2004, Proceedings, volume 3111 of Lecture Notes in Computer Science, pages 384–396. Springer, 2004.
[UY91] Jeffrey D. Ullman and Mihalis Yannakakis. High-probability parallel transitive-closure algorithms. SIAM J. Comput., 20(1):100–125, 1991.
[VXXZ24] Virginia Vassilevska Williams, Yinzhan Xu, Zixuan Xu, and Renfei Zhou. New bounds for matrix multiplication: from alpha to omega. In David P. Woodruff, editor, Proceedings of the 2024 ACM-SIAM Symposium on Discrete Algorithms, SODA 2024, Alexandria, VA, USA, January 7-10, 2024, pages 3792–3835. SIAM, 2024.
[WY13] Oren Weimann and Raphael Yuster. Replacement paths and distance sensitivity oracles via fast matrix multiplication. ACM Trans. Algorithms, 9(2):14:1–14:13, 2013.
[Zip79] Richard Zippel. Probabilistic algorithms for sparse polynomials. In Symbolic and Algebraic Computation, EUROSAM '79, An International Symposium on Symbolic and Algebraic Computation, Marseille, France, June 1979, Proceedings, volume 72 of Lecture Notes in Computer Science, pages 216–226. Springer, 1979.
[Zwi02] Uri Zwick. All pairs shortest paths using bridging sets and rectangular matrix multiplication. J. ACM, 49(3):289–317, 2002.