Sciweavers

IPL
2002

A note concerning the closest point pair algorithm

13 years 4 months ago
A note concerning the closest point pair algorithm
An algorithm, described by Sedgewick, finds the distance between the closest pair of n given points in a plane using a variant of mergesort. This takes O(n log n) time. To prove this it is necessary to show that, in the merge phase of the algorithm, no more than a constant number of distances need to be checked for each point considered. Cormen, Leiserson and Rivest show that checking seven distances is sufficient while Sedgewick suggests that this should be four. This paper shows that checking three distances is sufficient and that a slight modification of the algorithm reduces the number to two. Key words: closest point pair algorithm; mergesort; analysis of algorithms 1 The Algorithm To find the minimum separation of any pair of n given points in a plane, a list of the points is formed ordered by their x-coordinates and a global variable min, to hold the minimum separation distance, is initialised to infinity. The algorithm then calls a routine, sort, that is a modified version of ...
Martin Richards
Added 22 Dec 2010
Updated 22 Dec 2010
Type Journal
Year 2002
Where IPL
Authors Martin Richards
Comments (0)