English

Optimal diameter computation within bounded clique-width graphs

Data Structures and Algorithms 2020-11-18 v1

Abstract

Coudert et al. (SODA'18) proved that under the Strong Exponential-Time Hypothesis, for any ϵ>0\epsilon >0, there is no O(2o(k)n2ϵ){\cal O}(2^{o(k)}n^{2-\epsilon})-time algorithm for computing the diameter within the nn-vertex cubic graphs of clique-width at most kk. We present an algorithm which given an nn-vertex mm-edge graph GG and a kk-expression, computes all the eccentricities in O(2O(k)(n+m)1+o(1)){\cal O}(2^{{\cal O}(k)}(n+m)^{1+o(1)}) time, thus matching their conditional lower bound. It can be modified in order to compute the Wiener index and the median set of GG within the same amount of time. On our way, we get a distance-labeling scheme for nn-vertex mm-edge graphs of clique-width at most kk, using O(klog2n){\cal O}(k\log^2{n}) bits per vertex and constructible in O(k(n+m)logn){\cal O}(k(n+m)\log{n}) time from a given kk-expression. Doing so, we match the label size obtained by Courcelle and Vanicat (DAM 2016), while we considerably improve the dependency on kk in their scheme. As a corollary, we get an O(kn2logn){\cal O}(kn^2\log{n})-time algorithm for computing All-Pairs Shortest-Paths on nn-vertex graphs of clique-width at most kk. This partially answers an open question of Kratsch and Nelles (STACS'20).

Keywords

Cite

@article{arxiv.2011.08448,
  title  = {Optimal diameter computation within bounded clique-width graphs},
  author = {Guillaume Ducoffe},
  journal= {arXiv preprint arXiv:2011.08448},
  year   = {2020}
}
R2 v1 2026-06-23T20:18:24.733Z