Maximum total distance under radius and diameter constraints: algorithms, asymptotics, and structure
math.CO
Submitted: 2026-11-30
Updated: 2026-11-30
Comments: 21 pages (main 16 pages, appendix 4 pages), 5 figures
License: http://creativecommons.org/licenses/by/4.0/
The gist: We present an algorithm that determines a graph with the maximum total distance given order n and radius r, with time complexity O(n 2r).
Abstract
We present an algorithm that determines a graph with the maximum total distance given order n and radius r, with time complexity O(n 2r). The same approach immediately yields a modified algorithm for the corresponding problem on trees of given order and diameter, and also gives an algorithm for clique-rooted trees of given order and diameter. For fixed radius or diameter, we also obtain precise asymptotic estimates for the maximum total distance. We investigate the structure of extremal trees and give examples in which branches have different skeletons and unequal orders. We further conjecture that, for fixed diameter d and sufficiently large order n, the maximum total distance is attained by a tree when d is even and by a clique-rooted tree when d is odd. Together with our algorithms, this conjecture would yield a practical resolution of the problem of Plesn'ık for sufficiently large order. We obtain such a resolution for the radius variant and for the diameter problem at small order.
Related papers
- Three-ends Furstenberg estimates and approximate rectangles
- Multicolor Ramsey numbers of ordered matchings
- The additive-square-free spectrum below 139 for four-element alphabets
- Exponential random graph models with soft clique constraints
- Real equiangular lines in dimensions 18-20 and sharp fixed-angle bounds
- Salvetti complexes for conditional oriented matroids