
计算几何--凸包
Vmorish
这个作者很懒,什么都没留下…
展开
-
凸包问题的五种解法
凸包详解凸包问题的五种解法前言:首先,什么是凸包? 假设平面上有p0~p12共13个点,过某些点作一个多边形,使这个多边形能把所有点都“包”起来。当这个多边形是凸多边形的时候,我们就叫它“凸包”。如下图: 这里写图片描述然后,什么是凸包问题? 我们把这些点放在二维坐标系里面,那么每个点都能用 (x,y) 来表示。 现给出点的数目13,和各个点的坐标。求构成凸包的点?解一:穷举法(蛮力法)时间复杂度:O(n³)。 思路:两点确定一条直线,如果剩余的其它点都在这条直线的同一侧,转载 2017-09-07 20:59:01 · 491 阅读 · 0 评论 -
POJ - 1113 Wall(计算几何凸包)
DescriptionOnce upon a time there was a greedy King who ordered his chief Architect to build a wall around the King's castle. The King was so greedy, that he would not listen to his Architect's proposals to build a beautiful brick wall with a perfect sha原创 2017-09-14 23:08:33 · 414 阅读 · 0 评论 -
POJ - 3348 Cows(求凸包的面积)
DescriptionYour friend to the south is interested in building fences and turning plowshares into swords. In order to help with his overseas adventure, they are forced to save money on buying fence posts by using trees as fence posts wherever possible. Gi原创 2017-10-13 17:31:45 · 311 阅读 · 0 评论