English

Instance-Optimality in PageRank Computation

Data Structures and Algorithms 2026-05-15 v5

Abstract

We study the problem of estimating a vertex's PageRank within a constant relative error, with constant probability. We prove that an adaptive variant of the simple classic bidirectional algorithm is instance-optimal up to a polylogarithmic factor for all directed graphs of order nn whose maximum in- and out-degrees are at most a constant fraction of nn. In other words, there is no correct algorithm that can be faster than our algorithm on any such graph by more than a polylogarithmic factor. We further extend the instance-optimality to all graphs in which at most a polylogarithmic number of vertices have unbounded degrees. This covers all sparse graphs with O~(n)\tilde{O}(n) edges. In addition, we provide a counterexample showing that the bidirectional algorithm is not instance-optimal for graphs whose degrees are mostly equal to nn. We also consider weighted graphs and multigraphs. We show that the bidirectional algorithm is instance-optimal on \emph{all} multigraphs, but for weighted simple graphs, we have almost the same limitations as for unweighted simple graphs.

Keywords

Cite

@article{arxiv.2512.16087,
  title  = {Instance-Optimality in PageRank Computation},
  author = {Mikkel Thorup and Hanzhi Wang},
  journal= {arXiv preprint arXiv:2512.16087},
  year   = {2026}
}