计算机工程与应用 ›› 2009, Vol. 45 ›› Issue (3): 58-59.DOI: 10.3778/j.issn.1002-8331.2009.03.016

• 研究、探讨 • 上一篇    下一篇

求平面点集凸壳的一种新算法

刘润涛1,王 三2,安晓华2   

  1. 1.哈尔滨理工大学 信息与计算科学研究所,哈尔滨 150080
    2.哈尔滨理工大学 应用科学学院,哈尔滨 150080
  • 收稿日期:2008-01-07 修回日期:2008-03-31 出版日期:2009-01-21 发布日期:2009-01-21
  • 通讯作者: 刘润涛

New method for computing convex hulls of point sets on plane

LIU Run-tao1,WANG San2,AN Xiao-hua2   

  1. 1.Institute of Information and Scientific Computing Technology,Harbin University of Science and Technology,Harbin 150080,China
    2.College of Applied Science,Harbin University of Science and Technology,Harbin 150080,China
  • Received:2008-01-07 Revised:2008-03-31 Online:2009-01-21 Published:2009-01-21
  • Contact: LIU Run-tao

摘要: 在研究了大量的求平面点集凸包的算法基础上,提出了一种新的构造平面点集的凸壳算法。此算法先求出四个极值点,构造出一个四边形。对于四边形外面的点依次用二分法进行判断是属于哪个线段区域;对于一个线段区域上的点只需要找出右侧的点,分别和线段的两个端点连接得到新的多边形链,依次这样处理每个点,直到结束。这样就得到四个简单多边形单调链,然后对单调链求凸点,时间复杂度为O(n),最后求得的每个凸点就是平面点集的凸壳,此算法总的时间复杂度不超过O(n log n)。

关键词: 点集, 单调链, 凸壳

Abstract: A new algorithm of computing convex hulls of plane point sets is presented,based on the research on a large amount of algorithms of computing the convex hulls of plane point sets.In the algorithm,the four extreme points are first computed,which compose a quadrangle,then for the points out of the quadrangle we figure out which line sections they belong to in order with the method of bisection.For the points in the same line section,we just find out the points on the right side,then connect them with the two endpoints of the line section separately to compose a new polygon chain,then process each point in the same way until the last one.In this way,four monotonic chains of simple polygons are obtained,then the vertices of the convex hulls of the four monotonic chains are computed.Its time complexity is O(n).All the vertices are the ones of the convex hull of the plane point set.The total time complexity of this algorithm is not more than O(n log n).

Key words: point set, monotonic chains, convex hull