高级农民
- 积分
- 1248
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2009-12-21
- 最后登录
- 1970-1-1
|
是对称的TSP,就是d(i,j)=d(j,i),但不满足三角不等式。最起码要比2的n次方要快些......但是编起来又不会太难......发愁ing............Final Project= =
everwinter 发表于 2011-2-22 15:33 ![]()
If you can find an algorithm slightly better than O(2^n), then probably you can win this year's Turing Award (quote from Wikipedia):
. 1point3acres
It is an open problem if there exists an exact algorithm for TSP that runs in time O(1.9999n)
As far as I know symmetric doesn't help in terms of complexity, at best cut the solution space to a half. . 1point 3 acres
.
Life is hard, try to relax the problem a bit (Metric-TSP then Greedy is 2-approximation).
Or don't care exact solution (LP relaxation, evolutionary algos such as Genetic Algorithm, Simulated Annealing) |
|