A Star not a Tree?

题目连接spa 题意: 给n个点,求费马点到各点的距离和 分析: 费马点直接求便可,用模拟退火便可 这个方法其实就是默认费马点只有一个,那么就直接求局部最优解便可,不用再以必定几率去接受较差的状态 const double eps = 1e-5; const int MAXN = 110000; struct Point { double x, y; Point(double x
相关文章
相关标签/搜索