English

A Sub-Quadratic Exact Medoid Algorithm

Machine Learning 2017-04-14 v4 Data Structures and Algorithms Machine Learning

Abstract

We present a new algorithm, trimed, for obtaining the medoid of a set, that is the element of the set which minimises the mean distance to all other elements. The algorithm is shown to have, under certain assumptions, expected run time O(N^(3/2)) in R^d where N is the set size, making it the first sub-quadratic exact medoid algorithm for d>1. Experiments show that it performs very well on spatial network data, frequently requiring two orders of magnitude fewer distance calculations than state-of-the-art approximate algorithms. As an application, we show how trimed can be used as a component in an accelerated K-medoids algorithm, and then how it can be relaxed to obtain further computational gains with only a minor loss in cluster quality.

Cite

@article{arxiv.1605.06950,
  title  = {A Sub-Quadratic Exact Medoid Algorithm},
  author = {James Newling and François Fleuret},
  journal= {arXiv preprint arXiv:1605.06950},
  year   = {2017}
}

Comments

Version 2: Added acknowledgements, Version 3: Post-acceptance at AISTATS 2017, Version 4: N-1 -> N denominator correction

R2 v1 2026-06-22T14:07:04.272Z