---
title: Average Minimum Distance (AMD) Overview
url: https://www.emergentmind.com/topics/average-minimum-distance-amd
type: topic
---

# Average Minimum Distance (AMD) Overview

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 [1112.1828], [2605.04725], [2503.23256], [1205.6867], [1412.2851], [2602.15716]. 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 | $\operatorname{AMD}(T)=\frac{2}{n(n-1)}\sum_{1\le i<j\le n}\operatorname{dist}_T(p_i,p_j)$ | triangulation $T$ of a point set or polygon |
| Spanning trees | $\operatorname{AMD}(G)=\min\{\mu(T):T\text{ spanning tree of }G\}$ | spanning tree $T$ |
| Euclidean average-distance problem | $\mathcal{J}_p(\Sigma)=\int \operatorname{dist}^p(x,\Sigma)\,d\mu(x)$ | compact connected $\Sigma$ with $\mathcal{H}^1(\Sigma)\le l$ |
| Phylogenetic trees | $\operatorname{ADCL}(S)=\frac{1}{\mu(T)}\int_T\min_{s\in S}d_T(x,s)\,d\mu(x)$ | subset of leaves $S$ |
| LSCD | $\operatorname{AMD}(A\to B)=\frac{1}{|A|}\sum_{a\in A}\min_{b\in B}\delta(a,b)$ | cross-period embedding correspondence |

In the triangulation formulation, the paper optimizes
\[
\mathcal{W}(T)=\sum_{1\le i<j\le n}\operatorname{dist}_T(p_i,p_j),
\]
which is equivalent to minimizing $\operatorname{AMD}(T)$ because the prefactor $\frac{2}{n(n-1)}$ is independent of $T$ [1112.1828]. In connected graphs, the average distance is
\[
\mu(G)=\binom{n}{2}^{-1}\sum_{\{u,v\}\subset V(G)}d_G(u,v),
\]
and AMD may then mean the minimum of $\mu(T)$ over spanning trees $T$ of $G$ [2605.04725]. In continuum optimization, the average-distance problem minimizes
\[
\int_{\Omega}\varphi(\operatorname{dist}(x,\gamma))\,dx
\]
over compact $\gamma\subset\overline{\Omega}$ with a length constraint, or, in the probability-measure formulation,
\[
\mathcal{J}_p(\Sigma)=\int_{\mathbb{R}^d}\operatorname{dist}^p(x,\Sigma)\,d\mu(x)
\]
over compact connected $\Sigma$ with $\mathcal{H}^1(\Sigma)\le l$ [2212.01903], [2503.23256].

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 $S=\{p_1,\dots,p_n\}\subset\mathbb{R}^2$ by assigning a symmetric positive weight function $w:S^2\to\mathbb{R}$ and defining $\operatorname{dist}_T(x,y)$ as the shortest-path length between $x$ and $y$ along edges of a triangulation $T$. The objective is
\[
\mathcal{W}(T)=\sum_{1\le i<j\le n}\operatorname{dist}_T(p_i,p_j),
\qquad
\operatorname{AMD}(T)=\frac{2}{n(n-1)}\mathcal{W}(T),
\]
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 $\{\varepsilon,1,\sigma\}$ [1112.1828].

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 $\mathcal{W}(T)$; and the parameters are chosen so that the threshold
\[
\mathcal{W}^{\star}=\mathcal{W}(T_{\text{baseline}})+300n_c^2N+1
\]
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 [1112.1828].

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-$1$ pairs and forces all remaining pairs to have link distance $2$. The paper’s Theorem 1 states that every fan triangulation attains the minimum average link distance in these visibility regimes [1112.1828].

For general simple polygons in the equal-weight case, AMD remains nonlocal. The paper introduces special indices $a,c,e,g$ relative to a triangle $p_ip_dp_j$ and an extended objective
\[
\mathcal{W}_{\mathrm{EXT}}(T,\alpha)\big|_i^j
=
\sum_{i\le x<y\le j}d_T(p_x,p_y)
+
\alpha\sum_{i\le x\le j}d_T(p_x,p_j),
\]
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 $O(n^{11})$ 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 [1112.1828].

## 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 $G$ and asks for a spanning tree $T$ minimizing
\[
\mu(T)=\binom{n}{2}^{-1}\sum_{\{u,v\}\subset V(T)}d_T(u,v),
\qquad
\operatorname{AMD}(G)=\min\{\mu(T):T\text{ spanning tree of }G\}.
\]
The problem is known to be NP-hard. Mukwembi proved that if $G$ has order $n$ and independence number $\alpha$, then for $n>2\alpha-1$ there exists a spanning tree with $\mu(T)\le \alpha+2$; the 2026 improvement shows that for $n\ge 2\alpha$ one can always find a spanning tree with $\mu(T)<\alpha+1$, and for $\alpha\ge 7$ the sharper bound
\[
\mu(T)<\alpha+\frac{1}{2}+\frac{4(\alpha-1)}{\alpha^2}
\]
holds. The proof proceeds by showing the existence of a spanning tree in a class $\mathcal{T}_{t,n-t}$ consisting of a small core tree with many pendent vertices, where $t\le 2\alpha-1$ [2605.04725].

A second formulation fixes the order $n$ and size $m$ of a connected simple graph and minimizes the average graph distance
\[
L(G)=\frac{2}{n(n-1)}\sum_{i<j}d(i,j).
\]
The exact minimum is
\[
L_{\min}(n,m)=2-\frac{m}{\binom{n}{2}},
\]
and it is attained precisely when every pair of non-adjacent vertices is at distance $2$, equivalently when the graph has diameter at most $2$. 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 [1007.4031].

A continuum analogue appears on compact metric graphs, where the mean distance is defined by
\[
\overline{d}(G)=\frac{1}{|G|^2}\int_G\int_G d(x,y)\,dx\,dy.
\]
This is a continuum average over all points of the graph rather than a vertex average. Among all metric graphs of fixed total length $L$, the path maximizes AMD with $\overline{d}(G)\le L/3$, and among doubly connected graphs the loop is extremal with $\overline{d}(G)\le L/4$. For fixed length $L$ and number of edges $E$, the equilateral flower graph minimizes AMD:
\[
\overline{d}(G)\ge \frac{2E-1}{4E^2}L.
\]
The same paper establishes the scale-invariant spectral relation
\[
\mu_2(G)\,\overline{d}(G)\ge 1,
\qquad
\mu_2(G)=\lambda_1(G)|G|^2,
\]
and asks whether $\mu_2(G)\,\overline{d}(G)^2$ admits absolute upper and lower bounds on all compact metric graphs [2312.04952].

## 4. Hamming-space, coding-theoretic, and Fourier formulations

For binary codes, AMD is the minimum average pairwise Hamming distance. If $C\subseteq\{0,1\}^n$ has size $M$, then
\[
\bar d(C)=\frac{2}{M(M-1)}\sum_{\{x,y\}\subset C,\ x\neq y}d_H(x,y),
\qquad
\operatorname{AMD}(n,M)=\min_{|C|=M}\bar d(C).
\]
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 $B_1$ via
\[
\bar d(C)=\frac{M}{2(M-1)}\bigl(n-B_1\bigr),
\]
so LP upper bounds on $B_1$ become AMD lower bounds [0706.3295].

The Boolean-function formulation makes the Fourier connection explicit. For a set $A\subseteq\{\pm1\}^n$ of density $\alpha$ with indicator $f=1_A$, the average Hamming distance
\[
D(A)=\mathbb{E}\big[d_H(\mathbf X,\mathbf Y)\mid \mathbf X,\mathbf Y\in A\big]
\]
satisfies the exact identity
\[
W_1(f)=\alpha^2\bigl(n-2D(A)\bigr),
\]
where $W_1(f)=\sum_{i=1}^n\hat f(\{i\})^2$ is the level-$1$ 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 $\chi(\alpha)$ and $\tilde\chi(\alpha)$ for $W(\alpha)$, yielding lower bounds on $D_{\min}(\alpha,n)$; it also shows that Hamming balls maximize the dimension of the span of large Fourier coefficients in $\mathbb{F}_2^n$ [2504.02593].

A related LP improvement for binary codes with density $a=M/2^n\le 1/2$ proves
\[
\min_{|A|=M}D(A)\ge \frac{n}{2}-\varphi(a),
\]
where
\[
\varphi(a)=
\begin{cases}
\frac{1}{\sqrt a}-1, & 0<a\le \tfrac14,\\[4pt]
\frac{1}{4a}, & \tfrac14<a\le \tfrac12.
\end{cases}
\]
This improves the earlier Fu–Wei–Yeung bound for $a<1/4$ and matches it for $a\ge 1/4$. The same paper records that subcubes attain equality at $a=1/2$ and $a=1/4$, and translates the average-distance bound into the Fourier inequality
\[
W_1=4a^2(n-2D(A)).
\]
The 2007 LP paper proves additional closed-form lower bounds for sparse regimes and, notably, establishes the asymptotically exact result
\[
\lim_{n\to\infty}\operatorname{AMD}(n,2n)=\frac52
\]
for binary codes of size $2n$ [1910.09416], [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 $\Omega\subset\mathbb{R}^d$, a length budget $l>0$, and a non-decreasing function $\varphi$, and minimizes
\[
\int_{\Omega}\varphi(\operatorname{dist}(x,\gamma))\,dx
\]
over compact $\gamma\subset\overline{\Omega}$ with $(\gamma)\le l$. The paper "Inverse maximal and average distance minimizer problems" relates this to maximal distance minimizers and generalizes Tilli’s planar results to $\mathbb{R}^d$. If a rectifiable curve $\gamma$ satisfies the unique nearest-point property in $B_R(\gamma)$, then $\gamma$ solves the AMD problem on $\Omega=B_R(\gamma)$ for any non-decreasing $\varphi$. Sufficient conditions include curvature radius at least $R$ and length at most $\pi R$, and every simple $C^{1,1}$ curve is shown to be an AMD minimizer for sufficiently small tubular radius [2212.01903].

A second, more recent formulation fixes a compactly supported probability measure $\mu$ on $\mathbb{R}^d$, a power $p\ge 1$, and a budget $l\ge 0$, and minimizes
\[
\mathcal{J}_p(\Sigma)=\int_{\mathbb{R}^d}\operatorname{dist}^p(x,\Sigma)\,d\mu(x)
\]
over
\[
\mathcal{S}_l=\{\Sigma\subset\mathbb{R}^d:\Sigma\text{ compact, connected, }\mathcal{H}^1(\Sigma)\le l\}\setminus\{\emptyset\}.
\]
A central tool is the barycentre field
\[
\mathfrak{B}_{\pi_\Sigma}(\sigma)
=
p\int_{\pi_\Sigma^{-1}\{\sigma\}}
|x-\pi_\Sigma(x)|^{p-2}(x-\pi_\Sigma(x))\,d\rho_\sigma(x),
\]
together with the first-variation formula for continuous deformations of $\Sigma$. Minimizers satisfy vanishing net barycentre field, the ambiguous locus has $\mu$-measure zero, and under $\mu(\Sigma)=0$ every minimizer lies in $\operatorname{ConvexHull}(\operatorname{supp}\mu)$ [2503.23256].

The main structural theorem holds for $p=2$ and for
\[
p>\frac12(3+\sqrt5).
\]
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 $3$. The paper does not assert explicit angle conditions, but it provides the first complete topological description in arbitrary dimension for this parameter range [2503.23256].

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 $\mathbb{R}^d$ 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 $T$, a Borel mass measure $\mu$ on the tree, and a budget $k$, one chooses a leaf subset $S$ with $|S|=k$ to minimize
\[
\operatorname{ADCL}(S)=\frac{1}{\mu(T)}\int_{x\in T}\min_{s\in S}d_T(x,s)\,d\mu(x),
\]
or its discrete weighted analogue. This is the tree-metric $k$-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 $k'\le k$ in a single run [1205.6867].

In nonparametric density estimation, AMD is a statistic rather than an optimization target. A sample $X_1,\dots,X_N$ is partitioned into $m_N$ disjoint subsets of size $s_N$, and for a query point $x$ one defines
\[
D_j(x)=\min_{i\in S_j}|X_i-x|,
\qquad
M(x)=\frac1{m_N}\sum_{j=1}^{m_N}D_j(x).
\]
The estimator is
\[
\hat f(x)=\frac{1}{2(s_N+1)M(x)}.
\]
Under the one-dimensional assumptions in the paper,
\[
(s_N+1)\mathbb{E}[D_j(x)]\to \frac{1}{g(0)},
\qquad
\sqrt{m_N}\bigl(\hat f(x)-f(x)\bigr)\Rightarrow \mathcal N(0,f(x)^2).
\]
The authors recommend $\alpha=1/3$ as a robust default when $s_N\approx N^\alpha$, with $\alpha=1/5$ preferable in smoother regimes where the bias behaves like $O(1/s_N^2)$ [1412.2851].

In lexical semantic change detection, AMD is a nearest-neighbor correspondence metric between contextual embedding clouds from two periods. If $A=V_1(w)$ and $B=V_2(w)$ are usage embeddings for a target word and $\delta(x,y)=1-\cos(x,y)$ is cosine distance, the directed score is
\[
\operatorname{AMD}(A\to B)=\frac{1}{|A|}\sum_{a\in A}\min_{b\in B}\delta(a,b),
\]
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 [2602.15716].

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 $\mathcal{W}_{\mathrm{EXT}}$ and special-index bookkeeping [1112.1828]. 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 [2503.23256]. In Hamming-space formulations, AMD is controlled indirectly through global spectral data such as Krawtchouk transforms and level-$1$ Fourier weight [2504.02593].

A second recurring theme is the emergence of shortcut-rich extremal structures. Fan triangulations collapse all non-edge pairs to distance $2$ in one-point-visible settings [1112.1828]. Graphs of fixed order and size minimize average distance exactly when every non-adjacent pair is at distance $2$ [1007.4031]. On metric graphs, equilateral flowers minimize continuum AMD at fixed total length and edge count [2312.04952]. 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 $P=NP$, while the existence of a PTAS is open [1112.1828]. In continuum optimization, the barycentre-field proof leaves the range
\[
2<p\le \frac12(3+\sqrt5)
\]
open for the general-dimensional topological characterization [2503.23256]. On compact metric graphs, the existence of absolute constants $c,C>0$ such that
\[
c\le \mu_2(G)\,\overline d(G)^2\le C
\]
for all compact metric graphs is explicitly posed as an open question [2312.04952]. In Hamming-space problems, exact extremizers at intermediate densities remain unresolved despite the new upper envelopes for level-$1$ Fourier weight and the improved LP bounds for binary codes [2504.02593], [1910.09416].

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.

Source: https://www.emergentmind.com/topics/average-minimum-distance-amd