A Star not a Tree? 模拟退火
/*模拟退火的思路非常巧妙。从大处定位,再慢慢细微。相当于先粗条再微调。*/
#include
#include
struct point
{
double x,y;
}p[101];
int n;
double dis(point p1,point p2)
{
return sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y)
原创
2012-08-13 22:12:33 ·
702 阅读 ·
0 评论