Medians in median graphs in linear time

07/24/2019
by   Laurine Bénéteau, et al.
0

The median of a graph G is the set of all vertices x of G minimizing the sum of distances from x to all other vertices of G. It is known that computing the median of dense graphs in subcubic time refutes the APSP conjecture and computing the median of sparse graphs in subquadratic time refutes the HS conjecture. In this paper, we present a linear time algorithm for computing medians of median graphs, improving over the existing quadratic time algorithm. Median graphs constitute the principal class of graphs investigated in metric graph theory, due to their bijections with other discrete and geometric structures (CAT(0) cube complexes, domains of event structures, and solution sets of 2-SAT formulas). Our algorithm is based on the known majority rule characterization of medians in a median graph G and on a fast computation of parallelism classes of edges (Θ-classes) of G. The main technical contribution of the paper is a linear time algorithm for computing the Θ-classes of a median graph G using Lexicographic Breadth First Search (LexBFS). Namely, we show that any LexBFS ordering of the vertices of a median graph G has the following fellow traveler property: the fathers of any two adjacent vertices of G are also adjacent. Using the fast computation of the Θ-classes of a median graph G, we also compute the Wiener index (total distance) of G in linear time.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/25/2021

Diameter, radius and all eccentricities in linear time for constant-dimension median graphs

Median graphs form the class of graphs which is the most studied in metr...
research
10/06/2021

Subquadratic-time algorithm for the diameter and all eccentricities on median graphs

On sparse graphs, Roditty and Williams [2013] proved that no O(n^2-ε)-ti...
research
12/02/2021

On the computational complexity of the Steiner k-eccentricity

The Steiner k-eccentricity of a vertex v of a graph G is the maximum Ste...
research
01/26/2017

Identifying Consistent Statements about Numerical Data with Dispersion-Corrected Subgroup Discovery

Existing algorithms for subgroup discovery with numerical targets do not...
research
03/02/2022

First-order logic axiomatization of metric graph theory

The main goal of this note is to provide a First-Order Logic with Betwee...
research
07/06/2020

Faster Graph Embeddings via Coarsening

Graph embeddings are a ubiquitous tool for machine learning tasks, such ...
research
03/05/2019

A linear-time algorithm and analysis of graph Relative Hausdorff distance

Graph similarity metrics serve far-ranging purposes across many domains ...

Please sign up or login with your details

Forgot password? Click here to reset