E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
>凸包<
动态
凸包
问题
对于动态
凸包
添加的问题的一般做法: 如上图。
·
2015-11-13 03:45
动态
HOJ 1157 SCUD Busters
题目: 给出n个
凸包
,现在要用炸弹炸毁固定的坐标,被攻击的坐标所在的
凸包
会被毁灭, 现在问你被毁灭的
凸包
的面积 分析:
·
2015-11-13 03:34
sc
【除草】【hnoi】精简题解
最小矩形覆盖 裸的
凸包
+旋转卡壳。第一道正经的计算几何。另外这题精度巨卡,建议对着数据调。有关旋转卡壳当时做过ppt,这就不写了。 代码:
·
2015-11-13 02:43
题解
hdu 1392(
凸包
)
传送门:Surround the Trees 题意:求
凸包
的周长。 分析:
凸包
模板题,先按极角排好序后,然后根据叉积正负确定
凸包
。
·
2015-11-13 02:58
HDU
Graham扫描法
Graham扫描法求
凸包
的模板 运行之后可以得到存有
凸包
顶点的栈s和栈顶指针top,n代表总点数 这个模板我当时调了很久,主要难点有两个,一个是正确的极角排序,一个是出栈入栈的细节操作,逆时针扫描,
·
2015-11-13 00:48
HA
[ZOJ3234 Protect the King]
============================================================= [分析]:因为要想构成最多的同心多边形那每个多边形必定当前可用的所有点中的
凸包
·
2015-11-13 00:51
ZOJ
POJ 2187 Beauty Contest(
凸包
+旋转卡壳)
Description Bessie, Farmer John's prize cow, has just won first place in a bovine beauty contest, earning the title 'Miss Cow World'. As a result, Bessie will make a tour of N (2 <= N <= 50,000
·
2015-11-13 00:04
test
POJ 3348 Cows(
凸包
+多边形面积)
Description Your 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
·
2015-11-13 00:01
poj
POJ 1228 Grandpa's Estate(
凸包
唯一性判断)
Description Being the only living descendant of his grandfather, Kamran the Believer inherited all of the grandpa's belongings. The most valuable one was a piece of convex polygon shaped farm in the
·
2015-11-13 00:00
poj
POJ 1696 Space Ant(
凸包
变形)
Description The most exciting space discovery occurred at the end of the 20th century. In 1999, scientists traced down an ant-like creature in the planet Y1999 and called it M11. It has only one eye
·
2015-11-13 00:57
ant
算法模板の计算几何
1、
凸包
1 inline bool cmp(const POINT &a, const POINT &b) { 2 if(a.y == b.y) return
·
2015-11-13 00:47
算法
POJ 1873 The Fortified Forest(枚举+
凸包
)
Description Once upon a time, in a faraway land, there lived a king. This king owned a small collection of rare and valuable trees, which had been gathered by his ancestors on their travels. To prote
·
2015-11-13 00:15
REST
POJ 1113 Wall(计算几何の
凸包
)
Description Once 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 prop
·
2015-11-13 00:08
poj
POJ1228+
凸包
1 /* 2
凸包
(稳定
凸包
) 3 题意:给出一些点,这些点要么是
凸包
的顶点要么是边上的。 4 证明每条边上都至少有3个点。
·
2015-11-12 22:31
poj
HDU 4573 Throw the Stones(动态三维
凸包
)(2013 ACM-ICPC长沙赛区全国邀请赛)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4573 Problem Description Remember our childhood? A few naked children throw stones standing on the same position, the one throws farther win the gam
·
2015-11-12 21:22
throw
codeforces 70D Professor's task(动态二维
凸包
)
题目链接:http://codeforces.com/contest/70/problem/D Once a walrus professor Plato asked his programming students to perform the following practical task. The students had to implement such a data struc
·
2015-11-12 21:21
codeforces
HDU 3685 Rotational Painting(多边形质心+
凸包
)(2010 Asia Hangzhou Regional Contest)
Problem Description Josh Lyman is a gifted painter. One of his great works is a glass painting. He creates some well-designed lines on one side of a thick and polygonal glass, and renders it by some
·
2015-11-12 21:01
paint
Graham算法—二维点集VC++实现
一、
凸包
定义 通俗的说就是:一组平面上的点,求一个包含所有点的最小凸多边形,这个最小凸多边形就是
凸包
。
·
2015-11-12 21:07
vc++
POJ 1113 WALL
感觉计算几何好难,有些东西做一次理解之后留个模版就好了,不过模版要高度可靠才行,在做
凸包
时候我们知道极角排序虽然快一点,但是还有一种情况不能解决,
·
2015-11-12 20:03
poj
2014广东省赛总结
然后我一看K,感觉这个字符串不是特别好搞继续往前看,看到一些计数的也不是特别好搞,就看到H,H就是求出
凸包
上的每个点离它的最远点,我一看这不是
·
2015-11-12 19:52
总结
POJ2451 Uyuw's Concert(半平面交)
题意就是给你很多个半平面,求半平面交出来的
凸包
的面积。 半平面交有O(n^2)的算法,就是每次用一个新的半平面去切已有的
凸包
,更新,这个写起来感觉也不是特别好写。
·
2015-11-12 19:49
poj
暑假学习日记2013/7/21
今天学点数学,主要是复习了一下这个gcd,和exgcd的算法,看着书了解了平面扫描的方法的大致内容,复习了
凸包
的算法,感觉
凸包
的算法很神~后来想学下对踵点,不过貌似没时间了
·
2015-11-12 19:22
学习
HDU 2907
pid=2907 ans=(
凸包
顶点数-
凸包
凹面数量)*q-
凸包
凹面数量*p 重点在求一个
凸包
的凹面数量,极角排序过后,当前点在
凸包
上,下一个点不在
凸包
上,则凹面数量加一。
·
2015-11-12 18:25
HDU
单纯形
精确的讲,单纯形是某个n维以上的 欧几里得空间中的( n+1)个 仿射无关(也就是没有 m维 平面包含 m+1个点;这样的点集被称为处于 一般位置)的 点的集合的
凸包
。
·
2015-11-12 18:19
转
计算几何之
凸包
_卷包裹算法
==================================================================== 一.凸集&
凸包
(下文中所有的集合 若不作特殊说明
·
2015-11-12 17:11
算法
HDU 3934 (旋转卡壳)
三角形的三个点显然必选是
凸包
的顶点,先求出
凸包
。然后100w个点怎么想都想不出nlgn的算法,然后n^2的居然过了,然后看了下网上的题解居然有n^3过的也是瞎了狗眼。
morejarphone
·
2015-11-12 17:00
求
凸包
以及距离最远点对
转载自:http://blog.csdn.net/a81895898/article/details/7592156 问题给定平面上N个点的坐标,找出距离最远的两个点。分析类似于“最近点对问题”,这个问题也可以用枚举的方法求解,时间复杂度O(n^2)。“寻找最近点对”是用到分治策略降低复杂度,而“寻找最远点对”可利用几何性质。注意到:对于平面上有n个点,这一对最远点必然存在于这n
·
2015-11-12 16:39
包
二维
凸包
模板
NYOJ 78 圈水池 时间限制: 3000 ms | 内存限制:65535 KB 难度: 4 描述 有一个牧场,牧场上有很多个供水装置,现在牧场的主人想要用篱笆把这些供水装置圈起来,以防止不是自己的牲畜来喝水,各个水池都标有各自的坐标,现在要你写一个程序利用最短的篱笆将这些供水装置圈起来!
·
2015-11-12 16:37
模板
poj 3348 Cows
求
凸包
面积。
·
2015-11-12 16:27
poj
poj 1113 Wall
凸包
周长+圆周长 View Code 1 /* 2 Coder:Zhaofa Fang 3 Lang:C++ 4 */ 5 #include <cstdio>
·
2015-11-12 16:27
poj
poj 1228 Grandpa's Estate
求出
凸包
的顶点,再枚举每条边的点数就可以了。 View Code 1 /* 2 Coder:Zhaofa Fang 3 Lang:C+
·
2015-11-12 16:26
poj
HDU 1348 Wall
题解:计算
凸包
周长 #include <iostream> #include <cmath> #include <algorithm> const int
·
2015-11-12 16:13
HDU
HDU 2202 最大三角形
题解:先算出
凸包
,然后枚举
凸包
上的点计算即可 #include <cstdio> #include <cmath> #include <cstdlib> #include
·
2015-11-12 16:12
HDU
HDU 1392 Surround the Trees
题解:计算
凸包
…… #include <cstdio> #include <cstring> #include <algorithm> #include
·
2015-11-12 16:10
round
胶囊和凸多边形的动态碰撞检测
在使用广义碰撞阶段迅速排除了大量物体以后,将会使用精确到多边形级别的精确碰撞,比如两个
凸包
之间的碰撞,
凸包
和面片之间的碰撞,以及2次曲面和多边形面片的碰撞,在游戏中常用的两次曲面有,椭圆体
·
2015-11-12 16:48
动态
POJ 2079(计算几何初步——
凸包
加旋转卡壳)
先用
凸包
进行初步优化:因为最大面积三角形的顶点一定在
凸包
上。 然后直接在
凸包
上暴力枚举是肯定不行的。。O(N^3) 所以这要用到一种思想,旋转卡壳。 能
·
2015-11-12 16:58
poj
POJ 1873(计算几何初步——位运算枚举,求
凸包
)
不过要注意一点:
凸包
点数小于3的情况需特判。 好了,贴代码....
·
2015-11-12 16:57
poj
POJ 1113(计算几何初步——
凸包
加圆周长)
这题主要注意几点: 1.共线的处理,我会在代码中注释。 2.PI的精度。 3.极角排序。 View Code 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<queue> 5 #include<vector> 6 #inclu
·
2015-11-12 16:56
poj
POJ 1584(计算几何初步——
凸包
判断,圆与多边形,点是否在多边形内)
此题让我WA了N次。。。坑呐。。。 需要注意几点(血淋淋的教训): 1.有可能出现一种情况,它给出的是5个点,但这个有可能是三角形,因为有4个点在同一边上. 2.R == 0的情况(如果点在边上时返回正确)。。 3.给出的点的顺序可能为顺时针或者逆时针。 View Code 1 #include<iostream> 2 #include<cmath>
·
2015-11-12 16:55
poj
poj2079 求最大的三角形面积
我们知道这三个点肯定在
凸包
上,我们求出
凸包
之后不能枚举,因为题目n比较大,枚举的话要O(n^3)的数量级,所以采用旋转卡壳的做法:首先确定i,j,对k进行循环,知道找到第一个k使得cross(i,j,k
·
2015-11-12 16:21
poj
poj2187 最远点对问题
凸包
上的点依次与对应边产生的距离成单峰函数,我们首先固定一条边,然后找到第一个k,使得(i,j,k)的叉积<(i,j,k+1)的叉积,这时更新最大值,然后枚举下一个边,这个复杂度是O(n)的,因为我们逆时针枚举边的时候
·
2015-11-12 16:20
poj
凸包
凸包
模板: struct Point{ int x,y; Point operator =(const Point & p) { x=p.x; y=p.y; return
·
2015-11-12 16:19
包
hdu 1392:Surround the Trees(计算几何,求
凸包
周长)
Surround the Trees Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6812 Accepted Submission(s): 2594
·
2015-11-12 15:49
round
poj 2187:Beauty Contest(计算几何,求
凸包
,最远点对)
Beauty Contest Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 26180 Accepted: 8081 Description Bessie, Farmer John's prize cow, has just
·
2015-11-12 15:43
test
FZU 2148 Moon Game --判凹包
题意:给一些点,问这些点能够构成多少个凸四边形 做法: 1.直接判
凸包
2.逆向思维,判凹包,不是凹包就是
凸包
了 怎样的四边形才是凹四边形呢?
·
2015-11-12 14:44
game
凸包
---HDU 2202
题意:给N个点,求着N个点中选择三个联的最大的三角形面积! 注意精度:不然OJ上面会超时的 #include<iostream> #include<cmath> #include<cstdio> #include<cstdlib> #include<algorithm> const double eps =
·
2015-11-12 14:24
HDU
计算几何--求
凸包
模板--Graham算法--poj 1113
Wall Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 28157 Accepted: 9401 Description Once upon a time there was a greedy King who ordered
·
2015-11-12 14:27
poj
poj - 1113 - Wall
id=1113 ——>>先求
凸包
,然后求
凸包
的周长加上一个半径为L的圆的
·
2015-11-12 13:21
poj
poj - 1228 - Grandpa's Estate
题意:原来一个凸多边形删去一些点后剩n个点,问这个n个点能否确定原来的
凸包
(1 <= 测试组数t <= 10,1 <= n <= 1000)。
·
2015-11-12 13:15
poj
Poj 2187 Beauty Contest_旋转
凸包
卡壳
题意:给你n个坐标,求最远的两点距离 思路:用
凸包
算法求处,各个定点,再用旋转
凸包
卡壳 #include <iostream> #include <cstdio> #include
·
2015-11-12 13:21
test
上一页
22
23
24
25
26
27
28
29
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他