
爬山算法、模拟退火
Charon_HN
地摊炼丹大师、科研农民工、乡野程序员
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
POJ2069 模拟退火算法
POJ2069 Description During a voyage of the starship Hakodate-maru (see Problem 1406), researchers found strange synchronized movements of stars. Having heard these observations, Dr. Extreme proposed...原创 2019-01-17 19:51:56 · 469 阅读 · 0 评论 -
模拟退火+爬山算法
爬山算法:兔子朝着比现在高的地方跳去。它找到了不远处的最高山峰。但是这座山不一定是珠穆朗玛峰。这就是爬山算法,它不能保证局部最优值就是全局最优值。 模拟退火:兔子喝醉了。它随机地跳了很长时间。这期间,它可能走向高处,也可能踏入平地。但是,它渐渐清醒了并朝最高方向跳去。这就是模拟退火。转载 2019-01-17 19:59:46 · 482 阅读 · 0 评论 -
三分入门HihoCoder - 1142+HDU2899
三分·三分求极值. 描述 这一次我们就简单一点了,题目在此: 在直角坐标系中有一条抛物线y=ax^2+bx+c和一个点P(x,y),求点P到抛物线的最短距离d。 提示:三分法 在之前的几周中我们了解到二分法作为分治中最常见的方法,适用于单调函数,逼近求解某点的值。 但当函数是凸形函数时,二分法就无法适用,这时就需要用到三分法。 从三分法的名字中我们可以猜到,三分法是对于需要逼近的区间做三等分: ...原创 2019-01-13 21:59:03 · 405 阅读 · 0 评论 -
POJ 1379 模拟退火求矩形内的覆盖点
Run Away Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 10930 Accepted: 3242 Description One of the traps we will encounter in the Pyramid is located in the Large Roo...原创 2019-01-18 17:04:05 · 305 阅读 · 0 评论 -
POJ2420爬山算法、模拟退火入门之n个定点的覆盖
A Star not a Tree? Luke 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 computers togeth...原创 2019-01-16 22:08:40 · 479 阅读 · 0 评论