Simple Construction of Greedy Trees and Greedy Permutations
arXiv:2412.02554
Abstract
\begin{abstract} Greedy permutations, also known as Gonzalez Orderings or Farthest Point Traversals are a standard way to approximate -center clustering and have many applications in sampling and approximating metric spaces. A greedy tree is an added structure on a greedy permutation that tracks the (approximate) nearest predecessor. Greedy trees have applications in proximity search as well as in topological data analysis. For metrics of doubling dimension , a time algorithm is known, but it is randomized and also, quite complicated. Its construction involves a series of intermediate structures and space. In this paper, we show how to construct greedy permutations and greedy trees using a simple variation of an algorithm of Clarkson that was shown to run in time, where the spread $\spread$ is the ratio of largest to smallest pairwise distances. The improvement comes from the observation that the greedy tree can be constructed more easily than the greedy permutation. This leads to a linear time algorithm for merging two approximate greedy trees and thus, an time algorithm for computing the tree. Then, we show how to extract a -approximate greedy permutation from the approximate greedy tree in the same asymptotic running time. \end{abstract}