Average Minimum Distance (AMD) Overview
- AMD is a multifaceted concept defined as the average of shortest or nearest distances under various optimization and measurement settings, spanning combinatorial, geometric, and statistical domains.
- In computational geometry, AMD in triangulations minimizes the sum of shortest-path distances, with results showing NP-completeness under weighted settings and optimality of fan triangulations in one-point-visible regimes.
- AMD also appears in graph theory, Euclidean variational problems, coding theory, and phylogenetics, linking local decision-making to global distance minimization across diverse applied scenarios.
Average Minimum Distance (AMD) is a family of optimization and measurement notions built from averages of shortest or nearest distances. In the cited literature, the term does not denote a single invariant: in planar triangulations it is the average shortest-path distance induced by a triangulation; in spanning-tree problems it is the minimum average distance over all spanning trees of a graph; in Euclidean variational problems it is an integral of point-to-set distances under a length budget; and in several applied settings it appears as the average distance to the nearest selected leaf, the average of subsetwise nearest distances, or a directed nearest-neighbor score between embedding sets (Kozma, 2011, Du et al., 6 May 2026, O'Brien et al., 29 Mar 2025, Matsen et al., 2012, Garg et al., 2014, Goworek et al., 17 Feb 2026). Despite this terminological heterogeneity, the recurring theme is optimization of a global distance functional under combinatorial, geometric, or statistical constraints.
1. Terminological scope and canonical definitions
A useful first distinction is between pairwise formulations, which average shortest-path distances between pairs of points or vertices, and point-to-set formulations, which average the distance from a point sampled from a measure to its nearest admissible representative set. A third variant, prominent in lexical semantic change detection, averages nearest-neighbor distances between two finite point clouds and may be directional.
| Setting | AMD quantity | Admissible object |
|---|---|---|
| Triangulations | triangulation of a point set or polygon | |
| Spanning trees | spanning tree | |
| Euclidean average-distance problem | compact connected with | |
| Phylogenetic trees | subset of leaves | |
| LSCD | cross-period embedding correspondence |
In the triangulation formulation, the paper optimizes
0
which is equivalent to minimizing 1 because the prefactor 2 is independent of 3 (Kozma, 2011). In connected graphs, the average distance is
4
and AMD may then mean the minimum of 5 over spanning trees 6 of 7 (Du et al., 6 May 2026). In continuum optimization, the average-distance problem minimizes
8
over compact 9 with a length constraint, or, in the probability-measure formulation,
0
over compact connected 1 with 2 (Basok et al., 2022, O'Brien et al., 29 Mar 2025).
This multiplicity of meanings is substantive rather than merely notational. Some formulations are discrete and combinatorial, some are geometric and variational, and others are algorithmic statistics on finite samples. The technical content of AMD therefore depends crucially on the ambient space, the admissible class, and the averaging measure.
2. Triangulations in computational geometry
The paper "Minimum Average Distance Triangulations" formalizes AMD for a planar point set 3 by assigning a symmetric positive weight function 4 and defining 5 as the shortest-path length between 6 and 7 along edges of a triangulation 8. The objective is
9
with an analogous polygon variant in which one triangulates the interior of a simple polygon. For arbitrary positive semimetric weights, the decision problem is in NP and is shown to be strongly NP-complete via a reduction from Planar3SAT using wire, variable, clause, and bridge gadgets with weights from 0 (Kozma, 2011).
The hardness proof depends on a gap construction. Pure versus impure triangulations are separated by a structural lemma; satisfying and non-satisfying assignments produce a provable gap in 1; and the parameters are chosen so that the threshold
2
lies strictly between all satisfying and all non-satisfying triangulations. The paper states this formally for point sets, while noting that the approach extends in commentary to polygon triangulations as well (Kozma, 2011).
For equal weights, where link distance replaces weighted shortest paths, the situation changes sharply. If a point set is one-point-visible or a polygon is one-vertex-visible, every fan triangulation is optimal. The key observation is that all triangulations have the same number of edges, so a fan simultaneously maximizes the number of distance-3 pairs and forces all remaining pairs to have link distance 4. The paper’s Theorem 1 states that every fan triangulation attains the minimum average link distance in these visibility regimes (Kozma, 2011).
For general simple polygons in the equal-weight case, AMD remains nonlocal. The paper introduces special indices 5 relative to a triangle 6 and an extended objective
7
which carries cross-subproblem information. A decomposition lemma expresses every cross-side distance through local distances plus a constant offset, and the resulting dynamic program runs in 8 time. The Euclidean and, more generally, metric-weight versions remain open, as does the unit-weight point-set case without a one-point-visible vertex (Kozma, 2011).
3. Graph-theoretic shortest-path formulations
In graph theory, AMD often refers to minimization of average pairwise shortest-path distance under graph-theoretic constraints. One formulation fixes a connected graph 9 and asks for a spanning tree 0 minimizing
1
The problem is known to be NP-hard. Mukwembi proved that if 2 has order 3 and independence number 4, then for 5 there exists a spanning tree with 6; the 2026 improvement shows that for 7 one can always find a spanning tree with 8, and for 9 the sharper bound
0
holds. The proof proceeds by showing the existence of a spanning tree in a class 1 consisting of a small core tree with many pendent vertices, where 2 (Du et al., 6 May 2026).
A second formulation fixes the order 3 and size 4 of a connected simple graph and minimizes the average graph distance
5
The exact minimum is
6
and it is attained precisely when every pair of non-adjacent vertices is at distance 7, equivalently when the graph has diameter at most 8. The same paper shows that the graph with the largest average clustering is usually unique and simultaneously attains this minimum average distance. The associated extremal architectures are hub-like: complete or almost-complete modules sharing a single cut vertex, with universal vertices providing the required two-hop connectivity (Barmpoutis et al., 2010).
A continuum analogue appears on compact metric graphs, where the mean distance is defined by
9
This is a continuum average over all points of the graph rather than a vertex average. Among all metric graphs of fixed total length 0, the path maximizes AMD with 1, and among doubly connected graphs the loop is extremal with 2. For fixed length 3 and number of edges 4, the equilateral flower graph minimizes AMD: 5 The same paper establishes the scale-invariant spectral relation
6
and asks whether 7 admits absolute upper and lower bounds on all compact metric graphs (Baptista et al., 2023).
4. Hamming-space, coding-theoretic, and Fourier formulations
For binary codes, AMD is the minimum average pairwise Hamming distance. If 8 has size 9, then
0
This problem admits a linear-programming treatment through the Hamming association scheme, Krawtchouk polynomials, and Delsarte positivity constraints on the distance distribution. In particular, the average distance is controlled by the first dual coefficient 1 via
2
so LP upper bounds on 3 become AMD lower bounds (0706.3295).
The Boolean-function formulation makes the Fourier connection explicit. For a set 4 of density 5 with indicator 6, the average Hamming distance
7
satisfies the exact identity
8
where 9 is the level-0 Fourier weight. Maximizing level-1 weight is therefore equivalent to minimizing average distance. This permits direct translation of Chang-type bounds into AMD bounds. The 2025 paper improves classical estimates by proving piecewise upper envelopes 2 and 3 for 4, yielding lower bounds on 5; it also shows that Hamming balls maximize the dimension of the span of large Fourier coefficients in 6 (Yu, 3 Apr 2025).
A related LP improvement for binary codes with density 7 proves
8
where
9
This improves the earlier Fu–Wei–Yeung bound for 0 and matches it for 1. The same paper records that subcubes attain equality at 2 and 3, and translates the average-distance bound into the Fourier inequality
4
The 2007 LP paper proves additional closed-form lower bounds for sparse regimes and, notably, establishes the asymptotically exact result
5
for binary codes of size 6 (Yu et al., 2019, 0706.3295).
These code-theoretic formulations are mathematically close to discrete isoperimetry and harmonic analysis on the hypercube. They also show that AMD can be studied either directly as a distance problem or indirectly through transformed quantities such as Krawtchouk spectra and low-degree Fourier weights.
5. Variational average-distance minimizers in Euclidean space
In Euclidean variational problems, AMD is a length-constrained optimization over connected one-dimensional sets. One formulation fixes a bounded open set 7, a length budget 8, and a non-decreasing function 9, and minimizes
00
over compact 01 with 02. The paper "Inverse maximal and average distance minimizer problems" relates this to maximal distance minimizers and generalizes Tilli’s planar results to 03. If a rectifiable curve 04 satisfies the unique nearest-point property in 05, then 06 solves the AMD problem on 07 for any non-decreasing 08. Sufficient conditions include curvature radius at least 09 and length at most 10, and every simple 11 curve is shown to be an AMD minimizer for sufficiently small tubular radius (Basok et al., 2022).
A second, more recent formulation fixes a compactly supported probability measure 12 on 13, a power 14, and a budget 15, and minimizes
16
over
17
A central tool is the barycentre field
18
together with the first-variation formula for continuous deformations of 19. Minimizers satisfy vanishing net barycentre field, the ambiguous locus has 20-measure zero, and under 21 every minimizer lies in 22 (O'Brien et al., 29 Mar 2025).
The main structural theorem holds for 23 and for
24
Under these hypotheses, optimal sets are finite trees: they contain no cycles, have finitely many noncut points and branching points, and every branching point has order 25. The paper does not assert explicit angle conditions, but it provides the first complete topological description in arbitrary dimension for this parameter range (O'Brien et al., 29 Mar 2025).
Taken together, these papers place AMD within the calculus of variations and geometric measure theory. The admissible set is no longer a graph chosen from a finite combinatorial class, but a connected compact subset of 26 constrained only by one-dimensional Hausdorff measure. Existence, first variation, regularity, and topology then replace combinatorial enumeration.
6. Applied AMD: phylogenetics, density estimation, and lexical semantic change
In phylogenetics, AMD appears as the Average Distance to the Closest Leaf (ADCL). Given a phylogenetic tree 27, a Borel mass measure 28 on the tree, and a budget 29, one chooses a leaf subset 30 with 31 to minimize
32
or its discrete weighted analogue. This is the tree-metric 33-median problem with centers restricted to leaves. The paper shows that greedy pruning is not globally optimal, that a PAM-style heuristic can get trapped in local minima, and that an exact dynamic program is possible by decomposing the tree into bubbles and maintaining RMD and RMP state families encoding how mass crosses subtree roots. The exact method returns globally optimal solutions for all 34 in a single run (Matsen et al., 2012).
In nonparametric density estimation, AMD is a statistic rather than an optimization target. A sample 35 is partitioned into 36 disjoint subsets of size 37, and for a query point 38 one defines
39
The estimator is
40
Under the one-dimensional assumptions in the paper,
41
The authors recommend 42 as a robust default when 43, with 44 preferable in smoother regimes where the bias behaves like 45 (Garg et al., 2014).
In lexical semantic change detection, AMD is a nearest-neighbor correspondence metric between contextual embedding clouds from two periods. If 46 and 47 are usage embeddings for a target word and 48 is cosine distance, the directed score is
49
and the paper’s symmetric AMD is the average of the two directions. A stricter variant, SAMD, downsamples to equal cardinality and greedily constructs a one-to-one matching over the pairwise distance matrix. Empirically, AMD is reported as especially robust with non-specialized encoders and under dimensionality reduction, while SAMD is strongest with specialized encoders such as XL-LEXEME and under PCA (Goworek et al., 17 Feb 2026).
These applications illustrate three distinct computational interpretations of AMD: facility location on a tree metric, a first-order-statistic estimator built from minimum sample distances, and a local correspondence score for diachronic embedding geometry.
7. Structural themes and open problems
Across these literatures, AMD objectives are consistently global and nonlocal. In triangulations, local edge choices alter shortest paths between far-separated vertices; this is precisely why the polygon algorithm requires the extended objective 50 and special-index bookkeeping (Kozma, 2011). In Euclidean average-distance minimization, the barycentre field and the nullity of the ambiguous locus play the analogous role of encoding global transport geometry into local first-variation data (O'Brien et al., 29 Mar 2025). In Hamming-space formulations, AMD is controlled indirectly through global spectral data such as Krawtchouk transforms and level-51 Fourier weight (Yu, 3 Apr 2025).
A second recurring theme is the emergence of shortcut-rich extremal structures. Fan triangulations collapse all non-edge pairs to distance 52 in one-point-visible settings (Kozma, 2011). Graphs of fixed order and size minimize average distance exactly when every non-adjacent pair is at distance 53 (Barmpoutis et al., 2010). On metric graphs, equilateral flowers minimize continuum AMD at fixed total length and edge count (Baptista et al., 2023). This suggests that hub-mediated or highly redundant routing structures repeatedly arise when the admissible class permits them.
Several open problems remain central. For minimum average distance triangulations, the metric and Euclidean weight cases are open, as is the unit-weight point-set case without a one-point-visible vertex; for the strongly NP-hard semimetric variant, an FPTAS is ruled out unless 54, while the existence of a PTAS is open (Kozma, 2011). In continuum optimization, the barycentre-field proof leaves the range
55
open for the general-dimensional topological characterization (O'Brien et al., 29 Mar 2025). On compact metric graphs, the existence of absolute constants 56 such that
57
for all compact metric graphs is explicitly posed as an open question (Baptista et al., 2023). In Hamming-space problems, exact extremizers at intermediate densities remain unresolved despite the new upper envelopes for level-58 Fourier weight and the improved LP bounds for binary codes (Yu, 3 Apr 2025, Yu et al., 2019).
AMD is therefore best understood not as a single definition but as a stable research motif. Whether the admissible objects are triangulations, spanning trees, compact connected sets, code subsets, phylogenetic representatives, or embedding clouds, the central problem is to compress geometry, connectivity, or semantics while keeping typical shortest or nearest distances as small as possible.