Meeting times on graphs in near-cubic time
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Genomics Radio. Generated commentary on the latest computational biology and genomics papers.
Ines: I'm Ines.
Marcus: And I'm Marcus, here with Yuki.
Ines: We're looking at the paper: "Meeting times on graphs in near-cubic time".
Paper summary: Ines: So, to recap what we just heard about "Meeting times on graphs in near-cubic time," the paper focuses on solving a system of N squared linear equations for the expected meeting time of two random walkers who collide on an undirected graph. The authors point out that the naive approach leads to O of N to the power of six operations >
Marcus: They identify this as a special case of the Poisson equation for an absorbing lazy pair walk with a symmetric source F and a prescribed diagonal h defined by Hij equals hi if i equals j, Fij plus one half summed over k from one to N PikHkj plus one half summed over k from one to N PjkHik if i not equal j >
Ines: The key insight they offer is that this system is almost a Sylvester equation with a diagonal constraint, and they introduce an efficient algorithm that exploits this structure >
Marcus: This leads them to find an exact computation of all N squared meeting times in O of N to the power of four operations and with theta of N squared space for the practical method >
Yuki: That O of N to the power of four scaling is significant because it suggests we can handle these expected time calculations much more efficiently than previous bounds, especially when we consider large population structures or complex social networks >
Ines: The paper also shows that this bound can be improved in theory down to O of N three log two N operations by exploiting a Cauchy structure related to the diagonal correction term >
Marcus: It's interesting because they manage to do this while still using standard dense linear algebra routines for the main steps, even though they mention a theoretical improvement is possible >
Conclusion: Ines: So, looking at "Meeting times on graphs in near-cubic time," the authors successfully showed that you can solve that large system of N squared equations for the lazy pair walk using a method that gets close to cubic time performance in theory >
Marcus: They achieved this by focusing on how to efficiently handle that diagonal constraint, which is what makes it different from solving a regular Sylvester equation, and they derived a linear system to figure out the correction term needed for the diagonal constraint >
Yuki: It’s interesting that they don't need the graph structure like density or spectral gap to work; it just needs to be connected and undirected >
Ines: Exactly because if you are studying evolutionary dynamics, like how traits spread in a population, these meeting times directly help calculate things like fixation probabilities or mean trait frequencies >
Marcus: And this method gives us an O of N cubed log two N theoretical bound, which is way better than the naive O of N to the power of six operations we usually have to deal with for these types of problems >
Yuki: For a population geneticist, that means we can actually compute these probabilities for larger species structures on complex networks without running into impossible memory issues >
Ines: The paper does show that while they get this good theoretical scaling, the practical application often hits an O of N four runtime because forming the initial matrix takes some work >
Marcus: That's a fair point, and I think it’s important to remember that for any given source F and diagonal h, you can use this method to find all those meeting times efficiently enough for many large cohorts >
Yuki: So what does this mean for us? It means we can start asking more complex questions about social behaviors on large networks with the tools to actually compute the necessary timing statistics >
University of North Carolina at Chapel Hill
q-bio.PE, cs.DS
Submitted: 2026-04-20
Updated: 2026-11-30
Comments: 12 pages; final version
Journal ref: J. Math. Biol. 93, 76 (2026)
DOI: 10.1007/s00285-026-02488-x
Code: https://github.com/alexmcavoy/meeting-times
License: http://creativecommons.org/licenses/by/4.0/
Importance score: 81/100
The gist: The expected meeting time of two random walkers on an undirected graph of size N, where at each time step one walker moves and the process stops when they collide…
Key concepts
- Lazy Pair Walk
- This describes the random walk process where two walkers are placed on a graph. At each step, only one walker moves randomly (chosen uniformly), and the process stops immediately if the two walkers collide. This specific type of walk is relevant in studying evolutionary dynamics.
- Sylvester Equation
- This is a standard matrix equation used to find solutions for systems involving products of matrices, specifically $X - 1/2PX - 1/2XP^ op = B$. The paper uses this equation as a framework to solve for the expected meeting times, leveraging known algorithms like Bartels-Stewart.
- Diagonal Correction
- The core idea is that the full problem can be simplified by introducing a diagonal matrix $D$ (containing unknown values $d_i$) into the Sylvester equation. By solving a derived linear system for these diagonal elements, the authors can efficiently incorporate constraints from the original recurrence relation into an otherwise standard Sylvester equation.
Terminology
Summary
The expected meeting time of two random walkers on an undirected graph of size N, where at each time step one walker moves and the process stops when they collide, satisfies a system of (N 2) linear equations. p. 0 Meeting times on graphs in near-cubic time
Alex McAvoy
School of Data Science and Society −→ School of Data and Information Sciences
Department of Mathematics
University of North Carolina at Chapel Hill
Abstract
The expected meeting time of two random walkers on an undirected graph of
size N, where at each time step one walker moves and the process stops when they
collide, satisfies a system of (
N
2
) linear equations. Na¨ıvely, solving this system takes
O
N6
operations. Meeting times on graphs in near-cubic time
Alex McAvoy
School of Data Science and Society −→ School of Data and Information Sciences
Department of Mathematics
University of North Carolina at Chapel Hill
Abstract
The expected meeting time of two random walkers on an undirected graph of
size N, where at each time step one walker moves and the process stops when they
collide, satisfies a system of (
N
2
) linear equations. Na¨ıvely, solving this system takes
O
N6
operations.Where the paper says it
Where the paper says it
Problem Formulation
The expected meeting time τij from starting positions (i, j) satisfies the recurrence relation τij = (0 i = j, 1 + 1/2 ∑ N k=1 Pikτkj + 1/2 ∑ N k=1 Pjkτik i!= j,).<ref:2604.18872#pg3>. This recurrence is a special case of the Poisson equation for the absorbing (lazy) pair walk with symmetric source, F, and prescribed diagonal, h = (h1,. p. 1 which is a linear system of (
N
2
) equations in (
N
2
) unknowns. (1) is a special case of the Poisson equation for the absorbing (lazy) pair walk
with symmetric source, F, and prescribed diagonal, h = (h1, . (1) is a special case of the Poisson equation for the absorbing (lazy) pair walk
with symmetric source, F, and prescribed diagonal, h = (h1, . , hN), defined by
Hij =
(
hi
i = j,
Fij + 1
2 ∑
N
k=1 PikHkj + 1
2 ∑
N
k=1 PjkHik i ̸= j. (1) is a special case of the Poisson equation for the absorbing (lazy) pair walk
with symmetric source, F, and prescribed diagonal, h = (h1, . , hN), defined by
Hij =
(
hi
i = j,
Fij + 1
2 ∑
N
k=1 PikHkj + 1
2 ∑
N
k=1 PjkHik i ̸= j.Where the paper says it
Where the paper says it
Where the paper says it
Algorithmic Approach
The key observation is that a standard Sylvester equation X − 1/2 PX − 1/2 XP⊺ = B can be solved in O(N 3) by the Bartels-Stewart algorithm, because the eigenbasis of P diagonalizes P ⊗ I + I ⊗ P⊺ <ref:2604.18872#pg4>. To obtain a simple matrix equation from Eq. p. 1 2 Algorithm
2. 1 Diagonal extension and symmetrization
To obtain a simple matrix equation from Eq. 1 Diagonal extension and symmetrization
To obtain a simple matrix equation from Eq. (2) that holds on the diagonal as well, we
can introduce a diagonal slack D = diag (d1, . (2) that holds on the diagonal as well, we
can introduce a diagonal slack D = diag (d1, . , dN) and write, for all entries,
H −
1
2
PH −
1
2
HP⊺ = F + D, (3)
subject to Hii = hi
for i = 1, . , dN) and write, for all entries,
H −
1
2
PH −
1
2
HP⊺ = F + D, (3)
subject to Hii = hi
for i = 1, . (3) is now a standard Sylvester equation, which
the diagonal constraint enters via the matrix D being an unknown quantity.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Solving for the Correction
The authors derive a linear system that uniquely determines d by evaluating Eq. (4) along the diagonal and expanding it using properties of the eigenbasis. p. 2 (4) along the diagonal gives
PeHb
ii
+
HbPe
ii
= 2πihi − 2πiFii − 2πidi
. Expanding the left-hand side using PeHb = VΛHbVV
⊺ and HbPe = VHbVΛV
⊺
, we obtain
2πihi − 2πiFii − 2πidi =
N
∑
j,k=1
Vij λj + λk
HbV
jkVik Meeting times on graphs in near-cubic time
Alex McAvoy
School of Data Science and Society −→ School of Data and Information Sciences
Department of Mathematics
University of North Carolina at Chapel Hill
Abstract
The expected meeting time of two random walkers on an undirected graph of
size N, where at each time step one walker moves and the process stops when they
collide, satisfies a system of (
N
2
) linear equations. Na¨ıvely, solving this system takes
O
N6
operations. Therefore, Eq. (12) has a unique solution since M is positive-definite and π ̸= 0. (12) has a unique solution since M is positive-definite and π ̸= 0. Solving
this equation yields values of d1, . Solving
this equation yields values of d1, . , dN, from which we can form DbV for use in Eq.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Complexity and Applications
The theoretical bound of O(N cubed log2 N) relies on fast Cauchy matrix-vector products.<ref:2604.18872#pg5, However, forming the matrix M entry-by-entry directly requires O(N^4) using standard (dense) linear algebra routines >. p. 4 4 Cauchy structure and complexity
Forming the matrix M of Eq. (11) entry-by-entry requires O
N4
using standard (dense)
linear algebra routines. The time for the latter would surpass the
former for large N, but in practice we recommend using the entry-by-entry method. Algorithm 1 works with dense N × N matrices and uses Θ
N2
memory, which is
asymptotically optimal for any algorithm whose output is the full matrix H, sinceWhere the paper says it
Where the paper says it
Evolutionary Dynamics Relevance
The meeting times are applied to evolutionary dynamics, specifically for calculating fixation probabilities and mean trait frequencies.<ref:2604.18872#pg7, The expensive step depends only on the graph, not on the social good >. p. 6 (17) can be evaluated in O
N3
for any choice
of Bij, Cij
. The expensive step depends only on the graph, not on the social good. (2020), meaning if ρA is the fixation
probability of a single producer in a population of non-producers and ρB is the fixation
probability of a single non-producer in a population of producers, then increasing δ from
0 to a small, positive value increases the value of ρA − ρB. Algorithm 1 computes all (
N
2
)
meeting times in O
N4
, after which Eq. Algorithm 1 computes all (
N
2
)
meeting times in O
N4
, after which Eq. (17) can be evaluated in O
N3
for any choice
of Bij, Cij
. For the latter, the lazy pair walk is what
emerges naturally (Allen et al. , 2017; McAvoy and Allen, 2021), and we hope that the
algorithm presented here will be practically useful for studying questions related to the
evolutionary dynamics of social behaviors in larger, heterogeneous populations. For the latter, the lazy pair walk is what
emerges naturally (Allen et al. , 2017; McAvoy and Allen, 2021), and we hope that the
algorithm presented here will be practically useful for studying questions related to the
evolutionary dynamics of social behaviors in larger, heterogeneous populations. The expensive step depends only on the graph, not on the social good. As illustrations, Figures 1 and 2 compute the critical benefit-to-cost ratios on several
empirical networks. computing all (
N
2
) identity-by-state probabilities in O
N4
. Since pairwise identity-bystate probabilities determine the structure coefficients under weak-selection (see Box 1 of
McAvoy and Wakeley (2022)), this also gives an O
N4
algorithm for computing mean
trait frequencies under recurrent mutation on arbitrary weighted graphs. computing all (
N
2
) identity-by-state probabilities in O
N4
. Since pairwise identity-bystate probabilities determine the structure coefficients under weak-selection (see Box 1 of
McAvoy and Wakeley (2022)), this also gives an O
N4
algorithm for computing mean
trait frequencies under recurrent mutation on arbitrary weighted graphs.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Discussion on Structure
The core of the argument is the diagonal correction, since the rest follows from structure exploited by the Bartels-Stewart algorithm.<ref:2604.18872#pg9, The numerical stability of Algorithm 1 is essentially the same as that of the standard Bartels-Stewart algorithm >. p. 8 However, the bottleneck of the
complexity reported here is not in solving this system but in forming it in the first place. The numerical stability of Algorithm 1 is essentially the same as that of the standard
Bartels-Stewart algorithm. The numerical stability of Algorithm 1 is essentially the same as that of the standard
Bartels-Stewart algorithm. The divisors 1 − 1
2
λi − 1
2
λj
in Eq. The divisors 1 − 1
2
λi − 1
2
λj
in Eq. (7) are the eigenvalues of the
Sylvester operator and govern the conditioning of both methods. (7) are the eigenvalues of the
Sylvester operator and govern the conditioning of both methods. The diagonal correction
involves an additional linear system without any new source of ill-conditioning. We note that laziness of the pair walk, where exactly one walker moves at a time,
is crucial. When both walkers move simultaneously, the pair-walk transition matrix is
the Kronecker product P ⊗ P (George et al. When both walkers move simultaneously, the pair-walk transition matrix is
the Kronecker product P ⊗ P (George et al. , 2018), for which the Sylvester decomposition
does not apply. , 2018), for which the Sylvester decomposition
does not apply. While the simultaneous-move version may be of independent interest,
our motivation here comes not from random walks themselves but rather from how they
arise in the study of evolutionary dynamics.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Symmetry Exploitation
On a vertex-transitive graph, the automorphism group of the graph acts transitively on the nodes, meaning a single walker cannot tell where they are on the graph at any given time.<ref:2604.18872#pg9>. This symmetry drops the cost of Algorithm 1 to O(N 3). p. 5 Thus, the left-hand side of
τ −
1
2
Pτ −
1
2
τP
⊺ = 11⊺ + D (15)
is invariant under φ, which means the right-hand side must be as well, giving a single
unknown that determines D. This symmetry drops the cost of Algorithm 1 to O
N3
. Thus, the left-hand side of
τ −
1
2
Pτ −
1
2
τP
⊺ = 11⊺ + D (15)
is invariant under φ, which means the right-hand side must be as well, giving a single
unknown that determines D. This symmetry drops the cost of Algorithm 1 to O
N3
. However, regularity alone is not
enough. For example, a simple calculation shows that di
is not constant on the Frucht
graph (Frucht, 1949), which is a 3-regular graph whose automorphism group is trivial. However, regularity alone is not
enough. For example, a simple calculation shows that di
is not constant on the Frucht
graph (Frucht, 1949), which is a 3-regular graph whose automorphism group is trivial.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Final Conclusion
The paper concludes that the Poisson equation for the lazy pair walk on any weighted, undirected, connected graph can be solved in O(N cubed log2 N) operations and Θ(N 2) space.<ref:2604.18872#pg6, The runtime (O(N^4) practical and O(N^3 log2 N) theoretical) and the memory of Algorithm 1 are determined entirely by N >. p. 5 has Θ
N2
entries. Both the runtime (O
N4
practical and O
N3
log2 N
theoretical)
and the memory of Algorithm 1 are determined entirely by N. Both the runtime (O
N4
practical and O
N3
log2 N
theoretical)
and the memory of Algorithm 1 are determined entirely by N. No aspect of graph
structure (e. No aspect of graph
structure (e. , density or spectral gap of its Laplacian) and no tolerance threshold enters
the picture. , density or spectral gap of its Laplacian) and no tolerance threshold enters
the picture. By contrast, solving Eq. By contrast, solving Eq. (2) via the full N2 × N2
system requires Θ
N4
memory stored densely, or Θ (N |E|) in a CSR sparse format, both of which become
infeasible on moderately dense graphs of moderate size (e. We show that the diagonal constraint can be resolved efficiently using the Cauchy
structure of the eigenbasis divisors, yielding a parameter-free algorithm at O
N3
log2 N
operations in theory and O
N4
in practice. The same algorithm solves Eq. The same algorithm solves Eq. (2) for
any symmetric source F, with O
N3
per additional source after a one-time “sourcefree” setup. Forming M entry-by-entry directly requires O
N4
operations but can take advantage
of standard, optimized linear algebra routines. The time for the latter would surpass the
former for large N, but in practice we recommend using the entry-by-entry method. , 2017; McAvoy and Allen, 2021), and we hope that the
algorithm presented here will be practically useful for studying questions related to the
evolutionary dynamics of social behaviors in larger, heterogeneous populations. Acknowledgment
Thanks to Yoichiro Mori for an insightful conversation about the Sylvester equation
several years ago. 6) was used to sanity check the implementation. Code availability
Supplementary code is available at https://github. Code availability
Supplementary code is available at https://github. com/alexmcavoy/meeting-times,
which also contains an implementation of the algorithm for calculating critical ratios. Code availability
Supplementary code is available at https://github. com/alexmcavoy/meeting-times,
which also contains an implementation of the algorithm for calculating critical ratios. (2) describes a Sylvester equation with a diagonal constraint. The key observation
is that a standard Sylvester equation X − 1
2
PX − 1
2XP⊺ = B can be solved in O
N3
by
the Bartels-Stewart algorithm (Bartels and Stewart, 1972; Golub et al. (2) describes a Sylvester equation with a diagonal constraint. The key observation
is that a standard Sylvester equation X − 1
2
PX − 1
2XP⊺ = B can be solved in O
N3
by
the Bartels-Stewart algorithm (Bartels and Stewart, 1972; Golub et al. We conclude with applications to evolutionary dynamics, giving
improved algorithms for calculating fixation probabilities and mean trait frequencies. 1 Introduction
Expected meeting times of two random walkers on a graph arise in Markov chain theory (Aldous and Fill, 2002) and evolutionary dynamics on graphs (Allen et al. We conclude with applications to evolutionary dynamics, giving
improved algorithms for calculating fixation probabilities and mean trait frequencies. 1 Introduction
Expected meeting times of two random walkers on a graph arise in Markov chain theory (Aldous and Fill, 2002) and evolutionary dynamics on graphs (Allen et al. We conclude with applications to evolutionary dynamics, giving
improved algorithms for calculating fixation probabilities and mean trait frequencies. 1 Introduction
Expected meeting times of two random walkers on a graph arise in Markov chain theory (Aldous and Fill, 2002) and evolutionary dynamics on graphs (Allen et al. We conclude with applications to evolutionary dynamics, giving
improved algorithms for calculating fixation probabilities and mean trait frequencies. 1 Introduction
Expected meeting times of two random walkers on a graph arise in Markov chain theory (Aldous and Fill, 2002) and evolutionary dynamics on graphs (Allen et al. (2) describes a Sylvester equation with a diagonal constraint. The key observation
is that a standard Sylvester equation X − 1
2
PX − 1
2XP⊺ = B can be solved in O
N3
by
the Bartels-Stewart algorithm (Bartels and Stewart, 1972; Golub et al. (2) describes a Sylvester equation with a diagonal constraint. The key observation
is that a standard Sylvester equation X − 1
2
PX − 1
2XP⊺ = B can be solved in O
N3
by
the Bartels-Stewart algorithm (Bartels and Stewart, 1972; Golub et al.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
--- Page 1 ---
Meeting times on graphs in near-cubic time.<ref:2604.18872#pg1>
--- Page 2 ---
Expected meeting times of two random walkers on a graph arise in Markov chain theory (Aldous and Fill, 2002) and evolutionary dynamics on graphs (Allen et al., 2017; McAvoy and Allen, 2021). p. 0 1 Introduction
Expected meeting times of two random walkers on a graph arise in Markov chain theory (Aldous and Fill, 2002) and evolutionary dynamics on graphs (Allen et al. , 2017;
McAvoy and Allen, 2021). , 2017;
McAvoy and Allen, 2021). Let W be the adjacency matrix of a connected, undirected,
weighted graph on N nodes, and let Pij := Wij/wi
(with wi
:= ∑
N
k=1 Wik) be the transition
probabilities of the associated random walk. Let W be the adjacency matrix of a connected, undirected,
weighted graph on N nodes, and let Pij := Wij/wi
(with wi
:= ∑
N
k=1 Wik) be the transition
probabilities of the associated random walk. The lazy pair walk places two walkers on
the graph; at each step, one walker (chosen uniformly) moves, and the process absorbs
when they collide.Where the paper says it
Where the paper says it
Where the paper says it
--- Page 3 ---
Eq. (1) is a special case of the Poisson equation for the absorbing (lazy) pair walk with symmetric source, F, and prescribed diagonal, h = (h1,. p. 1 which is a linear system of (
N
2
) equations in (
N
2
) unknowns. (1) is a special case of the Poisson equation for the absorbing (lazy) pair walk
with symmetric source, F, and prescribed diagonal, h = (h1, .Where the paper says it
--- Page 4 ---
The key observation is that a standard Sylvester equation X − 1/2 PX − 1/2 XP⊺ = B can be solved in O(N 3) by the Bartels-Stewart algorithm (Bartels and Stewart, 1972; Golub et al., 1979), because the eigenbasis of P diagonalizes P ⊗ I + I ⊗ P⊺ <ref:2604. p. 1 The key observation
is that a standard Sylvester equation X − 1
2
PX − 1
2XP⊺ = B can be solved in O
N3
by
the Bartels-Stewart algorithm (Bartels and Stewart, 1972; Golub et al. , 1979), because the
eigenbasis of P diagonalizes P ⊗ I + I ⊗ P
⊺
. The diagonal constraint is the sole obstruction to applying this directly, and resolving it efficiently is the core of our contribution. For a single walker, commute and hitting times are computable in O
N3
via the
Laplacian pseudoinverse (Tetali, 1991; Chandra et al. For a single walker, commute and hitting times are computable in O
N3
via the
Laplacian pseudoinverse (Tetali, 1991; Chandra et al. , 1996; Beveridge, 2015). For a single walker, commute and hitting times are computable in O
N3
via the
Laplacian pseudoinverse (Tetali, 1991; Chandra et al. , 1996; Beveridge, 2015).Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
--- Page 5 ---
Of course, the latter refers to a bound on generic linear systems with N2 unknowns and does not, itself, exploit the structure of meeting times.<ref:2604.18872#pg5>. We show that the diagonal constraint can be resolved efficiently using the Cauchy structure of the eigenbasis divisors, yielding a parameter-free algorithm at O(N cubed log2 N) operations in theory and O(N 4) in practice. p. 1 In practice, most existing
approaches use either sparse solvers or iterative methods that depend on graph density. We show that the diagonal constraint can be resolved efficiently using the Cauchy
structure of the eigenbasis divisors, yielding a parameter-free algorithm at O
N3
log2 N
operations in theory and O
N4
in practice.Where the paper says it
--- Page 6 ---
We develop the algorithm in Section 2 and give the evolutionary dynamics applications in Section 3.<ref:2604.18872#pg5, Algorithm 1 Poisson equation for the absorbing lazy pair walk Input: Transition matrix P, symmetric source F, and prescribed diagonal, h Output Solution H of Eq. p. 4 5 The complete algorithm
Putting all of these steps together, we obtain Algorithm 1 and Theorem 1. Algorithm 1 Poisson equation for the absorbing lazy pair walk
Input: Transition matrix P, symmetric source F, and prescribed diagonal, h
Output: Solution H of Eq.Where the paper says it
--- Page 7 ---
One-time setup (depends on only the graph and not on the source): 1: Eigendecompose Pe = Π1/2PΠ−1/2 = VΛV O(N 3) 2: Form matrix of Eq. (11) using Cauchy matrix-vector products O(N cubed log2 N) Per-source (F) and prescribed diagonal (h) computation: 3: Compute FbV = V⊺Π1/2FΠ1/2V O N cubed 4: Solve Eq. p. 4 (2)
One-time setup (depends on only the graph and not on the source):
1: Eigendecompose Pe = Π1/2PΠ−1/2 = VΛV
⊺ O
N3
2: Form matrix of Eq. (11) using Cauchy matrix-vector products O
N3
log2 N
Per-source (F) and prescribed diagonal (h) computation:
3: Compute FbV = V
⊺Π1/2FΠ1/2V O N3
4: Solve Eq. (11) using Cauchy matrix-vector products O
N3
log2 N
Per-source (F) and prescribed diagonal (h) computation:
3: Compute FbV = V
⊺Π1/2FΠ1/2V O N3
4: Solve Eq. (12) for HbV
11 and d, and then form DbV O
N3
5: Set HbV
jk =
FbV
jk + DbV
jk
/
1 − 1
2
λj − 1
2
λk
for (j, k) ̸= (1, 1) O
N2
6: Compute H = Π−1/2VHbVV
⊺Π−1/2 O
N3
Theorem 1.Where the paper says it
Where the paper says it
--- Page 8 ---
Theorem 1. The Poisson equation for the lazy pair walk on any weighted, undirected, connected graph can be solved in O(N cubed log2 N) operations and Θ(N 2) space. p. 4 (12) for HbV
11 and d, and then form DbV O
N3
5: Set HbV
jk =
FbV
jk + DbV
jk
/
1 − 1
2
λj − 1
2
λk
for (j, k) ̸= (1, 1) O
N2
6: Compute H = Π−1/2VHbVV
⊺Π−1/2 O
N3
Theorem 1. The Poisson equation for the lazy pair walk on any weighted, undirected, connected
graph can be solved in O
N3
log2 N
operations and Θ
N2
space.Where the paper says it
--- Page 9 ---
On a vertex-transitive graph, the automorphism group of the graph acts transitively on the nodes, meaning a single walker cannot tell where they are on the graph at any given time.<ref:2604.18872#pg9>. This symmetry drops the cost of Algorithm 1 to O(N 3).<ref:2604.18872#pg9>. However, regularity alone is not enough because di is not constant on the Frucht graph (Frucht, 1949).<ref:2604.18872#pg9>.
--- Page 10 ---
Thanks to Yoichiro Mori for an insightful conversation about the Sylvester equation several years ago.<ref:2604.18872#pg10>. Code availability is available at https://github. p. 8 6) was used to sanity check the implementation. Code availability
Supplementary code is available at https://github.Where the paper says it
--- Page 11 ---
A McAvoy, B Allen, and M. A Nowak are social goods dilemmas in heterogeneous societies. p. 8 For the latter, the lazy pair walk is what
emerges naturally (Allen et al. , 2017; McAvoy and Allen, 2021), and we hope that the
algorithm presented here will be practically useful for studying questions related to the
evolutionary dynamics of social behaviors in larger, heterogeneous populations.Where the paper says it
--- Page 12 ---
Figure 1: Critical benefit-to-cost ratios under death-Birth updating on eight empirical social networks from Facebook (Rossi and Ahmed, 2015).<ref:2604.18872#pg10>.
--- Page 13 ---
Figure 2: Critical benefit-to-cost ratios under death-Birth updating on the Email-Eu-core social network of Leskovec et al. (2007).<ref:2604.18872#pg10>.
--- Page 14 ---
The expected meeting time of two random walkers on a graph can be computed in O(N 3) via the Laplacian pseudoinverse (Tetali, 1991; Chandra et al., 1996; Beveridge, 2015).<ref:2604.18872#pg4>.
--- Page 15 ---
The paper discusses the critical benefit-to-cost ratios on several empirical networks.
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Improved algorithm for calculating fixation probabilities and mean trait frequencies in evolutionary dynamics by utilizing Algorithm 1 to compute all N squared meeting times in O N4 operations after a one-time setup of O N3 log2 N operations.
-
Ability to evaluate the inequality described in Equation (17) for any choice of Bij, Cij by using the computed meeting times from Algorithm 1, allowing researchers to determine if producers are favored under weak selection.
-
Calculation of identity by state probabilities in O N4 allows for computing mean trait frequencies under recurrent mutation on arbitrary weighted graphs using the structure-coefficient theorem.
Abstract
The expected meeting time of two random walkers on an undirected graph of size N, where at each time step one walker moves and the process stops when they collide (the ``lazy'' pair walk), satisfies a system of 2 linear equations. Naïvely, solving this system takes O (N 6) operations. However, this system of linear equations has nice structure in that it is almost a Sylvester equation, with the obstruction being a diagonal absorption constraint. We give a simple algorithm for solving this system that exploits this structure, leading to O (N 4) operations and Θ (N squared) space for direct computation of all 2 meeting times. While this practical method uses only standard dense linear algebra, it can be improved to O (N cubed squaredN) operations by exploiting the Cauchy structure of the diagonal correction. We treat the near-cubic bound as theoretical, however, since it appears to involve a large constant factor. In practice, the dense O (N 4) algorithm computes all meeting times on graphs with N in the low thousands in minutes on a laptop. We generalize this result slightly to cover the Poisson equation for the absorbing lazy pair walk with an arbitrary source, which can be solved at the same cost, with O (N cubed) per additional source on the same graph. We conclude with applications to evolutionary dynamics, giving improved algorithms for calculating fixation probabilities and mean trait frequencies.
Sources
Related papers
- From life-history model to theories of ecological diversity: the impact of Madhav Gadgil's work
- A multiscale discrete-to-continuum framework for structured population models
- Sex chromosome stability and turnover across vertebrates: a developmental gene regulatory network perspective
- Fixation location in structured populations
- Diversification under Global Competition: A Cutoff-Induced Localization Mechanism
- Extending indoor airborne infection risk modelling to 3D, with local surface deposition