
计算几何
mumei314
这个作者很懒,什么都没留下…
展开
-
poj2079——旋转卡壳求凸包最大三角形面积
题目链接:http://poj.org/problem?id=2079Given n distinct points on a plane, your task is to find the triangle that have the maximum area, whose vertices are from the given points.InputThe input consi...原创 2019-09-30 13:48:14 · 240 阅读 · 0 评论 -
poj2187——求最远点对的距离的平方(求凸包+旋转卡壳)
题目链接:http://poj.org/problem?id=2187Bessie, 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...原创 2019-09-26 12:44:12 · 195 阅读 · 0 评论 -
poj1981——求单位圆最多覆盖点数(暴力枚举)+(模拟退火过不了)
题目链接:http://poj.org/problem?id=1981You are given N points in the xy-plane. You have a circle of radius one and move it on the xy-plane, so as to enclose as many of the points as possible. Find how m...原创 2019-09-25 13:59:28 · 287 阅读 · 0 评论 -
poj2420——求多边形费马点(随机化变步长贪心法即模拟退火)
题目链接:http://poj.org/problem?id=2420Luke wants to upgrade his home computer network from 10mbs to 100mbs. His existing network uses 10base2 (coaxial) cables that allow you to connect any number of co...原创 2019-09-25 13:53:46 · 718 阅读 · 0 评论 -
poj1434——二分+精度处理
题目链接:http://poj.org/problem?id=1434During the next century certain regions on earth will experience severe water shortages. The old town of Uqbar has already started to prepare itself for the worst....原创 2019-09-24 13:03:55 · 231 阅读 · 0 评论 -
poj2002——求点能组成正方形的个数(二分或hash)
题目链接:http://poj.org/problem?id=2002A square is a 4-sided polygon whose sides have equal length and adjacent sides form 90-degree angles. It is also a polygon such that rotating about its centre by 9...原创 2019-09-23 12:44:01 · 2656 阅读 · 1 评论 -
poj2451——半平面交求核面积(O(nlogn))
Prince Remmarguts solved the CHESS puzzle successfully. As an award, Uyuw planned to hold a concert in a huge piazza named after its great designer Ihsnayish.The piazza in UDF - United Delta of Fr...原创 2019-09-19 23:47:30 · 265 阅读 · 1 评论 -
poj2540——半平面交(线性规划问题)
题目链接:http://poj.org/problem?id=2540The children's game Hotter Colder is played as follows. Player A leaves the room while player B hides an object somewhere in the room. Player A re-enters at positi...原创 2019-09-19 13:09:17 · 356 阅读 · 0 评论 -
poj3384——半平面交+枚举(旋转卡壳)
题目链接:http://poj.org/problem?id=3384Feng shui is the ancient Chinese practice of placement and arrangement of space to achieve harmony with the environment. George has recently got interested in it, ...原创 2019-09-19 12:49:08 · 206 阅读 · 0 评论 -
poj1755——半平面交应用
题目链接:poj.org/problem?id=1755Triathlon is an athletic contest consisting of three consecutive sections that should be completed as fast as possible as a whole. The first section is swimming, the seco...原创 2019-09-18 13:05:20 · 264 阅读 · 0 评论 -
poj3525——二分+半平面交
题目链接:http://poj.org/problem?id=3525The main land of Japan called Honshu is an island surrounded by the sea. In such an island, it is natural to ask a question: “Where is the most distant point from ...原创 2019-09-18 12:54:41 · 209 阅读 · 0 评论 -
hdu3007——最小圆覆盖(模拟退火)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3007Each person had do something foolish along with his or her growth.But,when he or she did this that time,they could not predict that this thing is a...原创 2019-09-28 18:34:01 · 702 阅读 · 0 评论 -
poj2069——最小球覆盖(模拟退火)
题目链接:poj.org/problem?id=2069During a voyage of the starship Hakodate-maru (see Problem 1406), researchers found strange synchronized movements of stars. Having heard these observations, Dr. Extreme ...原创 2019-09-28 18:37:30 · 470 阅读 · 0 评论 -
hdu2899——函数最值问题(模拟退火)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2899Now, here is a fuction:F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0 <= x <=100)Can you find the minimum value when x is between 0 and 100.In...原创 2019-09-28 18:50:41 · 451 阅读 · 0 评论 -
poj1271——半平面交+dfs枚举
题目链接:poj.org/problem?id=1271Little Tomy likes to cover his bread with some milk. He does this by putting it in the cup so that one of its sides (called bottom side) touches the bottom of the cup, ju...原创 2019-09-30 13:41:26 · 203 阅读 · 0 评论 -
uva11722——直线与矩形相交
题目链接:https://vjudge.net/contest/325833#problem/MSidney以相同的概率密度在[t1,t2]到达不高山;Gandtom也以相同的概率密度在[s1,s2]到达。每个人都会停留W时间,问发生事情的概率。/捂脸Input第一行组数T(T < 500)。接下来T行每行包含五个整数t1,t2,s1,s2,w(360≤t1 <t2 &l...原创 2019-09-30 13:33:00 · 1330 阅读 · 0 评论 -
poj3714——分治法求最近点对
题目链接:http://poj.org/problem?id=3714After successive failures in the battles against the Union, the Empire retreated to its last stronghold. Depending on its powerful defense system, the Empire repel...原创 2019-09-30 12:57:48 · 1839 阅读 · 0 评论 -
poj2280——扫描线+极角排序
题目链接:http://poj.org/problem?id=2280Shanghai Hypercomputers, the world's largest computer chip manufacturer, has invented a new class of nanoparticles called Amphiphilic Carbon Molecules (ACMs). ACMs...原创 2019-09-30 12:48:33 · 302 阅读 · 0 评论 -
hdu3532——极角排序
题目链接:acm.hdu.edu.cn/showproblem.php?pid=3532Given many points in a plane, two players are playing an interesting game.Player1 selects one point A as the vertex of an angle. Then player2 selects oth...原创 2019-09-30 12:35:43 · 238 阅读 · 0 评论 -
poj1673——求三角形的垂心
题目链接:http://poj.org/problem?id=1673Given a triangle ABC, the Extriangles of ABC are constructed as follows:On each side of ABC, construct a square (ABDE, BCHJ and ACFG in the figure below).Connect...原创 2019-09-28 20:57:38 · 366 阅读 · 0 评论 -
poj1106——求半圆覆盖的最大点数
题目链接:poj.org/problem?id=1106In a wireless network with multiple transmitters sending on the same frequencies, it is often a requirement that signals don't overlap, or at least that they don't confli...原创 2019-09-28 20:53:13 · 266 阅读 · 0 评论 -
poj2354——求球上两点距离(经纬度)
题目链接:http://poj.org/problem?id=2354It is a historical fact that during the legendary voyage of "Titanic" the wireless telegraph machine had delivered 6 warnings about the danger of icebergs. Each of...原创 2019-09-28 20:44:00 · 347 阅读 · 0 评论 -
poj1329——求三角形的外接圆(注意格式)
题目链接:Your team is to write a program that, given the Cartesian coordinates of three points on a plane, will find the equation of the circle through them all. The three points will not be on a straig...原创 2019-09-28 20:16:23 · 475 阅读 · 0 评论 -
poj1375——求过定点到圆的切线与x轴的交点+区间覆盖
题目链接:http://poj.org/problem?id=1375In the ceiling in the basement of a newly open developers building a light source has been installed. Unfortunately, the material used to cover the floor is very s...原创 2019-09-28 20:13:04 · 379 阅读 · 0 评论 -
poj1279——求半平面交后凸多边形的面积
题目链接:http://poj.org/problem?id=1279The art galleries of the new and very futuristic building of the Center for Balkan Cooperation have the form of polygons (not necessarily convex). When a big exhib...原创 2019-09-17 16:28:33 · 261 阅读 · 0 评论 -
poj1474——半平面交(顺时针)
题目链接:http://poj.org/problem?id=1474A friend of yours has taken the job of security officer at the Star-Buy Company, a famous depart- ment store. One of his tasks is to install a video surveillance s...原创 2019-09-17 16:24:37 · 205 阅读 · 0 评论 -
poj3347——正方形覆盖(区间覆盖)
题目链接:poj.org/problem?id=3347In this problem, you are given a sequence S1, S2, ..., Sn of squares of different sizes. The sides of the squares are integer numbers. We locate the squares on the positi...原创 2019-09-10 00:18:00 · 713 阅读 · 0 评论 -
计算几何总结——点,线,面,形的基本关系(重点叉积和点积)
最近刷了一些计算几何入门的题,有一些小小的体会,便来做个小总结吧。这是我自己的个人总结,本身自身水平不是特别高,所以这篇文章主要讲的是怎么去学计算几何,以及一些好的学习资源。首先分享一下计算几何的基础知识的学习资源: https://linxi99.gitee.io/20190211/ACM几何基础篇/大家也可以关注一下这位大佬——林夕林夕,他有很多关于计算几何的博文,讲的都挺不错。下...原创 2019-07-15 12:48:06 · 745 阅读 · 0 评论 -
计算几何——Space Ant(凸包)
题目链接:http://poj.org/problem?id=1696The 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 M...原创 2019-07-14 21:22:39 · 443 阅读 · 0 评论 -
计算几何——Intersection(线段与矩形相交)
题目链接http://poj.org/problem?id=1410You are to write a program that has to decide whether a given line segment intersects a given rectangle.An example:line: start point: (4,9)end point: (11,2)rect...原创 2019-07-14 21:16:11 · 4467 阅读 · 0 评论 -
计算几何——Treasure Hunt(线段相交)
题目链接http://poj.org/problem?id=1066Archeologists from the Antiquities and Curios Museum (ACM) have flown to Egypt to examine the great pyramid of Key-Ops. Using state-of-the-art technology they are a...原创 2019-07-14 21:10:45 · 231 阅读 · 0 评论 -
计算几何——Pick-up sticks(线段相交)
题目链接:poj.org/problem?id=2653Stan has n sticks of various length. He throws them one at a time on the floor in a random way. After finishing throwing, Stan tries to find the top sticks, that is these...原创 2019-07-14 21:05:53 · 388 阅读 · 0 评论 -
计算几何——The Doors(Dijkstra和线段相交)
原文链接:http://poj.org/problem?id=1556You are to find the length of the shortest path through a chamber containing obstructing walls. The chamber will always have sides at x = 0, x = 10, y = 0, and y =...原创 2019-07-14 20:58:09 · 279 阅读 · 0 评论 -
计算几何——Intersecting Lines(两个线段相交方式的判断)
题目链接:http://poj.org/problem?id=1269We all know that a pair of distinct points on a plane defines a line and that a pair of lines on a plane will intersect in one of three ways: 1) no intersection be...原创 2019-07-14 20:52:42 · 980 阅读 · 0 评论 -
计算几何——Segments(线段与直线相交)
原文链接:http://poj.org/problem?id=3304Given n segments in the two dimensional space, write a program, which determines if there exists a line such that after projecting these segments on it, all projec...原创 2019-07-14 20:40:10 · 539 阅读 · 0 评论 -
计算几何——Toy Storage(叉积)
原文链接:poj.org/problem?id=2398Mom and dad have a problem: their child, Reza, never puts his toys away when he is finished playing with them. They gave Reza a rectangular box to put his toys in. Unfort...原创 2019-07-14 20:20:55 · 250 阅读 · 0 评论 -
poj1039——直线与线段相交(求交点)
题目链接:poj.org/problem?id=1039The GX Light Pipeline Company started to prepare bent pipes for the new transgalactic light pipeline. During the design phase of the new pipe shape the company ran into t...原创 2019-09-11 01:07:06 · 506 阅读 · 0 评论 -
poj3349——多边形相交
题目链接:poj.org/problem?id=3449While creating a customer logo, ACM uses graphical utilities to draw a picture that can later be cut into special fluorescent materials. To ensure proper processing, the ...原创 2019-09-12 22:00:26 · 544 阅读 · 0 评论 -
poj1584——综合计算几何题(板子要好!!!)
题目链接:https://vjudge.net/problem/POJ-1584The DIY Furniture company specializes in assemble-it-yourself furniture kits. Typically, the pieces of wood are attached to one another using a wooden peg tha...原创 2019-09-12 22:04:55 · 242 阅读 · 0 评论 -
poj3130——半平面交(逆时针)
题目链接:http://poj.org/problem?id=3130After counting so many stars in the sky in his childhood, Isaac, now an astronomer and a mathematician uses a big astronomical telescope and lets his image process...原创 2019-09-17 16:21:31 · 189 阅读 · 0 评论