概率算法-模拟退火
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 · 1457 阅读 · 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 · 2828 阅读 · 14 评论
分享