traveling salesman problem, 2-opt algorithm c# implementation

后端 未结 3 971
深忆病人
深忆病人 2021-01-30 15:27

Can someone give me a code sample of 2-opt algorithm for traveling salesman problem. For now im using nearest neighbour to find the path but this method is far from perfect, and

3条回答
  •  不要未来只要你来
    2021-01-30 15:44

    If the problem is euclidian distance and you want the cost of the solution produced by the algorithm is within 3/2 of the optimum then you want the Christofides algorithm. ACO and GA don't have a guaranteed cost.

提交回复
热议问题