Given $N$ points $X_i$ in a metric space
and a measure of "middleness"
$ \qquad \qquad \mathsf{middle}( X_i ) \equiv
\frac{1}{N} \sum_j \mathsf{metric}( X_i, X_j ) $
can one find an $X_i$ near the middle of all $N$ points,
i.e. roughly minimizing $\mathsf{middle}( X_i )$,
in time and space both better than $O( N^2 )$ ?
If not in general, are there cases that can be done — trees, Euclidean metrics ?
Clarification: by "space better than $O(N^2)$" I mean,
are there approximate methods that give many nearby pairs
after looking at $O(N^{1+\epsilon})$ of all pairs ?
This is broader than just middles.
Of course, guarantees are then gone, or empirical or statistical.
But methods that work for $N$ 10000 or 1000000
would have broad application.
(Is that clear, is it worth a separate question ?)