English

Meeting times on graphs in near-cubic time

Populations and Evolution 2026-04-22 v1 Data Structures and Algorithms

Abstract

The expected meeting time of two random walkers on an undirected graph of size NN, where at each time step one walker moves and the process stops when they collide, satisfies a system of (N2)\binom{N}{2} linear equations. Na\"{i}vely, solving this system takes O(N6)O\left(N^{6}\right) 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(N4)O\left(N^{4}\right) operations and Θ(N2)\Theta\left(N^{2}\right) space for exact computation of all (N2)\binom{N}{2} meeting times. While this practical method uses only standard dense linear algebra, it can be improved (in theory) to O(N3log2N)O\left(N^{3}\log^{2}N\right) operations by exploiting the Cauchy structure of the diagonal correction. 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(N3)O\left(N^{3}\right) 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.

Keywords

Cite

@article{arxiv.2604.18872,
  title  = {Meeting times on graphs in near-cubic time},
  author = {Alex McAvoy},
  journal= {arXiv preprint arXiv:2604.18872},
  year   = {2026}
}

Comments

11 pages