计算几何计算几何是一门兴起于二十世纪七十年代末的计算机科学的一个分支,主要研究解决几何问题的算法。在现代工程和数学领域,计算几何在图形学、机器人技术、超大规模集成电路设计和统计等诸多领域有着十分重要的应用。计算几何问题的输入一般是关于一组几何对象的描述,如一组点、一组线段,或者一个多边形的按逆时针顺序排列的一组顶点。输出常常是对有关这些对象的问题的回答,如是否直线相交,是否为一个新的几何对象,如顶
转载
2024-07-31 19:06:00
131阅读
要点 用A、B、C一般式确定每条直线 将合法的圆心中点存到每条直线所属的vector中 枚举所有线段,二分后$O(1)$得到其中存在多少答案,累加 C++ include include include include include include include include using na
原创
2021-07-15 16:11:51
105阅读
Amr loves Geometry. One day he came up with a very interesting problem.Amr has a circle of radius r and center in point (x, y). He wants the circle center to be in new position (x', y').In one ste...
原创
2021-07-09 15:29:43
63阅读
Amr loves Geometry. One day he came up with a very interesting problem.Amr has a circle of radius r and center in point (x, y). He wan...
原创
2021-09-02 11:54:32
107阅读
ShitáliaTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hust.edu.cn/vjudge/contest/view.action?cid=88994#problem/ADescriptionAfter suddenly becom...
原创
2021-07-16 14:48:39
205阅读
Problem B. Geometry ProblemTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hust.edu.cn/vjudge/contest/view.action?cid=88926#problem/BDescriptionP...
原创
2021-07-16 14:51:53
155阅读
【题意】有n + 1个点,其中n个点都在数轴x轴上。求最短的从第k个点开始的哈密尔顿路。n ≤ 10 【解题方法】题解描述来自xhr大牛的论文 先对x轴上的点按x坐标排序,设排序后为a 1 ...a n . 设x轴外的点为p如果人正好在那个x轴外的点,可以证明最优解是 dist(a 1 ,a n )+min(dist(a 1 ,p),dist(a n ,p))否则,可以
原创
2022-04-19 17:23:17
37阅读
C. Five Dimensional Points time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Five Dimen
转载
2019-03-27 21:44:00
32阅读
2评论
这两天在学习计算几何,随便说说自己的学习过程吧。
基本的叉积、点积和凸包等东西就不多说什么了,网上一搜一大堆,切一些题目基本熟悉了就差不多了。 一些基本的题目可以自己搜索,比如这个blog:http://blog.sina.com.cn/s/blog_49c5866c0100f3om.html 接下来,研究了半平面交,思想方法看07年朱泽园的国家队论文,模板代码参考自我校大
转载
2022-04-20 10:33:48
399阅读
一些基本的题目可以自己搜索,比如这个blog:http://blog.sina.com.cn/s/blog_49c5866c0100f3om.html 接下来,研究了半平面交,思想方法看07年朱泽园的国家队论文,模板代码参考自我校大牛韬哥: http://www.owent.net/2010/10/acm-%E8%AE%A1%E7%AE%97%E5%87%A0%E4%BD%95-%E
转载
2021-07-06 14:22:36
325阅读
1.判断线段相交用向量叉积,把一条线段两个端点(a与b)与另一条线段上的点(c)相连,然后进行叉乘,根据叉乘的正负可以判断这个c点与(a,b)这条线段的关系,再把d与(a与b)这条线段上的两个端点相连,在求一次叉积,根据两者正负关系可以判断出来。2.直线相交(注意垂直情况)这是个数学上的问题,两点可以确定一条直线,你列个方程就行啦 (y2-y1)/(x2-x1),计算AB斜率 (y4-y3)/(x4-x3),计算CD斜率 二者相等的话就不相交(平行哦) 3. 判断线段和直线是否相交: 有了上面的基础,这个算法就很容易了。如果线段 P1P2和直线Q1Q2相交,则P1P2跨立Q1Q2,即:( P.
转载
2012-09-07 23:13:00
228阅读
2评论
题目链接: D. Number of Parallelograms time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output time l
转载
2016-04-09 01:24:00
51阅读
Arpa is taking a geometry exam. Here is the last problem of the exam.You are given three points a, b, c.Find a point and an angle such that if we rotate the page around the point by the angle, the...
原创
2021-07-09 15:36:00
108阅读
题目链接: C. Recycling Bottles time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output time limit pe
转载
2016-05-12 09:55:00
57阅读
Arpa is taking a geometry exam. Here is the last problem of the exam.You are given three points a, b, c.Find a point and an angle such...
原创
2021-09-02 13:30:10
177阅读
A. Gerald's Hexagon time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Gerald got a very cu
转载
2017-05-01 15:14:00
168阅读
2评论
这题的思路很好想,分成以下4步:1:求外切园半径2:求三个圆心角3:求三个圆心角的最大公约数4:最大公约数就是
原创
2023-04-14 00:17:44
64阅读
题目链接:点击打开链接
A. New Year Table
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Gerald is sett
原创
2022-08-24 11:34:17
71阅读
计算几何中由两个经典方法,也被称为最终奥义(其实是没办法的时候才能使用2333)——枚举和分治。最终奥义一般是在构成几何点数较少和其他算法无法正确解决的时候使用???? 枚举和计算几何 先引入一道经典例题: [caioj 1211]统计正方形 题目描述 【题目描述】 给定平面上N个点,你需要计算以其中4
转载
2020-10-27 21:01:00
411阅读
2评论
A. Crazy Town 题目连接: http://codeforces.com/contest/498/problem/A Description Crazy Town is a plane on which there are n infinite line roads. Each road
原创
2021-07-15 15:02:30
269阅读