An optimal algorithm for the on-line closest-pair problem

Abstract

We give an algorithm that computes the closest pair in a set of nn points in kk-dimensional space on-line, in O(nlogn)O(n \log n) ime. The algorithm only uses algebraic functions and, therefore, is optimal. The algorithm maintains a hierarchical subdivision of kk-space into hyperrectangles, which is stored in a binary tree. Centroids are used to maintain a balanced decomposition of this tree

    Similar works