![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
概率算法-模拟退火
lab104_yifan
这个作者很懒,什么都没留下…
展开
-
UVA 10228 - Star not a Tree?(模拟退火)
UVA 10228 - Star not a Tree? 题目链接 题意:给定一些点,费马点(到这些点距离和最短),输出距离和 思路:模拟退火去搞,初始温度1W步,降温系数设为0.83,然后每次找周围4个方向,做10次保证答案准确 代码: #include #include #include #include #include #include using原创 2014-08-11 19:48:50 · 1351 阅读 · 0 评论 -
HDU 5017 Ellipsoid(西安网络赛K题)
HDU 5017 Ellipsoid 题目链接 思路:模拟退火大法好! 代码: #include #include #include #include using namespace std; const int D[8][2] = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}, {1, 1}, {-1, -1}, {1, -1}, {-1,原创 2014-09-15 16:30:56 · 2705 阅读 · 14 评论