Quasilinear-time eccentricities computation, and more, on median graphs

Abstract

Computing the diameter, and more generally, all eccentricities of an undirected graph is an important problem in algorithmic graph theory and the challenge is to identify graph classes for which their computation can be achieved in subquadratic time. Using a new recursive scheme based on the structural properties of median graphs, we provide a quasilinear-time algorithm to determine all eccentricities for this well-known family of graphs. Our recursive technique manages specifically balanced and unbalanced parts of the -class decomposition of median graphs. The exact running time of our algorithm is O(n log4 n). This outcome not only answers a question asked by B\'en\'eteau et al. (2020) but also greatly improves a recent result which presents a combinatorial algorithm running in time O(n1.6408 logO(1) n) for the same problem.Furthermore we also propose a distance oracle for median graphs with both polylogarithmic size and query time. Speaking formally, we provide a combinatorial algorithm which computes for any median graph G, in quasilinear time O(n log4 n), vertex-labels of size O(log3 n) such that any distance of G can be retrieved in time O(log4 n) thanks to these labels.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…