首页 | 本学科首页   官方微博 | 高级检索  
     


A note concerning the closest point pair algorithm
Authors:Martin Richards
Affiliation:University Computer Laboratory, New Museums Site, Pembroke St., Cambridge CB2 3QG, UK
Abstract: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(nlogn) 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.
Keywords:Closest point pair algorithm   Mergesort   Analysis of algorithms
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号